[OpenSIPS-Users] Broken Loose Routing?

Brett Nemeroff brett at nemeroff.com
Thu Oct 30 16:16:41 CET 2008

Ok, that makes a little more sense to me. However, OpenSIPs isn't relaying
it to the public IP which is in the RURI of the BYE, it's sending it to the
private IP on OpenSIPs. Is that because of the Route Header?

So this seriously looks like a proivder problem not adhering to standards?
Is there anythign I can do on my side to make it play nice?
 I'm not sure I can get this provider to change anything .


---------- Forwarded message ----------
From: Iñaki Baz Castillo <ibc at aliax.net>
Date: Thu, Oct 30, 2008 at 10:06 AM
Subject: Re: [OpenSIPS-Users] Broken Loose Routing?
Cc: users <users at lists.opensips.org>

2008/10/30 Brett Nemeroff <brett at nemeroff.com>:

> Please note, the provider isn't sending the BYE to the internal address.
> provider sends it to OpenSIPs Public address. Which is correct..

No, that's not correct, the RURI of the BYE from provider *MUST* be
the same as the RURI in the INVITE Contact the provider received.
The BYE is sent back to the public IP, of course, but it's routed
thanks to "Route" header (loose route).

This is the INVITE OpenSIPS sends to the provider:

U ->
INVITE sip:17475551212 at;transport=udp SIP/2.0.
Record-Route: <sip:
Record-Route: <sip:
Contact: <sip:15125551234 at>.

And this is the BYE the provider sends to OpenSIPS:

U ->
BYE sip:15125551234 at SIP/2.0.
Record-Route: <sip:;lr;ftag=BDA2FF96-481D6819>.
Route: <sip:;r2=on;lr;ftag=1c2145666146;did=fe6.729dae35>,
Contact: <sip:17475551212 at <sip%3A17475551212 at>

As you can see:
1) The BYE is sent to the the address in top Route (loose route) -> OK
2) The BYE RURI address is while INVITE Contact is -> ERROR
3) I really wonder why the BYE contains a useless Record-Route.

The behaviour in OpenSIPS is correct. The provider creates a wrong
in-dialog request (BYE) since it should be:
 BYE sip:15125551234 at SIP/2.0

Iñaki Baz Castillo
<ibc at aliax.net>
Users mailing list
Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081030/053a93b9/attachment.htm 

More information about the Users mailing list