Thanks a lot, it worked<br><br><div><span class="gmail_quote">On 1/27/06, <b class="gmail_sendername">Bogdan-Andrei Iancu</b> &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>not sure I understand your scenario, but to add something to the<br>replies, use texops function append_to_reply() before t_relay():<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://openser.org/docs/modules/1.1.x/textops.html#AEN180">http://openser.org/docs/modules/1.1.x/textops.html#AEN180
</a><br><br>regards,<br>bogdan<br><br>Jose Antonio Garvayo wrote:<br><br>&gt; Hi,<br>&gt;<br>&gt; I want to use the openser as a UAS on behalf of a user that's not<br>&gt; registered.<br>&gt; There's a proxy in the middle that receives an INVITE and find that
<br>&gt; the user is not registered, and rely the INVITE to the openser.<br>&gt; I want the openser&nbsp;&nbsp;to send a 200 OK response, but also to put a<br>&gt; Contact in the response so the final ACK will be send also to the<br>
&gt; openser.<br>&gt;<br>&gt; I have tried the following:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_hf(&quot;Contact: xxxxx:pp&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (t_newtran()) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog(&quot;UAS logic&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;append_hf(&quot;Contact:
xxxxx:pp&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t_reply(&quot;200&quot;,&quot;OK&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;append_hf(&quot;Contact:
xxxxx:pp&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else sl_reply_error();<br>&gt;<br>&gt;<br>&gt; But still no Contact appears in the 200 OK response.<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt;------------------------------------------------------------------------
<br>&gt;<br>&gt;_______________________________________________<br>&gt;Users mailing list<br>&gt;<a href="mailto:Users@openser.org">Users@openser.org</a><br>&gt;<a href="http://openser.org/cgi-bin/mailman/listinfo/users">
http://openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt;<br>&gt;<br><br></blockquote></div><br>