Hi,
When migrating my config from 1.1 to 1.2, far-end NAT traversal doesn't work anymore. Here is what I do:
modparam("usrloc", "nat_bflag", 6) ... # register handling: if(!search("^Contact:[ ]**") && nat_uac_test("19")) { xlog("L_INFO", "NATed REGISTER\n"); fix_nated_register(); setbflag(6); } if(!save("location")) { # error handling ... }
The log message is printed, so NAT is detected. The received-column in the DB also shows the correct NAT-address, but the flag-column is always 0. Any advice?
Regards, Andreas
This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your cooperation. Information pursuant to paragraph 14 Austrian Companies Code: UPC Austria GmbH; Registered Office: Wolfganggasse 58-60, 1120 Vienna Company Register Number: FN 189858d at the Commercial Court of Vienna
Hi Andreas,
Did you set the received_avp in the NATHelper-/Registrar-Module? It is no longer set per default like in the 1.1-Versions:
"Note: You must set this parameter if you use "fix_nated_register". In such case you must set the parameter with same name of "registrar" module to same value." http://openser.org/docs/modules/1.2.x/nathelper.html#AEN119
Carsten
Am Donnerstag, den 22.03.2007, 21:58 +0100 schrieb Andreas Granig:
Hi,
When migrating my config from 1.1 to 1.2, far-end NAT traversal doesn't work anymore. Here is what I do:
modparam("usrloc", "nat_bflag", 6) ... # register handling: if(!search("^Contact:[ ]**") && nat_uac_test("19")) { xlog("L_INFO", "NATed REGISTER\n"); fix_nated_register(); setbflag(6); } if(!save("location")) { # error handling ... }
The log message is printed, so NAT is detected. The received-column in the DB also shows the correct NAT-address, but the flag-column is always 0. Any advice?
Regards, Andreas
This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your cooperation. Information pursuant to paragraph 14 Austrian Companies Code: UPC Austria GmbH; Registered Office: Wolfganggasse 58-60, 1120 Vienna Company Register Number: FN 189858d at the Commercial Court of Vienna
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi Carsten,
I do set that parameters (otherwise openser complains at startup, IIRC).
modparam("registrar", "received_avp", "$avp(i:801)") modparam("nathelper", "received_avp", "$avp(i:801)")
Andreas
Carsten Bock wrote:
Hi Andreas,
Did you set the received_avp in the NATHelper-/Registrar-Module? It is no longer set per default like in the 1.1-Versions:
"Note: You must set this parameter if you use "fix_nated_register". In such case you must set the parameter with same name of "registrar" module to same value." http://openser.org/docs/modules/1.2.x/nathelper.html#AEN119
Carsten
Am Donnerstag, den 22.03.2007, 21:58 +0100 schrieb Andreas Granig:
Hi,
When migrating my config from 1.1 to 1.2, far-end NAT traversal doesn't work anymore. Here is what I do:
modparam("usrloc", "nat_bflag", 6) ... # register handling: if(!search("^Contact:[ ]**") && nat_uac_test("19")) { xlog("L_INFO", "NATed REGISTER\n"); fix_nated_register(); setbflag(6); } if(!save("location")) { # error handling ... }
The log message is printed, so NAT is detected. The received-column in the DB also shows the correct NAT-address, but the flag-column is always 0. Any advice?
Regards, Andreas
This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your cooperation. Information pursuant to paragraph 14 Austrian Companies Code: UPC Austria GmbH; Registered Office: Wolfganggasse 58-60, 1120 Vienna Company Register Number: FN 189858d at the Commercial Court of Vienna
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your cooperation. Information pursuant to paragraph 14 Austrian Companies Code: UPC Austria GmbH; Registered Office: Wolfganggasse 58-60, 1120 Vienna Company Register Number: FN 189858d at the Commercial Court of Vienna
After digging a little, it turns out that it's not the the flags column anymore, but the cflags column. And - surprise - it now works, although I haven't changed anything. Maybe my phones have gone crazy a little bit. No idea, what the reason could have been.
Andreas
Andreas Granig wrote:
Hi Carsten,
I do set that parameters (otherwise openser complains at startup, IIRC).
modparam("registrar", "received_avp", "$avp(i:801)") modparam("nathelper", "received_avp", "$avp(i:801)")
Andreas
Carsten Bock wrote:
Hi Andreas,
Did you set the received_avp in the NATHelper-/Registrar-Module? It is no longer set per default like in the 1.1-Versions:
"Note: You must set this parameter if you use "fix_nated_register". In such case you must set the parameter with same name of "registrar" module to same value." http://openser.org/docs/modules/1.2.x/nathelper.html#AEN119
Carsten
Am Donnerstag, den 22.03.2007, 21:58 +0100 schrieb Andreas Granig:
Hi,
When migrating my config from 1.1 to 1.2, far-end NAT traversal doesn't work anymore. Here is what I do:
modparam("usrloc", "nat_bflag", 6) ... # register handling: if(!search("^Contact:[ ]**") && nat_uac_test("19")) { xlog("L_INFO", "NATed REGISTER\n"); fix_nated_register(); setbflag(6); } if(!save("location")) { # error handling ... }
The log message is printed, so NAT is detected. The received-column in the DB also shows the correct NAT-address, but the flag-column is always 0. Any advice?
Regards, Andreas
This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your cooperation. Information pursuant to paragraph 14 Austrian Companies Code: UPC Austria GmbH; Registered Office: Wolfganggasse 58-60, 1120 Vienna Company Register Number: FN 189858d at the Commercial Court of Vienna
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your cooperation. Information pursuant to paragraph 14 Austrian Companies Code: UPC Austria GmbH; Registered Office: Wolfganggasse 58-60, 1120 Vienna Company Register Number: FN 189858d at the Commercial Court of Vienna
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your cooperation. Information pursuant to paragraph 14 Austrian Companies Code: UPC Austria GmbH; Registered Office: Wolfganggasse 58-60, 1120 Vienna Company Register Number: FN 189858d at the Commercial Court of Vienna