Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] PJSIP Sends BYE with Wrong IP


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
rnewton at digium.com
Guest





PostPosted: Thu Apr 02, 2015 10:44 am    Post subject: [asterisk-users] PJSIP Sends BYE with Wrong IP Reply with quote

On Wed, Apr 1, 2015 at 9:08 AM, Trey Hilyard <kctrey@gmail.com (kctrey@gmail.com)> wrote:
Quote:
Hello - 

I am trying to decide if I have stumbled across a bug in PJSIP or I am just missing something. My Asterisk has two interfaces, an "internal" eth0 and an "external" eth1. In pjsip.conf, I define the following transports:


[trusted]
type=transport
protocol=udp
bind=10.xx.yy.zz:5060


[untrusted]
type=transport
protocol=udp
bind=12.4.aa.bb:5060



My internal endpoints use transport=internal and external endpoints use transport=external. I guess that's obvious.



You show transports trusted and untrusted, you don't show any transports named internal and external... so that is confusing.
 
Quote:
Everything works fine, most of the time. INVITEs, 1XX, 2XX are sent to the right interface using the right source IP. But, when Asterisk tries to send a BYE to any internal endpoint, it sends using the external IP, but it is sent of the correct internal interface eth0. Only the IP layer is incorrect. The SIP layer has the correct IP in the Via header. From what I can tell, only BYE is affected.



I didn't have this problem with chan_sip. Am I just missing some configuration?



This sounds like improper configuration, or a bug.


If you can pastebin a full (sanitized) pjsip.conf as well as an Asterisk log with verbose turned up[1], plus a SIP packet trace then we can take a look at it.


[1]: https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information






--
Quote:
Rusty Newton
Digium, Inc. | Community Support Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
direct: +1 256 428 6200

Check us out at: http://digium.com & http://asterisk.org
Back to top
kctrey at gmail.com
Guest





PostPosted: Thu Apr 02, 2015 11:08 am    Post subject: [asterisk-users] PJSIP Sends BYE with Wrong IP Reply with quote

On Thu, Apr 2, 2015 at 10:43 AM, Rusty Newton <rnewton@digium.com (rnewton@digium.com)> wrote:
Quote:
On Wed, Apr 1, 2015 at 9:08 AM, Trey Hilyard <kctrey@gmail.com (kctrey@gmail.com)> wrote:
Quote:
Hello - 

I am trying to decide if I have stumbled across a bug in PJSIP or I am just missing something. My Asterisk has two interfaces, an "internal" eth0 and an "external" eth1. In pjsip.conf, I define the following transports:


[trusted]
type=transport
protocol=udp
bind=10.xx.yy.zz:5060


[untrusted]
type=transport
protocol=udp
bind=12.4.aa.bb:5060



My internal endpoints use transport=internal and external endpoints use transport=external. I guess that's obvious.



You show transports trusted and untrusted, you don't show any transports named internal and external... so that is confusing.



 



You are right. That is my fault that I was sanitizing the configuration for the purpose of this email and uses different names.
 
Quote:
Quote:
Everything works fine, most of the time. INVITEs, 1XX, 2XX are sent to the right interface using the right source IP. But, when Asterisk tries to send a BYE to any internal endpoint, it sends using the external IP, but it is sent of the correct internal interface eth0. Only the IP layer is incorrect. The SIP layer has the correct IP in the Via header. From what I can tell, only BYE is affected.



I didn't have this problem with chan_sip. Am I just missing some configuration?



This sounds like improper configuration, or a bug.


If you can pastebin a full (sanitized) pjsip.conf as well as an Asterisk log with verbose turned up[1], plus a SIP packet trace then we can take a look at it.


[1]: https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information








I actually got the issue resolved by upgrading to 13.3.rc-1, since this is just my development system. I assume that the problem was resolved between the two releases. 
Back to top
rnewton at digium.com
Guest





PostPosted: Thu Apr 02, 2015 11:28 am    Post subject: [asterisk-users] PJSIP Sends BYE with Wrong IP Reply with quote

On Thu, Apr 2, 2015 at 11:07 AM, Trey Hilyard <kctrey@gmail.com (kctrey@gmail.com)> wrote:
Quote:
I actually got the issue resolved by upgrading to 13.3.rc-1, since this is just my development system. I assume that the problem was resolved between the two releases. 




Sweet, glad to hear! 



--
Quote:
Rusty Newton
Digium, Inc. | Community Support Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
direct: +1 256 428 6200

Check us out at: http://digium.com & http://asterisk.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services