logo       

Re: dispatcher module and rewritehost vs forward: msg#00500

voip.openser.user

Subject: Re: dispatcher module and rewritehost vs forward

Hi,

first of all t_on_reply("1"); is useless since you do stateless forward and that functionality may be used only in a stateful context.

and yes, the syntax is wrong. See
http://openser.org/dokuwiki/doku.php?id=openser_core_cookbook#rewritehost_sethost

regards,
bogdan

Script Head wrote:

I have the following in my config, which works...
now if I comment forward and comment out rewritehost I get errors. Am I not using the correct syntax?

route[5] {

# -----------------------------------------------------------------
# PSTN Handler
# -----------------------------------------------------------------

t_on_reply("1");

# do load balancing
ds_select_dst("1","4");
sl_send_reply("100","Trying");

#rewritehost(uri:host);
forward(uri:host,uri:port);

route(4);
route(1);
}

------------------------------------------------------------------------

_______________________________________________
Users mailing list
Users-WLQjAxnOB31AfugRpC6u6w@xxxxxxxxxxxxxxxx
http://openser.org/cgi-bin/mailman/listinfo/users





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise