Re: [OpenSIPS-Users] Manage LRN response for invite

2018-12-13 Thread Vishal Pai
Thank you Jon. It worked. On Tue, Dec 11, 2018 at 5:42 PM Jon Abrams wrote: > I do something like this to pull the rn field from the response: > > if(t_check_status("302")) { > $var(contact) = $(hdr(Contact)); > $avp(lrn_called) = $(var(contact){nameaddr.uri}{param.value,rn}); > } > > On

[OpenSIPS-Users] Getting Address family not supported by protocol(97) on ipv6 call

2018-12-13 Thread Ravindrakumar Bhatt
Hello, I am using opensips 2.2 and have enabled ipv4 and ipv6 in config. I am getting 500 internal error whenever I am trying to forward call to ipv6 using dispatcher. Scenario(VMBUSY) : user1(ipv6)->> user2(ipv4)(486 user busy) ->>voicemail server(ipv6) Error: Dec 13 10:17:08 195 /usr/local/sbi

Re: [OpenSIPS-Users] Getting Address family not supported by protocol(97) on ipv6 call

2018-12-13 Thread Răzvan Crainea
Hello! Are you using force_send_socket() in your config? If you are, make sure you force an IPv4 address when going to voicemail. Best regards, Razvan On 12/13/18 11:36 AM, Ravindrakumar Bhatt wrote: Hello, I am using opensips 2.2 and have enabled ipv4 and ipv6 in config. I am getting 500 i

Re: [OpenSIPS-Users] Getting Address family not supported by protocol(97) on ipv6 call

2018-12-13 Thread Ravindrakumar Bhatt
Hi, I am not using force_send_socket() for transferring call to voicemail server. I am using dispatcher to send call to voicemail server.if request is from ipv4 than call will be send to ipv4 peer of vm server else if request is from ipv6 than its sent to ipv6 peer of server. Thanks and Regards, R

Re: [OpenSIPS-Users] Getting Address family not supported by protocol(97) on ipv6 call

2018-12-13 Thread Răzvan Crainea
Then try to force_send_socket() in failure route, after running ds_select_*(). Or just provision a socket for the VM server in the database. Best regards, Răzvan On 12/13/18 12:33 PM, Ravindrakumar Bhatt wrote: Hi, I am not using force_send_socket() for transferring call to voicemail server.

Re: [OpenSIPS-Users] convert from tel: to sip: on To header

2018-12-13 Thread Alain Bieuzent
Reply to myself, perhaps it can help someone # if we receive a call with "tel:" in To header we remove it     $var(str) = 'tel:';     $var(tu) = $tu;     if ($(var(tu){s.index, $var(str)}) >=0)     {     $var(reg) = "/tel://g";     $var(newtu) =

Re: [OpenSIPS-Users] Getting Address family not supported by protocol(97) on ipv6 call

2018-12-13 Thread Ravindrakumar Bhatt
Thanks Răzvan, Providing socket in dispatcher worked for me. On Thu, Dec 13, 2018 at 4:13 PM Răzvan Crainea wrote: > Then try to force_send_socket() in failure route, after running > ds_select_*(). Or just provision a socket for the VM server in the > database. > > Best regards, > Răzvan > > On

[OpenSIPS-Users] String to IP transformations

2018-12-13 Thread vasilevalex
Hi, all. OpenSIPS 2.4.3 this script: $var(ip_1_s) = "[2001:6c8:5e00:1::249]"; $var(ip_1_b) = $(var(ip_1_s){ip.pton}); # Save binary IP to variable $var(ip_1) = $(var(ip_1_s){ip.pton}{ip.ntop}); # Save string from binary IP to variable $var(ip_2_s) = "[2001:6c8:5e00:1::250]"; $var(ip_2_b) = $(var(

[OpenSIPS-Users] OpenSIPS 407 authentication

2018-12-13 Thread Aatif Shaikh
Aatif Shaikh [image: Attachments]5:27 PM (5 minutes ago) to users Dear Team, we need to used Opensips as B2BUA. With the help of *registrant* we are able to register with Gateway and now we want the below call scenario to achieve with B2BUA. 1) Any user(Not register with Opensip) from another IPP

Re: [OpenSIPS-Users] String to IP transformations

2018-12-13 Thread Liviu Chircu
Hi Alexey, Nice catch!  All four tests should produce DIFFERENT.  We have to look closer and figure out what is happening there... a quick assumption could be that there are some \0 NULL bytes in the binary-stored addresses which may not work very well with the script string comparison implem

Re: [OpenSIPS-Users] String to IP transformations

2018-12-13 Thread vasilevalex
Thanks, Liviu. I created issue https://github.com/OpenSIPS/opensips/issues/1568 -- Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html ___ Users mailing list Users@lists.opensips.org http://lists.opensips.o

Re: [OpenSIPS-Users] convert from tel: to sip: on To header

2018-12-13 Thread Ben Newlin
Alain, The URI module also contains a tel2sip conversion function you may wish to use. It properly handles converting parameters from tel: to sip: format, which I don’t believe your solution does. https://opensips.org/html/docs/modules/2.4.x/uri.html#func_tel2sip Ben Newlin From: Users on be

Re: [OpenSIPS-Users] convert from tel: to sip: on To header

2018-12-13 Thread Alain Bieuzent
Thanks Ben, i see this function of uri module, but as I understand it convert only « tel » format on RURI and not on To (or From) header. Regards De : Users au nom de Ben Newlin Répondre à : OpenSIPS users mailling list Date : jeudi 13 décembre 2018 à 14:04 À : OpenSIPS users maill

Re: [OpenSIPS-Users] convert from tel: to sip: on To header

2018-12-13 Thread Ben Newlin
Alain, Yes, I see now that is the case. My apologies for missing that. Ben Newlin From: Users on behalf of Alain Bieuzent Reply-To: OpenSIPS users mailling list Date: Thursday, December 13, 2018 at 8:10 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] convert from tel: to s

Re: [OpenSIPS-Users] convert from tel: to sip: on To header

2018-12-13 Thread Alain Bieuzent
no worries, we are here to exchange Alain De : Users au nom de Ben Newlin Répondre à : OpenSIPS users mailling list Date : jeudi 13 décembre 2018 à 14:42 À : OpenSIPS users mailling list Objet : Re: [OpenSIPS-Users] convert from tel: to sip: on To header Alain, Yes, I see now t

[OpenSIPS-Users] Introducing OpenSIPS 3.0

2018-12-13 Thread Bogdan-Andrei Iancu
You already know the story – one more year, one more evolution cycle, one more OpenSIPS major release. Even more, a new OpenSIPS direction is about to start. So let me introduce you to the upcoming OpenSIPS 3.0 . For the upcoming OpenSIPS 3.0 release (and 3.x family) the main focus is on the *

[OpenSIPS-Users] OpenSIPS 407 authentication

2018-12-13 Thread Aatif Shaikh
Dear Team, we need to used Opensips as B2BUA. With the help of *registrant* we are able to register with Gateway and now we want the below call scenario to achieve with B2BUA. 1) Any user(Not register with Opensip) from another IPPBX (Asterisk) make a call to Opensips. 2) We authenticate this user

[OpenSIPS-Users] Module OPTIONS documentation error

2018-12-13 Thread VozToVoice Net
Hello, I think there is a mistake on the OPTIONS module documentation (2.4) core parameter method i think no longer exist: if (is_myself("$rd")) { if ((method==OPTIONS) && (! $ru=~"sip:.*[@]+.*")) { options_reply(); } } now is: if (is_myself("$rd")) {

[OpenSIPS-Users] Fwd: OpenSIPS 407 authentication

2018-12-13 Thread Aatif Shaikh
-- Forwarded message - From: Aatif Shaikh Date: Mon, Dec 10, 2018 at 5:22 PM Subject: OpenSIPS 407 authentication To: Dear Team, we need to used Opensips as B2BUA. With the help of *registrant* we are able to register with Gateway and now we want the below call scenario to achi