[OpenSIPS-Users] Fwd: Drouting use next gateway adding too many vias SOLVED

2016-12-14 Thread Richard Robson

Hi All

I was re processing the failures in the next route block (with record 
route and topology hiding etc) as i would for a new packet instead of 
jut relaying after the next gateway is chosen.


Sorry for the noise

R

Hi,


I'm testing out new carrier which has 3 different endpoits for us to
connect to. I've setup the 3 addresses in the DR_Rules table and the
first call or calls to a different address directly work. however, when
a call fails ad I select the next gateway the originating asteris box
failed to respond to the 200 OK.

I've traced this to Asterisk compalining about too many vias in the sip
response


this is one of the packets and you can seee the two vias.

Is there anyway to stop this, is this expected behavoir or am I doing
something wrong?

its Opensips 2.2.2


Regards,


Richard

2016/12/14 17:42:16.974603 192.168.36.141:5060 -> 192.168.36.68:5060
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP
192.168.36.68:5060;received=192.168.36.68;rport=5060;branch=z9hG4bK42faa1b4
Via: SIP/2.0/UDP
192.168.36.68:5060;received=192.168.36.68;rport=5060;branch=z9hG4bK42faa1b4
To: ;tag=3690726199-902585
From: ;tag=as1d2fa6b6
Call-ID: 57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060
CSeq: 103 INVITE
Allow: UPDATE,PRACK,INFO,OPTIONS,BYE,INVITE,ACK,CANCEL
Contact: 
Content-Type: application/sdp
Accept: application/sdp
Content-Length: 372

v=0
o=sbc-uk-mqd-k05a 280406016 1481737400 IN IP4 109.159.137.74
s=sip call
c=IN IP4 141.170.9.159
t=0 0
m=audio 40728 RTP/AVP 8 0 18 96
a=rtpmap:8 PCMA/8000
a=sendrecv
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=silenceSupp:off - - - -
a=ptime:20
a=maxptime:30
a=oldcip:109.159.137.68



[2016-12-14 17:43:19] WARNING[28124][C-4e17] chan_sip.c: Misrouted
SIP response '183 Session Progress' with Call-ID
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias
[2016-12-14 17:43:20] WARNING[28124][C-4e17] chan_sip.c: Misrouted
SIP response '180 Ringing' with Call-ID
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias
[2016-12-14 17:43:21] WARNING[28124][C-4e17] chan_sip.c: Misrouted
SIP response '200 OK' with Call-ID
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias
[2016-12-14 17:43:22] WARNING[28124][C-4e17] chan_sip.c: Misrouted
SIP response '200 OK' with Call-ID
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias
[2016-12-14 17:43:23] WARNING[28124][C-4e17] chan_sip.c: Misrouted
SIP response '200 OK' with Call-ID
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias
[2016-12-14 17:43:25] WARNING[28124][C-4e17] chan_sip.c: Misrouted
SIP response '200 OK' with Call-ID
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias


--
Richard Robson
Greenlight Support
01382 843843
supp...@greenlightcrm.com


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] How to Keep OpenSIPS in reverse path

2016-12-14 Thread Daniel Zanutti
I also suggest use topology_hiding(), i saw some equipments ignoring
Via/record-route order.

On Wed, Dec 14, 2016 at 3:53 PM, Muhammad Naseer Bhatti 
wrote:

>
> Hi Razvan,
> I am not using REGISTER, but I guess add_path() wont’ work for me, I am
> using record_route() for the INVITE though.
>
> …
> if (is_method("INVITE")) {
> record_route();
> }
> …
>
> On the media server I see the Via header,
>
>INVITE sip:6054775550@64.58.228.102: SIP/2.0
>Record-Route:  BRAp6IAQSKwtAN3Mjj2bPKL>
>Via: SIP/2.0/UDP 64.58.228.102:;branch=z9hG4bK31d2.
> b8fe57fe9c7545e354a93f391a1d0704.0
>Via: SIP/2.0/UDP 172.16.0.101:52207;received=172.16.0.101;rport=52207;
> branch=z9hG4bKPjyGufepGSH2zMGfp6J.CIKvEgl87YIPFN
>
> but when the media server sends
>
> recv 1432 bytes from udp/[64.58.228.89]: at 12:44:12.709234:
>---
> -
>INVITE sip:6054775550@23.29.112.144:15080 SIP/2.0
>Via: SIP/2.0/UDP 64.58.228.89:;rport;branch=z9hG4bKF8jFHt4maUBeQ
>Max-Forwards: 68
>From: "Naseer" ;tag=45yZ9S13S47HF
>
> Not sure what I am doing wrong. Here is my script, http://pastebin.com/
> Cmnxnf4c
>
>
> --
>
> Sent with Airmail
>
> From: Răzvan Crainea  
> Reply: OpenSIPS users mailling list 
> 
> Date: December 14, 2016 at 8:34:22 PM
> To: users@lists.opensips.org 
> 
> Subject:  Re: [OpenSIPS-Users] How to Keep OpenSIPS in reverse path
>
> Hi, Muhammad!
>
> The add_path() function should only be called on REGISTER messages, and it
> adds a Path header (not a Via). Do you see this header in your REGISTER
> message?
> For sequential requests, you should use the record_route() mechanism.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 12/14/2016 06:39 PM, Muhammad Naseer Bhatti wrote:
>
>
> I am using dispatcher to distribute calls to multiple media servers, but
> also want the reply to go through OpenSIPS. So far I have tried add_path()
> function which add the Via header but FreeSWITCH sends the call directly to
> the gateway not sending the call back through OpenSIPS. I am not sure if I
> am doing something wrong, how can I achieve that?
>
>
> --
>
> Sent with Airmail
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Drouting use next gateway adding too many vias

2016-12-14 Thread Richard Robson

Hi,


I'm testing out new carrier which has 3 different endpoits for us to 
connect to. I've setup the 3 addresses in the DR_Rules table and the 
first call or calls to a different address directly work. however, when 
a call fails ad I select the next gateway the originating asteris box 
failed to respond to the 200 OK.


I've traced this to Asterisk compalining about too many vias in the sip 
response



this is one of the packets and you can seee the two vias.

Is there anyway to stop this, is this expected behavoir or am I doing 
something wrong?


its Opensips 2.2.2


Regards,


Richard

2016/12/14 17:42:16.974603 192.168.36.141:5060 -> 192.168.36.68:5060
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 
192.168.36.68:5060;received=192.168.36.68;rport=5060;branch=z9hG4bK42faa1b4
Via: SIP/2.0/UDP 
192.168.36.68:5060;received=192.168.36.68;rport=5060;branch=z9hG4bK42faa1b4

To: ;tag=3690726199-902585
From: ;tag=as1d2fa6b6
Call-ID: 57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060
CSeq: 103 INVITE
Allow: UPDATE,PRACK,INFO,OPTIONS,BYE,INVITE,ACK,CANCEL
Contact: 
Content-Type: application/sdp
Accept: application/sdp
Content-Length: 372

v=0
o=sbc-uk-mqd-k05a 280406016 1481737400 IN IP4 109.159.137.74
s=sip call
c=IN IP4 141.170.9.159
t=0 0
m=audio 40728 RTP/AVP 8 0 18 96
a=rtpmap:8 PCMA/8000
a=sendrecv
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=silenceSupp:off - - - -
a=ptime:20
a=maxptime:30
a=oldcip:109.159.137.68



[2016-12-14 17:43:19] WARNING[28124][C-4e17] chan_sip.c: Misrouted 
SIP response '183 Session Progress' with Call-ID 
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias
[2016-12-14 17:43:20] WARNING[28124][C-4e17] chan_sip.c: Misrouted 
SIP response '180 Ringing' with Call-ID 
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias
[2016-12-14 17:43:21] WARNING[28124][C-4e17] chan_sip.c: Misrouted 
SIP response '200 OK' with Call-ID 
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias
[2016-12-14 17:43:22] WARNING[28124][C-4e17] chan_sip.c: Misrouted 
SIP response '200 OK' with Call-ID 
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias
[2016-12-14 17:43:23] WARNING[28124][C-4e17] chan_sip.c: Misrouted 
SIP response '200 OK' with Call-ID 
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias
[2016-12-14 17:43:25] WARNING[28124][C-4e17] chan_sip.c: Misrouted 
SIP response '200 OK' with Call-ID 
'57f6d7d10a004b8943a25d41470ef82d@192.168.36.68:5060', too many vias



--
Richard Robson
Greenlight Support
01382 843843
supp...@greenlightcrm.com


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] How to Keep OpenSIPS in reverse path

2016-12-14 Thread Muhammad Naseer Bhatti
Hi Razvan,
I am not using REGISTER, but I guess add_path() wont’ work for me, I am
using record_route() for the INVITE though.

…
if (is_method("INVITE")) {
record_route();
}
…

On the media server I see the Via header,

   INVITE sip:6054775550@64.58.228.102: SIP/2.0
   Record-Route: 
   Via: SIP/2.0/UDP 64.58.228.102:
;branch=z9hG4bK31d2.b8fe57fe9c7545e354a93f391a1d0704.0
   Via: SIP/2.0/UDP 172.16.0.101:52207
;received=172.16.0.101;rport=52207;branch=z9hG4bKPjyGufepGSH2zMGfp6J.CIKvEgl87YIPFN

but when the media server sends

recv 1432 bytes from udp/[64.58.228.89]: at 12:44:12.709234:
   
   INVITE sip:6054775550@23.29.112.144:15080 SIP/2.0
   Via: SIP/2.0/UDP 64.58.228.89:;rport;branch=z9hG4bKF8jFHt4maUBeQ
   Max-Forwards: 68
   From: "Naseer" ;tag=45yZ9S13S47HF

Not sure what I am doing wrong. Here is my script,
http://pastebin.com/Cmnxnf4c


-- 

Sent with Airmail

From: Răzvan Crainea  
Reply: OpenSIPS users mailling list 

Date: December 14, 2016 at 8:34:22 PM
To: users@lists.opensips.org 

Subject:  Re: [OpenSIPS-Users] How to Keep OpenSIPS in reverse path

Hi, Muhammad!

The add_path() function should only be called on REGISTER messages, and it
adds a Path header (not a Via). Do you see this header in your REGISTER
message?
For sequential requests, you should use the record_route() mechanism.

Best regards,

Răzvan Crainea
OpenSIPS Solutionswww.opensips-solutions.com

On 12/14/2016 06:39 PM, Muhammad Naseer Bhatti wrote:


I am using dispatcher to distribute calls to multiple media servers, but
also want the reply to go through OpenSIPS. So far I have tried add_path()
function which add the Via header but FreeSWITCH sends the call directly to
the gateway not sending the call back through OpenSIPS. I am not sure if I
am doing something wrong, how can I achieve that?


-- 

Sent with Airmail


___
Users mailing 
listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] How to Keep OpenSIPS in reverse path

2016-12-14 Thread Răzvan Crainea

Hi, Muhammad!

The add_path() function should only be called on REGISTER messages, and 
it adds a Path header (not a Via). Do you see this header in your 
REGISTER message?

For sequential requests, you should use the record_route() mechanism.

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 12/14/2016 06:39 PM, Muhammad Naseer Bhatti wrote:


I am using dispatcher to distribute calls to multiple media servers, 
but also want the reply to go through OpenSIPS. So far I have 
tried add_path() function which add the Via header but FreeSWITCH 
sends the call directly to the gateway not sending the call back 
through OpenSIPS. I am not sure if I am doing something wrong, how can 
I achieve that?



--

Sent with Airmail


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] How to Keep OpenSIPS in reverse path

2016-12-14 Thread Muhammad Naseer Bhatti
I am using dispatcher to distribute calls to multiple media servers, but
also want the reply to go through OpenSIPS. So far I have tried add_path()
function which add the Via header but FreeSWITCH sends the call directly to
the gateway not sending the call back through OpenSIPS. I am not sure if I
am doing something wrong, how can I achieve that?


-- 

Sent with Airmail
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [IMPORTANT] MAINTENANCE: opensips.org email and mailing lists servers migration

2016-12-14 Thread Bogdan-Andrei Iancu

Hello Johan,

Thanks for the head-up, a small issue with the SSL permissions (for HTTPS).
Fixed now.

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 14.12.2016 14:12, Johan De Clercq wrote:

Dear Razvan,

when I try to go to opensips ummit, ig et the following:


  Not Found

The requested URL /events/Summit-2017Amsterdam.html was not found on 
this server.




2016-12-14 12:50 GMT+01:00 Răzvan Crainea >:


Hello, everyone!

Both email and mailing lists servers have been successfully moved
to a new platform. You are now free to use them at your convenience.

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com 

On 12/12/2016 06:38 PM, Răzvan Crainea wrote:

Hello everybody!

Wednesday, 14th of December 2016, 10:00 EET[1], we are
planning to migrate some opensips.org 
servers to a new platform. Therefore the email server and
mailing lists servers will be down for about 2 hours. During
this timeframe[1] we recommend you to avoid sending any emails
to either an @opensips.org  or
@lists.opensips.org  email, because
they might not be received and they will get lost.
As soon as the migration is completed, we will get back with a
notification.

[1]

https://www.timeanddate.com/worldclock/fixedtime.html?msg=MAINTENANCE%3A+opensips.org+email+and+mailing+lists+server+migration=20161214T10=49=2



Best regards,



___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [IMPORTANT] MAINTENANCE: opensips.org email and mailing lists servers migration

2016-12-14 Thread Johan De Clercq
Dear Razvan,

when I try to go to opensips ummit, ig et the following:
Not Found

The requested URL /events/Summit-2017Amsterdam.html was not found on this
server.


2016-12-14 12:50 GMT+01:00 Răzvan Crainea :

> Hello, everyone!
>
> Both email and mailing lists servers have been successfully moved to a new
> platform. You are now free to use them at your convenience.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutions
> www.opensips-solutions.com
>
> On 12/12/2016 06:38 PM, Răzvan Crainea wrote:
>
>> Hello everybody!
>>
>> Wednesday, 14th of December 2016, 10:00 EET[1], we are planning to
>> migrate some opensips.org servers to a new platform. Therefore the email
>> server and mailing lists servers will be down for about 2 hours. During
>> this timeframe[1] we recommend you to avoid sending any emails to either an
>> @opensips.org or @lists.opensips.org email, because they might not be
>> received and they will get lost.
>> As soon as the migration is completed, we will get back with a
>> notification.
>>
>> [1] https://www.timeanddate.com/worldclock/fixedtime.html?msg=MA
>> INTENANCE%3A+opensips.org+email+and+mailing+lists+server+
>> migration=20161214T10=49=2
>>
>> Best regards,
>>
>>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] ?????? what is the problem with

2016-12-14 Thread james
Hello??
I am trying with Lab-9 and add load balance from CP, Group ID, Destination 
URL(sip:54.160.131.18:5600), Resource, Probe Mode and description. the  format 
of URL is wrong, but I do not know why so. the the result gui looks like this:





--  --
??: "R?0?0zvan Crainea";;
: 2016??12??8??(??) 8:01
??: "OpenSIPS users mailling list"; 

: Re: [OpenSIPS-Users] what is the problem with



   Hi, James!
   
   Are you specifying any resources for your destination? Resources   
should be something like: pstn=100;conf=10
   
   Best regards,
  R?0?0zvan Crainea OpenSIPS Solutions www.opensips-solutions.com 
On 12/08/2016 01:32 PM, james wrote:
 
Hello:
   If   I enter this: sip:54.160.131.18:5600 from load balance on 
CP,   after click "save", the system shows errors: !!! Data format  
 is incorrect!. Should be name1=value1;name2=value2?
   what   is the problem?
   
  
   ___ Users mailing list 
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

2FFEF80F@0ACFB708.AEDB4958
Description: Binary data
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [IMPORTANT] MAINTENANCE: opensips.org email and mailing lists servers migration

2016-12-14 Thread Răzvan Crainea

Hello, everyone!

Both email and mailing lists servers have been successfully moved to a 
new platform. You are now free to use them at your convenience.


Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 12/12/2016 06:38 PM, Răzvan Crainea wrote:

Hello everybody!

Wednesday, 14th of December 2016, 10:00 EET[1], we are planning to 
migrate some opensips.org servers to a new platform. Therefore the 
email server and mailing lists servers will be down for about 2 hours. 
During this timeframe[1] we recommend you to avoid sending any emails 
to either an @opensips.org or @lists.opensips.org email, because they 
might not be received and they will get lost.
As soon as the migration is completed, we will get back with a 
notification.


[1] 
https://www.timeanddate.com/worldclock/fixedtime.html?msg=MAINTENANCE%3A+opensips.org+email+and+mailing+lists+server+migration=20161214T10=49=2


Best regards,




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users