Discussion:
[SR-Users] SIP Trunk
Satish Patel
2014-08-20 03:40:42 UTC
Permalink
We have setup Kamailio front and SIP Proxy, Now i want to Trunk it with
other SIP provide they gave me IP, Username/Password. How do i configure
username/password on Kamailio SIP Proxy?
Yuriy Gorlichenko
2014-08-20 04:33:48 UTC
Permalink
Use UAC module for this
Post by Satish Patel
We have setup Kamailio front and SIP Proxy, Now i want to Trunk it with
other SIP provide they gave me IP, Username/Password. How do i configure
username/password on Kamailio SIP Proxy?
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
d***@public.gmane.org
2014-08-20 07:06:53 UTC
Permalink
Hi,

We are using Kamailio as a WebRTC proxy. We have converted the signaling successfully.

Now, for media, is it possible to convert srtp to rtp using rtpproxy_ng or mediaproxy? If yes can you provide me with some details?

Thanks in advanced!
Sent from my “contract free” BlackBerry® smartphone on the WIND network.

-----Original Message-----
From: Yuriy Gorlichenko <ovoshlook-***@public.gmane.org>
Sender: sr-users-bounces-cR8azDVoa3IcDhw6gZKtMWD2FQJk+8+***@public.gmane.org
Date: Wed, 20 Aug 2014 08:33:48
To: Kamailio (SER) - Users Mailing List<sr-users-cR8azDVoa3IcDhw6gZKtMWD2FQJk+8+***@public.gmane.org>
Reply-To: "Kamailio \(SER\) - Users Mailing List"
<sr-users-cR8azDVoa3IcDhw6gZKtMWD2FQJk+8+***@public.gmane.org>
Subject: Re: [SR-Users] SIP Trunk
Yuriy Gorlichenko
2014-08-20 07:38:32 UTC
Permalink
Use rtpengine for this. You may use rtpproxy-ng module to manipulate
options of rtpengine.
Post by d***@public.gmane.org
Hi,
We are using Kamailio as a WebRTC proxy. We have converted the signaling successfully.
Now, for media, is it possible to convert srtp to rtp using rtpproxy_ng or
mediaproxy? If yes can you provide me with some details?
Thanks in advanced!
Sent from my “contract free” BlackBerry® smartphone on the WIND network.
-----Original Message-----
Date: Wed, 20 Aug 2014 08:33:48
Reply-To: "Kamailio \(SER\) - Users Mailing List"
Subject: Re: [SR-Users] SIP Trunk
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Satish Patel
2014-08-20 11:57:51 UTC
Permalink
Great! I registered remote Trunk using UAC module. so now i can just use
following function to forward my call right?

rewritehost()
Post by Yuriy Gorlichenko
Use UAC module for this
Post by Satish Patel
We have setup Kamailio front and SIP Proxy, Now i want to Trunk it with
other SIP provide they gave me IP, Username/Password. How do i configure
username/password on Kamailio SIP Proxy?
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Yuriy Gorlichenko
2014-08-20 12:22:14 UTC
Permalink
You can use t_relay() too. One thing that you need - to have right packet,
that will be relays to Provider. I have multiple providers and manually
change packets that will send to provider.
Post by Satish Patel
Great! I registered remote Trunk using UAC module. so now i can just use
following function to forward my call right?
rewritehost()
Post by Yuriy Gorlichenko
Use UAC module for this
Post by Satish Patel
We have setup Kamailio front and SIP Proxy, Now i want to Trunk it
with other SIP provide they gave me IP, Username/Password. How do i
configure username/password on Kamailio SIP Proxy?
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Satish Patel
2014-08-20 12:54:42 UTC
Permalink
I am new in Kamailio so could you please give me code example how to use
t_relay() to forward traffic to Provide, I know how to use rewritehost()
but i never use t_relay() function
Post by Yuriy Gorlichenko
You can use t_relay() too. One thing that you need - to have right packet,
that will be relays to Provider. I have multiple providers and manually
change packets that will send to provider.
Great! I registered remote Trunk using UAC module. so now i can just use
Post by Satish Patel
following function to forward my call right?
rewritehost()
Post by Yuriy Gorlichenko
Use UAC module for this
Post by Satish Patel
We have setup Kamailio front and SIP Proxy, Now i want to Trunk it
with other SIP provide they gave me IP, Username/Password. How do i
configure username/password on Kamailio SIP Proxy?
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Yuriy Gorlichenko
2014-08-20 13:00:13 UTC
Permalink
My example don`t help you. you must read about t_relay there.

t_relay() is not central thing. I must stop your attension at SIP invite
that goes to provider. t_relay simple to use- just customise your INVITE
and call t_relay() from your route.

http://kamailio.org/docs/modules/devel/modules/tm.html
Post by Satish Patel
I am new in Kamailio so could you please give me code example how to use
t_relay() to forward traffic to Provide, I know how to use rewritehost()
but i never use t_relay() function
Post by Yuriy Gorlichenko
You can use t_relay() too. One thing that you need - to have right
packet, that will be relays to Provider. I have multiple providers and
manually change packets that will send to provider.
Great! I registered remote Trunk using UAC module. so now i can just use
Post by Satish Patel
following function to forward my call right?
rewritehost()
Post by Yuriy Gorlichenko
Use UAC module for this
Post by Satish Patel
We have setup Kamailio front and SIP Proxy, Now i want to Trunk it
with other SIP provide they gave me IP, Username/Password. How do i
configure username/password on Kamailio SIP Proxy?
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel Tryba
2014-08-20 14:04:19 UTC
Permalink
Post by Satish Patel
I am new in Kamailio so could you please give me code example how to use
t_relay() to forward traffic to Provide, I know how to use rewritehost()
but i never use t_relay() function
Well, my guess is your routing ends with t_relay().

But routing will normally be done based on $ru unless $du is set (after for
example location()).
http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#ru_-_request_uri
http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#du_-
_destination_uri

So changing destination can be accomplished by simply setting $rd to an other
ip/domain (and setting $du=null). But TIMTOWTDI.
--
POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/ - http://www.sipo.nl/
K.v.K. Eindhoven 17097024
Satish Patel
2014-08-21 03:56:46 UTC
Permalink
This is what i did but its not working, getting error SIP/2.0 403
Forbidden, it is thinking number i am dialing is local and checking in
local DB . by the way SIP provider Trunk is already registered using UAC
module. I am using Multi-domain setup.

# do lookup with method filtering
if (!lookup("location","m")) {
if (!db_does_uri_exist()) {

if ( $rU =~ "sip:1[0-9]@*") {
t_relay("65.xxx.xxx.xxx:5065");
xlog("Redirecting to SIP Provider... $rU\n");
exit;
};
Post by Daniel Tryba
Post by Satish Patel
I am new in Kamailio so could you please give me code example how to use
t_relay() to forward traffic to Provide, I know how to use rewritehost()
but i never use t_relay() function
Well, my guess is your routing ends with t_relay().
But routing will normally be done based on $ru unless $du is set (after for
example location()).
http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#ru_-_request_uri
http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#du_-
_destination_uri
So changing destination can be accomplished by simply setting $rd to an
other
ip/domain (and setting $du=null). But TIMTOWTDI.
--
POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/ - http://www.sipo.nl/
K.v.K. Eindhoven 17097024
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel Tryba
2014-08-21 07:53:35 UTC
Permalink
Try $ru instead, $rU only contains the dialled "number". So
$ru =~ "sip:1[0-9]@*"
or
$rU =~ "1[0-9]"

But note the regexp, that only matches the exact numbers 10 to 19, if you are
trying to match prefixes you are doing it wrong (tm).
Satish Patel
2014-08-21 10:43:15 UTC
Permalink
I will give it a try again today, can you please make sure my t_relay() syntax is correct?

So t_relay will rewrite my host past right and send call to trunk.

While ago I was using rewritehost() function but I think it's not working with UAC registrant module.


Sent from my iPhone
Post by Daniel Tryba
Try $ru instead, $rU only contains the dialled "number". So
or
$rU =~ "1[0-9]"
But note the regexp, that only matches the exact numbers 10 to 19, if you are
trying to match prefixes you are doing it wrong (tm).
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Yuriy Gorlichenko
2014-08-21 11:37:38 UTC
Permalink
rewritehost() sucessfully work with UAC. But As I know
1) It statless function
2) It read only string argumetns, and do not read variables
Post by Satish Patel
I will give it a try again today, can you please make sure my t_relay() syntax is correct?
So t_relay will rewrite my host past right and send call to trunk.
While ago I was using rewritehost() function but I think it's not working
with UAC registrant module.
Sent from my iPhone
Post by Daniel Tryba
Try $ru instead, $rU only contains the dialled "number". So
or
$rU =~ "1[0-9]"
But note the regexp, that only matches the exact numbers 10 to 19, if
you are
Post by Daniel Tryba
trying to match prefixes you are doing it wrong (tm).
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Satish Patel
2014-08-21 19:12:22 UTC
Permalink
I have tried following rule but somehow opensips challenging it from
authentication

route[3]{

if ( $ru =~ "^sip:011[0-9]*@") {
rewritehostport("65.65.65.65:5065");
xlog("Redirecting to SIP Provider... $ru\n");
exit;
};
}




U 198.198.198.198:56186 -> 182.182.182.182:5060
INVITE sip:0116663332222-KB/***@public.gmane.org SIP/2.0.
Via: SIP/2.0/UDP 198.198.198.198:56186
;branch=z9hG4bK-524287-1---cf509553a10c6e60;rport.
Max-Forwards: 70.
Contact: <sip:1001-***@public.gmane.org:56186;transport=UDP>.
To: <sip:0116663332222-KB/***@public.gmane.org>.
From: "1001"<sip:1001-KB/***@public.gmane.org>;tag=3894f90f.
Call-ID: rcKLOO3Z1CXYS2EtiCLt3w...
CSeq: 1 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, SUBSCRIBE.
Content-Type: application/sdp.
Supported: replaces, norefersub.
User-Agent: SessionTalk Version 4.52.
Content-Length: 334.
.
v=0.
o=- 1408648022732773 1408648022732773 IN IP4 10.199.232.27.
s=-.
c=IN IP4 10.199.232.27.
t=0 0.
m=audio 4004 RTP/AVP 3 102 0 8 9 101.
a=rtpmap:3 GSM/8000.
a=rtpmap:102 iLBC/8000.
a=fmtp:102 mode=30.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:9 G722/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=sendrecv.

#
U 182.182.182.182:5060 -> 198.198.198.198:56186
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 198.198.198.198:56186
;received=198.198.198.198;branch=z9hG4bK-524287-1---cf509553a10c6e60;rport=56186.
;tag=c223d9b6a566b5450d01aad8764c61fe.1e68.
From: "1001"<sip:1001-KB/***@public.gmane.org>;tag=3894f90f.
Call-ID: rcKLOO3Z1CXYS2EtiCLt3w...
CSeq: 1 INVITE.
Proxy-Authenticate: Digest realm="sip.a1routes.com",
nonce="53f6436f0000009672b0aa913a92b9afaecefe5810253453".
Server: OpenSIPS (1.11.2-tls (x86_64/linux)).
Content-Length: 0.
.
rewritehost() sucessfully work with UAC. But As I know
1) It statless function
2) It read only string argumetns, and do not read variables
I will give it a try again today, can you please make sure my t_relay()
Post by Satish Patel
syntax is correct?
So t_relay will rewrite my host past right and send call to trunk.
While ago I was using rewritehost() function but I think it's not working
with UAC registrant module.
Sent from my iPhone
Post by Daniel Tryba
Try $ru instead, $rU only contains the dialled "number". So
or
$rU =~ "1[0-9]"
But note the regexp, that only matches the exact numbers 10 to 19, if
you are
Post by Daniel Tryba
trying to match prefixes you are doing it wrong (tm).
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Continue reading on narkive:
Loading...