Hi All
I am getting this error on Openser 1.3
Jul 10 11:28:31 [20126] ERROR:nathelper:fixup_fix_nated_register: you must set 'received_avp' parameter. Must be same value as parameter 'received_avp' of registrar module
Jul 10 11:28:31 [20126] ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 386
Jul 10 11:28:31 [20126] ERROR:core:main: failed to fix configuration with err code -1
I used the example from nat-traversal.cfg
I do believe the error is initiated from this section
route[2]{
force_rport();
if (nat_uac_test("19")) {
if (method=="REGISTER") {
fix_nated_register();
} else {
fix_nated_contact();
};
setflag(5);
};
}
Please advice.
Hello Ali,
your error is self explanatory. You need to configure in your module params the following:
http://www.openser.org/docs/modules/1.3.x/registrar.html#AEN177 http://www.openser.org/docs/modules/1.3.x/nathelper.html#AEN148
Regards, DanB
On Thu, Jul 10, 2008 at 12:32 PM, Ali Jawad ali.jawad@splendor.net wrote:
Hi All
I am getting this error on Openser 1.3
Jul 10 11:28:31 [20126] ERROR:nathelper:fixup_fix_nated_register: you must set 'received_avp' parameter. Must be same value as parameter 'received_avp' of registrar module
Jul 10 11:28:31 [20126] ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 386
Jul 10 11:28:31 [20126] ERROR:core:main: failed to fix configuration with err code -1
I used the example from nat-traversal.cfg
I do believe the error is initiated from this section
route[2]{
force_rport(); if (nat_uac_test("19")) { if (method=="REGISTER") { fix_nated_register(); } else { fix_nated_contact(); }; setflag(5); };
}
Please advice.
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
El Thursday 10 July 2008 12:32:15 Ali Jawad escribió:
ERROR:nathelper:fixup_fix_nated_register: you must set 'received_avp' parameter. Must be same value as parameter 'received_avp' of registrar module
Is not enough clear? :)
Hi Thanks for the replies.
As per your help and documentation, I must add
modparam("registrar", "received_avp", "$avp(s:rcv)") modparam("nathelper", "received_avp", "$avp(i:42)")
It is stated that "The value of this parameter should be the same as the value of corresponding parameter of nathelper module."
In this case must I have the last parameter identical ? Or is it Ok the way they are stated ?
Thanks.
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Iñaki Baz Castillo Sent: Thursday, July 10, 2008 1:49 PM To: users@lists.openser.org Subject: Re: [OpenSER-Users] fix_nated_register() Error.
El Thursday 10 July 2008 12:32:15 Ali Jawad escribió:
ERROR:nathelper:fixup_fix_nated_register: you must set 'received_avp' parameter. Must be same value as parameter 'received_avp' of registrar module
Is not enough clear? :)
El Thursday 10 July 2008 12:56:41 Ali Jawad escribió:
modparam("registrar", "received_avp", "$avp(s:rcv)") modparam("nathelper", "received_avp", "$avp(i:42)")
It is stated that "The value of this parameter should be the same as the value of corresponding parameter of nathelper module."
Are $avp(s:rcv) == $avp(i:42) ? I don't think so...
What I was hinting at is the question..should I use $avp(s:rcv) Or $avp(i:42)
On both sides ?
Thanks -----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Iñaki Baz Castillo Sent: Thursday, July 10, 2008 2:01 PM To: users@lists.openser.org Subject: Re: [OpenSER-Users] fix_nated_register() Error.
El Thursday 10 July 2008 12:56:41 Ali Jawad escribió:
modparam("registrar", "received_avp", "$avp(s:rcv)") modparam("nathelper", "received_avp", "$avp(i:42)")
It is stated that "The value of this parameter should be the same as the value of corresponding parameter of nathelper module."
Are $avp(s:rcv) == $avp(i:42) ? I don't think so...
El Thursday 10 July 2008 13:02:09 Ali Jawad escribió:
What I was hinting at is the question..should I use $avp(s:rcv) Or $avp(i:42)
On both sides ?
You must use the same AVP in both cases. An AVP can be integer or string type, that's irrelevant now.