Re: [SR-Users] append_branch with pseudo variables

2012-08-17 Thread Carlos Ruiz Díaz
I figured out what was happening. By doing "$(branch(q)[1]) = "0.1";" I was trying to write into an non existent branch since 1 is actually the second branch because the main branch ($ru) is not counted. $(branch(q)[0]) = "0.1" // is the 1st. $(branch(q)[1]) = "0.1" // is the 2nd. Regards. Car

Re: [SR-Users] append_branch with pseudo variables

2012-08-17 Thread Carlos Ruiz Díaz
I can't set any of the attributes values using the assignment syntax. Everytime I do: $(branch(q)[1]) = "0.1"; I get ERROR: [lvalue.c:354]: setting pvar failed. This is true for all attributes, nut just for "q". Am I doing something wrong? I'm using Kamailio 3.2.3. Regards. Carlos. On Fri

Re: [SR-Users] Kamailio packet sourcing

2012-08-17 Thread Alex Balashov
Have a look at the force_send_socket / $fs approach. On 08/17/2012 12:48 PM, Luis Fernando Urrea wrote: Hi all, I am sort of a new comer to kamailio and I have a config in which Kamailio listens on different IPs that correspond to SSH VPN tunnels. The config handles a MULTIDOMAIN scenario with

[SR-Users] Kamailio packet sourcing

2012-08-17 Thread Luis Fernando Urrea
Hi all, I am sort of a new comer to kamailio and I have a config in which Kamailio listens on different IPs that correspond to SSH VPN tunnels. The config handles a MULTIDOMAIN scenario with FreeSWITCH as multi tenant media server. The situation I am facing is that when a REGISTERED user calls in

Re: [SR-Users] Kamailio NAT traversal

2012-08-17 Thread Fred Posner
On my set-up, I forward incoming dids to freeswitch for handling, and then forward requests from registered users to another. There's a great tutorial from Daniel/asipto that should be a very good guide: http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc With best regards,

Re: [SR-Users] Kamailio NAT traversal

2012-08-17 Thread Spencer Thomason
Hi Sammy and Fred, Basically I'm building a hosted PBX platform using a muti domain FreeSWITCH setup. Freeswitch and Kamailio are on a public IP. Previously all endpoints registered to Freeswitch directly which works great. For scalability purposes, my thought was to use Kamailio in front of

Re: [SR-Users] Kamailio NAT traversal

2012-08-17 Thread Daniel-Constantin Mierla
Hello, it should be straightforward starting with 3.3.0 to run Kamailio behind a port forwarding NAT (like amazon ec2), using the 'advertise' property of the listen parameter: http://www.kamailio.org/wiki/cookbooks/3.3.x/core#listen For example, default config will stay 'unchanged' apart of

Re: [SR-Users] append_branch with pseudo variables

2012-08-17 Thread Carlos Ruiz Díaz
I'll try that :). Thanks for your help. Carlos. On Fri, Aug 17, 2012 at 5:30 AM, Daniel-Constantin Mierla wrote: > > On 8/16/12 10:50 PM, Carlos Ruiz Díaz wrote: > > > > On Thu, Aug 16, 2012 at 4:30 PM, Daniel-Constantin Mierla < > mico...@gmail.com> wrote: > >> >> On 8/16/12 9:15 PM, Carlos R

Re: [SR-Users] Kamailio NAT traversal

2012-08-17 Thread Fred Posner
Hi Spencer, Is Kamailio also natted? If so, you may have some issues... if not, it should work great. I run a server like this as well... very happy with it. I gave up on kamailio/freeswitch behind nat. Well, didn't give up, just don't have the time to make it work. With best regards, Fred ht

Re: [SR-Users] Kamailio NAT traversal

2012-08-17 Thread SamyGo
Hi, You kind of sound a little different here. Are you saying that the REGISTRATIONs will be handled by Freeswitch but store the registration Data in Kamailio "location" table !? Just go through the Kamailio blog by-Miconda or kb.asipto.com specially the one on integrating the Asterisk Realtime w

Re: [SR-Users] Request for advice, running SIP-Router in OpenVZ Container

2012-08-17 Thread Tayeb
I do that No issue so far Envoyé de mon iPhone Le 17 août 2012 à 13:42, "JR Richardson" a écrit : > Hi All, > > I’m considering running Kamailio as a virtual machine, with such low > utilization, it doesn’t seem to make sense to keep running it on a physical > host server. > > I’ve been v

Re: [SR-Users] Request for advice, running SIP-Router in OpenVZ Container

2012-08-17 Thread Benjamin Henrion
On Friday, August 17, 2012, JR Richardson wrote: > Hi All, > > > > I’m considering running Kamailio as a virtual machine, with such low utilization, it doesn’t seem to make sense to keep running it on a physical host server. > > > > I’ve been virtualizing Asterisk PBX’s for years and run a host of

[SR-Users] Request for advice, running SIP-Router in OpenVZ Container

2012-08-17 Thread JR Richardson
Hi All, I'm considering running Kamailio as a virtual machine, with such low utilization, it doesn't seem to make sense to keep running it on a physical host server. I've been virtualizing Asterisk PBX's for years and run a host of other virtualized servers with OpenVZ, VMware and MS V-Serv

Re: [SR-Users] Accessing received after lookup()

2012-08-17 Thread DanB
Daniel, As always experience counts the most (I did not consider the multiple contacts scenario). Here is what I cooked now after your advice (for the sake of proper archiving). In the end I will process the rcv contact parameter (which will become ruri param) in the proxy sitting in front o

Re: [SR-Users] Accessing received after lookup()

2012-08-17 Thread Daniel-Constantin Mierla
Hello, On 8/17/12 11:13 AM, DanB wrote: If it helps someone else, got in the mean time another way of accessing it, via transformations on top of $du: $(du{uri.param,received}). $du is the address of next hop and it is set due to the Path headers in this case. In the case there is no interm

Re: [SR-Users] Accessing received after lookup()

2012-08-17 Thread DanB
Hey Daniel, Yeah, got the header out of received from path. Actually I have de-coupled registrations which work and store just fine the received parameter out of INVITEs which are querying the registrar using lookup. In the end I have ended up using received parameter if present in $du after

Re: [SR-Users] Accessing received after lookup()

2012-08-17 Thread Daniel-Constantin Mierla
Hello, On 8/17/12 10:47 AM, DanB wrote: Hey All, I was wondering if anyone could point me to the right direction on the following issue: I use registrar with path to store contacts after main proxy. There I have properly stored received db field (original address of the NAT router). did

Re: [SR-Users] append_branch with pseudo variables

2012-08-17 Thread Daniel-Constantin Mierla
On 8/16/12 10:50 PM, Carlos Ruiz Díaz wrote: On Thu, Aug 16, 2012 at 4:30 PM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: On 8/16/12 9:15 PM, Carlos Ruiz Díaz wrote: Looks like km_append_branch() doesn't have all of the signatures that the original append_branch

Re: [SR-Users] Accessing received after lookup()

2012-08-17 Thread DanB
If it helps someone else, got in the mean time another way of accessing it, via transformations on top of $du: $(du{uri.param,received}). The question which still stands: is there more "automated" way to properly handle 302 redirect when the contact is behind NAT? DanB O _

[SR-Users] Accessing received after lookup()

2012-08-17 Thread DanB
Hey All, I was wondering if anyone could point me to the right direction on the following issue: I use registrar with path to store contacts after main proxy. There I have properly stored received db field (original address of the NAT router). When I query the registrar, I get the user conta