Hi Henning,<br>Because i want to place openser between two voip networks, and one of this networks (his proxy) can not perform DNS query, then i want to adapt sip message in the format that this network can understand him. This networks are extern, then I can do nothing .<br>
<br>Thanks<br>Yazid<br><br><div class="gmail_quote">2008/5/20 Henning Westerholt &lt;<a href="mailto:henning.westerholt@1und1.de">henning.westerholt@1und1.de</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Tuesday 20 May 2008, Yazid Hadj Said wrote:<br>
&gt; I want to perform a DNS query with the Record-Route header&#39;s content, and<br>
&gt; replace this content by the response (replacing &nbsp;&quot;<a href="http://domain.com" target="_blank">domain.com</a>&quot; by<br>
&gt; xxx.xxx.xxx.xxx).<br>
&gt; someone knows how?<br>
<br>
</div></div>Hi Yazid,<br>
<br>
to get the Record-Route header content in the script use e.g. pseudo-variables<br>
<a href="http://www.openser.org/dokuwiki/doku.php/pseudovariables:devel#headers" target="_blank">http://www.openser.org/dokuwiki/doku.php/pseudovariables:devel#headers</a><br>
<br>
But why do you want to do the DNS lookup manually? The receiver of the SIP<br>
message should be capable to do this lookup by themself. It should understand<br>
any valid sip URIs, and also additional parameters here.<br>
<br>
You can hack something with the &#39;exec&#39; module to call a external script if you<br>
really want, but otherwise i have no ideas how to do this.<br>
<br>
Cheers,<br>
<font color="#888888"><br>
Henning<br>
</font></blockquote></div><br>