<div dir="ltr">Hi Baz,<br>I dont know much about avp, could you explain me or give an example howto store information in the avp then save once i received the reply 200.<br>what i am doing at the moment<br><br>t_on_reply("2"); <br>
fix_nated_register();<br>avp_write("$from/username","$avp(i:678)");<br>subst('/^Contact:.*<sip:(.*)@(.*)>/Contact:<sip:$avp(i:678)@ipaddress of openser>/ig');<br><br>onreply_route[2] {<br>
if(status=="200") {<br> route(6);<br> }<br>route[6]{<br> save_noreply("location");<br> exit;<br><br>its works but I am loosing some of the original contact information, as I am saving the reply.<br>
<br>Thanks<br>Asim Riaz<br><br><div class="gmail_quote">On Mon, Aug 25, 2008 at 7:06 PM, Iñaki Baz Castillo <span dir="ltr"><<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
El Lunes, 25 de Agosto de 2008, Asim Riaz escribió:<br>
<div class="Ih2E3d">> Hi All,<br>
> I am wondering if there is a way to store the user contact info into avp,<br>
> relay it to existing Regitrar and store the original contact info into<br>
> location through a function(which i dont know) once i received successful<br>
> reply from my sip registrar.<br>
<br>
</div>Sure, save $ct (the Contact URI) in an AVP and process on_reply_route for the<br>
outbound REGISTER so in case the reply is 200 you can store the AVP content<br>
in database and so.<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Iñaki Baz Castillo<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
</font></blockquote></div><br></div>