[OpenSIPS-Devel] [opensips] How to add rport to REGISTER message (#797)

arovetto notifications at github.com
Wed Feb 17 16:49:34 CET 2016


Hi
I'm using with Opensips 2.2dev uac_registrant module to register to an SIP Provider. They said the registration fails because the top most request Via hasn't the rport parameter.

I've tried to add that parameters using a local_route as follows:

local_route {
        xlog("L_INFO", "local_route");
        if (is_method("REGISTER")) {
                xlog("L_INFO", "Sending a REGISTER to $ru");
                add_local_rport();
        }
}

But it seems to have no effects:

Feb 17 16:45:46 newopensips-cti1 /sbin/opensips[15391]: local_route
Feb 17 16:45:46 newopensips-cti1 /sbin/opensips[15391]: Sending a REGISTER to sip:sip.vohippo.com
Feb 17 16:45:46 newopensips-cti1 /sbin/opensips[15391]: DBG:tm:t_uac: Change in local route -> rebuilding buffer


Is it a bug?
Is there another way to add it?

Thank you 


---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/797
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160217/f6d96978/attachment.htm>


More information about the Devel mailing list