Sorry for being unclear: I meant: Modify the contact in the script, then do save().
E.g. $(avp(contact)) = $ct; # Those Patton can't send the q value ... Misuse their ;phone-context param if (avp_subst("$(avp(contact))", "/;phone-context=q([01].[0-9])(.*>)?([^>]*)/\2\3;q=\1/i")) { # just to have it handy int that var(Q) $var(Q) = $(avp(contact){s.select,1,>}{param.value,q}); remove_hf("Contact"); append_hf("Contact: $(avp(contact));q=$var(Q)r\n"); # subst() does the same, also not save()ed } ... setbflag(1); fix_nated_register(); save("contactimpl_nat", "0x02");
Br Walter
-----Ursprüngliche Nachricht----- Von: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] Im Auftrag von Alex Balashov Gesendet: Dienstag, 30. März 2010 17:58 An: users@lists.kamailio.org Betreff: Re: [Kamailio-Users] Registrar: Save modified contact / set the q value
On 03/30/2010 11:36 AM, NeoTel Lists wrote:
Hello Everybody! Is there any way to save(domain, 0x02) the contact after it has been changed somehow in Kamailio <= 1.5?
If it were not possible, how would nathelper:fix_nated_contact() work?