<div dir="ltr">Hi Baz,<br>I dont know much about avp, could you explain me or give an example&nbsp; 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(&quot;2&quot;);&nbsp;<br>
fix_nated_register();<br>avp_write(&quot;$from/username&quot;,&quot;$avp(i:678)&quot;);<br>subst(&#39;/^Contact:.*&lt;sip:(.*)@(.*)&gt;/Contact:&lt;sip:$avp(i:678)@ipaddress of openser&gt;/ig&#39;);<br><br>onreply_route[2] {<br>
&nbsp; if(status==&quot;200&quot;) {<br>&nbsp;&nbsp; route(6);<br>&nbsp;&nbsp; }<br>route[6]{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; save_noreply(&quot;location&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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">&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;</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">&gt; Hi All,<br>
&gt; I am wondering if there is a way to store the user contact info into &nbsp;avp,<br>
&gt; relay it to existing Regitrar and store the original contact info into<br>
&gt; location through a function(which i dont know) &nbsp;once i received successful<br>
&gt; 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>