Re: [SR-Users] SIP Trunk

2014-08-21 Thread Daniel Tryba
On Thursday 21 August 2014 05:56:46 Satish Patel wrote: if ( $rU =~ sip:1[0-9]@*) { 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

Re: [SR-Users] SIP Trunk

2014-08-21 Thread 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 On Aug

Re: [SR-Users] SIP Trunk

2014-08-21 Thread Yuriy Gorlichenko
rewritehost() sucessfully work with UAC. But As I know 1) It statless function 2) It read only string argumetns, and do not read variables 2014-08-21 14:43 GMT+04:00 Satish Patel satish@gmail.com: I will give it a try again today, can you please make sure my t_relay() syntax is correct?

Re: [SR-Users] SIP Trunk

2014-08-21 Thread Satish Patel
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

Re: [SR-Users] SIP Trunk

2014-08-20 Thread Satish Patel
Great! I registered remote Trunk using UAC module. so now i can just use following function to forward my call right? rewritehost() On Wed, Aug 20, 2014 at 12:33 AM, Yuriy Gorlichenko ovoshl...@gmail.com wrote: Use UAC module for this 20.08.2014 7:40 пользователь Satish Patel

Re: [SR-Users] SIP Trunk

2014-08-20 Thread 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 On Wed, Aug 20, 2014 at 8:22 AM, Yuriy Gorlichenko ovoshl...@gmail.com wrote: You can use t_relay() too. One

Re: [SR-Users] SIP Trunk

2014-08-20 Thread Yuriy Gorlichenko
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.

Re: [SR-Users] SIP Trunk

2014-08-20 Thread Daniel Tryba
On Wednesday 20 August 2014 14:54:42 Satish Patel wrote: 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

Re: [SR-Users] SIP Trunk

2014-08-20 Thread Satish Patel
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

[SR-Users] SIP Trunk

2014-08-19 Thread 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

Re: [SR-Users] SIP Trunk

2014-08-19 Thread Yuriy Gorlichenko
Use UAC module for this 20.08.2014 7:40 пользователь Satish Patel satish@gmail.com написал: 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?

Re: [SR-Users] SIP Trunk

2014-06-20 Thread Keith
Hi, So when I use the uac_reg_request_to, for some reason it sends an invite and not a register?? This means I'm not getting a 407 back to the use sac_auth in the failure route. Any ideas? Thanks Keith ___ SIP Express Router (SER) and Kamailio

Re: [SR-Users] SIP Trunk

2014-06-19 Thread Keith
Hi, Thanks Daniel, however don't I need to send a register to get the 401 back? If so how do I do this bit? Thanks Keith ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org

Re: [SR-Users] SIP Trunk

2014-06-19 Thread Daniel Tryba
On Thursday 19 June 2014 10:42:49 Keith wrote: Thanks Daniel, however don't I need to send a register to get the 401 back? If so how do I do this bit? Your message sounded like need to authenticate outbound calls, registrations will direct inbound calls to your machine. Never tried it, but for

Re: [SR-Users] SIP Trunk

2014-06-18 Thread Keith
Hi, I have a carrier who requires SIP authentication on calls, can anyone point me in the right direction? Normally in Asterisk or Freeswitch you can authenticate a peer, but can't see how to do this in Kamailio. Thanks Keith ___ SIP Express Router

Re: [SR-Users] SIP Trunk

2014-06-18 Thread Daniel Tryba
On Wednesday 18 June 2014 10:42:02 Keith wrote: I have a carrier who requires SIP authentication on calls, can anyone point me in the right direction? Normally in Asterisk or Freeswitch you can authenticate a peer, but can't see how to do this in Kamailio. You need the uac module and handle

Re: [SR-Users] sip trunk help

2014-05-09 Thread Olle E. Johansson
On 08 May 2014, at 17:20, Joli Martinez mrjoli...@gmail.com wrote: Hello. What I would like to know is where do I setup a sip trunk in kamailio. Are there any examples as to how to set one up? The term sip trunk means at least X*Y^Z different things. It's not a technichal definition of

Re: [SR-Users] sip trunk help

2014-05-08 Thread Daniel-Constantin Mierla
Hello, you have to explain in more details what that means for you 'sip trunk registered to kamailio' for more specific hints. Otherwise, kamailio doesn't care of who is doing the registration as long as it presents the credentials based on username and password. Cheers, Daniel On

Re: [SR-Users] sip trunk help

2014-05-08 Thread Joli Martinez
Hello. What I would like to know is where do I setup a sip trunk in kamailio. Are there any examples as to how to set one up? Sent from my iPhone On May 8, 2014, at 3:05 AM, Daniel-Constantin Mierla mico...@gmail.com wrote: Hello, you have to explain in more details what that means

[SR-Users] sip trunk help

2014-05-07 Thread Joli Martinez
Hello, I am new to Kamailio. I need to get a SIP trunk registered to Kamailio. Can someone explain how to set this up. Thanks ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org

[SR-Users] sip trunk

2014-05-04 Thread Joli Martinez
Hello, I am setting up Kamailio as class4 softswitch for wholesale minutes. I am trying to figure out how to add a SIP trunk to kamailio. thanks, ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

Re: [SR-Users] SIP Trunk Usage Monitoring

2011-05-10 Thread Andrew Pogrebennyk
On 09.05.2011 22:44, JR Richardson wrote: Would there be any usage examples of dialog module? I'm not sure if I really need profiles and [values] and when to set and unset. A push in the right direction would be helpful. Hi, here is an example I've used for incoming and outgoing calls

Re: [SR-Users] SIP Trunk Usage Monitoring

2011-05-10 Thread JR Richardson
On 09.05.2011 22:44, JR Richardson wrote: Would there be any usage examples of dialog module? I'm not sure if I really need profiles and [values] and when to set and unset. A push in the right direction would be helpful. Hi, here is an example I've used for incoming and outgoing calls

Re: [SR-Users] SIP Trunk Usage Monitoring

2011-05-09 Thread JR Richardson
I recently interconnected to an upstream carrier using Kamailio 3.0, working fine.  We have configure 2 SIP trunks for failover/redundnacy.   I'm using dispatcher module to round robin calls to the carrier.  I wanted to monitor trunk usage between us.  I was reading in the devel 3.2 about

Re: [SR-Users] SIP Trunk Usage Monitoring

2011-05-06 Thread Alex Balashov
On 05/06/2011 03:43 PM, JR Richardson wrote: Hi All, I recently interconnected to an upstream carrier using Kamailio 3.0, working fine. We have configure 2 SIP trunks for failover/redundnacy. I'm using dispatcher module to round robin calls to the carrier. I wanted to monitor trunk usage