My question was about the use of rewritehostport in conjunction with the dispatcher module. <br><br>I see the syntax that's required by rewritehostport yet I am strugging to understand how to take the result set of the dispatcher ds_select_dst command and pass it to the rewritehostport. For some reason I thought that uri:host and uri:port where the resulting variables out of ds_select_dst, no?
<br><br><br><br><div><span class="gmail_quote">On 5/30/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>first of all t_on_reply(&quot;1&quot;); is useless since you do stateless forward<br>and that functionality may be used only in a stateful context.<br><br>and yes, the syntax is wrong. See<br><br><a href="http://openser.org/dokuwiki/doku.php?id=openser_core_cookbook#rewritehost_sethost">
http://openser.org/dokuwiki/doku.php?id=openser_core_cookbook#rewritehost_sethost</a><br><br>regards,<br>bogdan<br><br>Script Head wrote:<br><br>&gt; I have the following in my config, which works...<br>&gt; now if I comment forward and comment out rewritehost I get errors. Am
<br>&gt; I not using the correct syntax?<br>&gt;<br>&gt; route[5] {<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; -----------------------------------------------------------------<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # PSTN Handler<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; -----------------------------------------------------------------
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_reply(&quot;1&quot;);<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # do load balancing<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ds_select_dst(&quot;1&quot;,&quot;4&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;100&quot;,&quot;Trying&quot;);
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #rewritehost(uri:host);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; forward(uri:host,uri:port);<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(4);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(1);<br>&gt; }<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>