[SR-Users] Use of received=X.X.X.X param in Contact header of REGISTER message
Daniel Tryba
daniel at pocos.nl
Fri May 30 11:17:00 CEST 2014
On Thursday 29 May 2014 20:05:56 Luis F Urrea wrote:
> any thought would be helpful.
Never trust anything a device sends to kamailio :)
If you are using a config close to default your problem is in route[NATDETECT]
if (nat_uac_test("19")) {
if (is_method("REGISTER")) {
fix_nated_register();
} else {
add_contact_alias();
}
http://www.kamailio.org/docs/modules/stable/modules/nathelper.html#idp1806784
=========================
5.4. fix_nated_register()
The function creates a URI consisting of the source IP, port, and protocol and
stores the URI in an Attribute-Value-Pair. The URI will be appended as
"received" parameter to Contact in 200 OK and registrar will store it in the
received cloumn in the location table.
Note: You have to set the received_avp parameter of the nathelper module and
the registrar module (both module parameters must have the same value) to use
this function.
This function can be used from REQUEST_ROUTE.
=========================
If that brings no relief take a look at the third argument for save
http://www.kamailio.org/docs/modules/stable/modules/registrar.html#idp1975072
If you can construct a correct URI supply it to save.
--
POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/ - http://www.sipo.nl/
K.v.K. Eindhoven 17097024
More information about the sr-users
mailing list