[OpenSIPS-Devel] 1.7.X advertised_address and rr headers

Bobby Smith bobby.smith at gmail.com
Fri Aug 5 00:49:41 CEST 2011


Yep, just set in the global params list.

On Thu, Aug 4, 2011 at 7:34 AM, Bogdan-Andrei Iancu <bogdan at opensips.org>wrote:

> **
> Hi Bobby,
>
> The advertise address should change the IP from RR header, so it seams like
> a bug
>
> do you use only the global param for advertise address, right ? not per
> interface or per message ?
>
> Regards,
> Bogdan
>
>
> On 07/27/2011 10:51 PM, Bobby Smith wrote:
>
> All, in the docs:
> http://www.opensips.org/Resources/DocsCoreFcn17#toc24
>
> 3.1 advertised_address
>
> It can be an IP address or string and represents the address advertised in
> Via header and other destination lumps (e.g RR header). If empty or not set
> (default value) the socket address from where the request will be sent is
> used.
>
>
> However, when I set an advertised_address (global) to be something, it's
> reflected in the via headers but not in the rr:
>
> Is this the intended effect?  I know there's a record_route_preset function
> available to rr, but it'd be a whole lot easier if this just gets updated in
> the record route headers as it should be (and not the local bind socket).
>
> U 2011/07/27 19:07:28.436916 10.100.0.56:5060 -> 10.100.0.124:5060
> INVITE sip:511 at foo.bar.com SIP/2.0.
> Record-Route: <sip:10.100.0.56;lr>.
> Record-Route: <sip:4.2.2.1;lr=on;nat=yes>.
> Via: SIP/2.0/UDP foo.bar.com;branch=z9hG4bK9ee6.47987437.0.
> Via: SIP/2.0/UDP 4.2.2.2;branch=z9hG4bK9ee6.cce3d6d3.0.
> Via: SIP/2.0/UDP 192.168.30.73:5061
> ;rport=1055;received=174.4.4.114;branch=z9hG4bK-9372d65.
> From: "Extension" <sip:501 at sip-foo.com>;tag=4032d8842dad2496o1.
> To: "Bob" <sip:500 at sip-foo.com>.
> Call-ID: c4eb419c-69be0e5e at 192.168.30.73.
>
> Thanks,
> BobbyS
>
>
> _______________________________________________
> Devel mailing listDevel at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS eBootcamp - 19th of September 2011
> OpenSIPS solutions and "know-how"
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20110804/91d9676e/attachment.htm>


More information about the Devel mailing list