[OpenSIPS-Users] Strange behavior with BYE message on Opensips 2.1
guillaume Montassier
gmontassier at openip.fr
Tue Nov 15 18:12:09 CET 2016
Hello all,
I'm working a project with multiples opensips (each handling a
particular role).
So when an invite goes in our plateform, it crosse multiples openips and
can even sometime go though a specific opensips multiples times.
My problem is: When the called send a BYE I have a strange behavior. One
of my opensips which receive the BYE resend it to itself and suppress
the wrong route (last route instead of the first route...).
- For example this is the BYE message my opensips receive :
2016/11/15 15:24:08.316573*172.99.37.70:5060* -> *172.99.37.52:5060*
BYE sip:*test2-o36onlarnncrd at 172.99.37.52:5060*;transport=udp SIP/2.0
Route: <sip:*172.99.37.52*;lr;did=7bb.ca4be925>
=>*itself*
Route: <sip:*172.99.37.52:5061*;lr;ftag=as2d12af76;did=7bb.af095117>
=>*Next hope*
Route: <sip:172.99.37.70;lr;did=7bb.40f20381>
Route: <sip:172.99.37.59;lr;ftag=as2d12af76;did=7bb.70c3b743>
Route: <sip:172.99.37.52:5062;lr;ftag=as2d12af76;did=7bb.bc13056>
Route: <sip:172.99.37.52:5061;lr;ftag=as2d12af76;did=7bb.9f095117>
Route: <sip:172.99.37.52;lr;did=7bb.ba4be925>
- This is what I should have as result (It remove itself from the Route
header and send the BYE to the next hop (which is 172.99.37.52:5061) ):
2016/11/15 15:24:08.316573 *172.99.37.52:5060* -> *172.99.37.52:5061*
=>*Send to Next hope*
BYE sip:test2-o36onlarnncrd at 172.99.37.52:5060;transport=udp SIP/2.0
*Route*: <sip:*172.99.37.52:5061*;lr;ftag=as2d12af76;did=7bb.af095117>
=>*Next hope is the first route header*
Route: <sip:*172.99.37.70*;lr;did=7bb.40f20381>
Route: <sip:172.99.37.59;lr;ftag=as2d12af76;did=7bb.70c3b743>
Route: <sip:172.99.37.52:5062;lr;ftag=as2d12af76;did=7bb.bc13056>
Route: <sip:172.99.37.52:5061;lr;ftag=as2d12af76;did=7bb.9f095117>
Route: <sip:172.99.37.52;lr;did=7bb.ba4be925>
- This is what I have (send to itself and remove the wrong route...):
2016/11/15 15:24:08.316573 *172.99.37.52:5060* -> *172.99.37.52:5060*
=>*send to itself*
BYE*sip:172.99.37.52:5060*;transport=udp SIP/2.0
=>*modify bye?*
*Route*: <sip:*172.99.37.52*;lr;did=7bb.ca4be925>
=>*don't supress the route header*
Route: <sip:172.99.37.52:5061;lr;ftag=as2d12af76;did=7bb.af095117>
Route: <sip:172.99.37.70;lr;did=7bb.40f20381>
Route: <sip:172.99.37.59;lr;ftag=as2d12af76;did=7bb.70c3b743>
Route: <sip:172.99.37.52:5062;lr;ftag=as2d12af76;did=7bb.bc13056>
Route: <sip:172.99.37.52:5061;lr;ftag=as2d12af76;did=7bb.9f095117>
=>*The last route is suppress*
I know that my first header route is the same than my last header route,
and maybe this is why I have this beavior, but this seems really odd to me.
Thank you all,
/Guillaume
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20161115/08ec5354/attachment.htm>
More information about the Users
mailing list