Skip to content

How to add rport to REGISTER message #797

@arovetto

Description

@arovetto

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions