Re: [SR-Users] Consuming 300 Multiple Choices

2013-06-27 Thread I.Pavlov
Hi Geoff, to grab "rate"-attribute try to use "$sel(contact.params["rate"]);"-expression. For example, in my test with sipp, I used Contact: sip:sipp@[local_ip]:[local_port];q=0.1;rate=0.002 and $var(rate)=$sel(contact.params["rate"]); xlog("CONTACT URI PARAMS: $var(rate)"); /usr/sbin/kam

[SR-Users] Consuming 300 Multiple Choices

2013-06-27 Thread Geoffrey Mina
Greetings, I am looking for a way to get some extra information out of the Contact header when consuming a multiple choices response. I am using uac_redirect to populate the branches. get_redirects("*"); t_load_contacts(); t_next_contacts(); t_on_failure("2"); t_relay(); In my failure_route[2]

Re: [SR-Users] Wrong src-adress in packets sent from Kamailio when using listen=

2013-06-27 Thread Olle E. Johansson
27 jun 2013 kl. 17:04 skrev Johan Wilfer : >> Have you enabled multihoming? >> http://www.kamailio.org/wiki/cookbooks/4.0.x/core#mhomed >> > > Olle, you are the king. Thank you! You are welcome! > > With mhomed=1 it works with the listen-directives. Great! > > > Greetings from Västkusten :

Re: [SR-Users] Wrong src-adress in packets sent from Kamailio when using listen=

2013-06-27 Thread Johan Wilfer
2013-06-27 16:53, Olle E. Johansson skrev: 27 jun 2013 kl. 16:44 skrev Johan Wilfer : 2013-06-27 16:08, Andrew Mortensen skrev: On Jun 27, 2013, at 9:50 AM, Johan Wilfer wrote: Hi! I've the following setup: Teleco <-> Kamailio <-> Asterisk(s) The proxy has one public IP (say 1.2.3.4) an

Re: [SR-Users] Wrong src-adress in packets sent from Kamailio when using listen=

2013-06-27 Thread Olle E. Johansson
27 jun 2013 kl. 16:44 skrev Johan Wilfer : > 2013-06-27 16:08, Andrew Mortensen skrev: >> >> On Jun 27, 2013, at 9:50 AM, Johan Wilfer wrote: >> >>> Hi! >>> >>> I've the following setup: Teleco <-> Kamailio <-> Asterisk(s) >>> >>> The proxy has one public IP (say 1.2.3.4) and one private (10

Re: [SR-Users] Wrong src-adress in packets sent from Kamailio when using listen=

2013-06-27 Thread Johan Wilfer
2013-06-27 16:08, Andrew Mortensen skrev: On Jun 27, 2013, at 9:50 AM, Johan Wilfer wrote: Hi! I've the following setup: Teleco <-> Kamailio <-> Asterisk(s) The proxy has one public IP (say 1.2.3.4) and one private (10.0.0.1). The asterisk-pbx:es has private adresses (10.0.0.2 in this examp

Re: [SR-Users] Wrong src-adress in packets sent from Kamailio when using listen=

2013-06-27 Thread Andrew Mortensen
On Jun 27, 2013, at 9:50 AM, Johan Wilfer wrote: > Hi! > > I've the following setup: Teleco <-> Kamailio <-> Asterisk(s) > > The proxy has one public IP (say 1.2.3.4) and one private (10.0.0.1). > The asterisk-pbx:es has private adresses (10.0.0.2 in this example) > > I noticed that if I bind

Re: [SR-Users] Xhttp_pi DB Query Clause Operators

2013-06-27 Thread Ovidiu Sas
Hello Simpson, The xhttp_pi module is built on top of the existing kamailio generic db api which doesn't provide a "contains" or "like" SQL query. The supported clause operators are listed in the autogenerated pi_framework.xml, but I will need to add them also to the module readme: /*

[SR-Users] Wrong src-adress in packets sent from Kamailio when using listen=

2013-06-27 Thread Johan Wilfer
Hi! I've the following setup: Teleco <-> Kamailio <-> Asterisk(s) The proxy has one public IP (say 1.2.3.4) and one private (10.0.0.1). The asterisk-pbx:es has private adresses (10.0.0.2 in this example) I noticed that if I bind like this in kamilio.cfg listen=tcp:1.2.3.4:5060 listen=udp:1.2.3.

[SR-Users] Asterisk Gateway OPTIONS relay

2013-06-27 Thread Ian French
Hey list, I've been trying the relay OPTIONS messages from an asterisk server through kamailio to clients so to preserve the qualify feature in asterisk. So ASTERISK -OPTIONS> KAMAILIO > UA UA OK-> KAMAILIO ---OK-> ASTERISK But I'm seeing floods of OPT

Re: [SR-Users] Websocket transport and forward()

2013-06-27 Thread Andreas Granig
Hi, On 06/27/2013 12:54 PM, Andreas Granig wrote: $du = $null; $fs = $null; forward(); What I get is this error message: Jun 27 12:30:53 spce lb[12104]: ERROR: [action.c:437]: do_action(): ERROR: do action: forward: bad uri transport 5 Is there anything special I need to do? Does forward() m

[SR-Users] rtimer forking error while starting Kamailio

2013-06-27 Thread Krishna Kurapati
Hi, After few crashes of the Kamailio during prcessing of the messages, Kamailio fails to start I see rtimer is failing. Here is the log 0(20082) DEBUG: [sr_module.c:892]: DEBUG: init_mod_child (0): sqlops 0(20082) DEBUG: [sr_module.c:892]: DEBUG: init_mod_child (0): app_lua 0(20082) DEBUG:

[SR-Users] Xhttp_pi DB Query Clause Operators

2013-06-27 Thread Simpson Chua
luck. Any help is appreciated. Regards, Allen -- next part -- An HTML attachment was scrubbed... URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130627/a7a97d93/attachment-0001.html> -- Message: 2 Date: T

Re: [SR-Users] kamailio loadbalancer with TLS problem forwarding INVITE back to UA

2013-06-27 Thread Klaus Darilion
make sure to also use handle_ruri_alias() http://kamailio.org/docs/modules/4.0.x/modules/nathelper.html#idp16851488 for requests from the proxy->lb->client see the default kamailio config for proper usage of handle_ruri_alias() and add_contact_alias() regards klaus On 27.06.2013 02:34, All

[SR-Users] Websocket transport and forward()

2013-06-27 Thread Andreas Granig
Hi guys, Maybe I'm missing something, but when I have a stateless lb with websockets enabled, and I don't have mhomed set (meaning that I need to set $fs manually), how would I set $du and $fs correctly, if $ru is for example this: sip:bo87fffs@h7h3rerhg50k.invalid;transport=ws I tr

Re: [SR-Users] dialplan not working

2013-06-27 Thread Victor V. Kustov
Hi all! I don't see in a doc, but mi dp_translate work correctly this way: incorrect: >kamcmd> mi dp_translate 1 99 correct: kamcmd> mi dp_translate 1 s:99 seems need change documentation -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operatio