Re: [SR-Users] NAPTR/SRV lookups fail when use_dns_failover is enabled.

2017-01-19 Thread Carsten Bock
Hi, we have the following settings and those work fine for us (Kamailio 4 and later): # Do SRV-Loadbalancing: dns_srv_lb=yes # Always prefer IPv6: dns_try_ipv6=yes # DNS-Based failover use_dns_failover=yes # Query NAPTR-Records as well (we use NAPTR, so the client can detect the outbound Proxy (P

[SR-Users] NAPTR/SRV lookups fail when use_dns_failover is enabled.

2017-01-19 Thread Jeremy Gadd
Hello, everyone! I'm trying to enable dns_srv_lb but I'm stuck just before I can get there. If I don't enable use_dns_failover, lookups work and calls route but always to the first host. We need to load balance, so that doesn't work very well. If I enable use_dns_failover, the lookups stop workin

[SR-Users] UAC authentication

2017-01-19 Thread anfecora
can someone please guide me where to find the usage of auc module, thanks in advance. I am registering the uac in one end then i want to forward that registration to an external registrar, if i use $du some domain, some of the ipv6 info is going to be forwarded, i need to make it look more like an

Re: [SR-Users] Return body/string from Perl library

2017-01-19 Thread David Cunningham
Hi Daniel, Yes, that works. Thank you! On 19 January 2017 at 19:53, Daniel-Constantin Mierla wrote: > Hello, > > no familiar with the app_perl api and the docs doesn't show any function > for setting the body. But you should be able set the new body in an avp: > > https://www.kamailio.org/docs

Re: [SR-Users] Kamailio parse failed message

2017-01-19 Thread Daniel-Constantin Mierla
Hello, On 19/01/2017 10:48, Hai Bui Duc Ha wrote: > Hi Daniel, > > Thank you for reply. > > On Tue, Jan 17, 2017 at 6:05 PM, Daniel-Constantin Mierla > mailto:mico...@gmail.com>> wrote: > > Hello, > > apparently I missed the follow ups on this discussion, dragged in > by other topic

Re: [SR-Users] Kamailio not processing SIP TCP

2017-01-19 Thread Daniel-Constantin Mierla
The receive queue is empty, so either the kernel is no putting the traffic there or kamailio consume it. Is this box in the same subnet as initial target? Is it having the same IP as the initial target of the packets? If I anot wrong, tcp mirroring is a bit more tricky and restrictive in what has

Re: [SR-Users] Kamailio not processing SIP TCP

2017-01-19 Thread JR Richardson
root@homer02:~# netstat -altp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 homer02.x.xxx:sip*:* LISTEN 16018/kamailio tcp0 0 homer02.x.xxx:5066 *:* L

Re: [SR-Users] Kamailio parse failed message

2017-01-19 Thread Hai Bui Duc Ha
Hi Daniel, Thank you for reply. On Tue, Jan 17, 2017 at 6:05 PM, Daniel-Constantin Mierla wrote: > Hello, > > apparently I missed the follow ups on this discussion, dragged in by other > topics on mailing list. > Can you get the pcap with all the traffic taken on kamailio server for the > call

Re: [SR-Users] Phone number formats per country

2017-01-19 Thread Daniel-Constantin Mierla
Hello, On 18/01/2017 23:33, Tristan Mahé wrote: > Hi Daniel, > > Not exactly a list, and I believe Carsten got you covered ( can get you > another if needed, just ping me ) but have you looked into libphonenumber ? > > Seems quite maintained and could be helpful: > https://github.com/googlei18n/l

Re: [SR-Users] Return body/string from Perl library

2017-01-19 Thread Daniel-Constantin Mierla
Hello, no familiar with the app_perl api and the docs doesn't show any function for setting the body. But you should be able set the new body in an avp: https://www.kamailio.org/docs/modules/stable/modules/app_perl.html#ID-d4453222c49e08dc556c25a6586a00bc and then use it in kamailio.cfg. Cheers

Re: [SR-Users] ds_is_from_list and NAPTR / SRV

2017-01-19 Thread Daniel-Constantin Mierla
Hello, I haven't added the support for the 3rd parameter to ds_is_from_list(), so I don't know what kind of DNS query is doing. Maybe it is not starting from NAPTR. It will require to look at the code if the author is not coming with clarifications. One way for a quick check is to sniff the port