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> <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>> 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("1"); 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>> I have the following in my config, which works...<br>> now if I comment forward and comment out rewritehost I get errors. Am
<br>> I not using the correct syntax?<br>><br>> route[5] {<br>><br>> #<br>> -----------------------------------------------------------------<br>> # PSTN Handler<br>> #<br>> -----------------------------------------------------------------
<br>><br>> t_on_reply("1");<br>><br>> # do load balancing<br>> ds_select_dst("1","4");<br>> sl_send_reply("100","Trying");
<br>><br>> #rewritehost(uri:host);<br>> forward(uri:host,uri:port);<br>><br>> route(4);<br>> route(1);<br>> }<br>><br>>------------------------------------------------------------------------
<br>><br>>_______________________________________________<br>>Users mailing list<br>><a href="mailto:Users@openser.org">Users@openser.org</a><br>><a href="http://openser.org/cgi-bin/mailman/listinfo/users">
http://openser.org/cgi-bin/mailman/listinfo/users</a><br>><br>><br><br></blockquote></div><br>