<div dir="ltr">Hi Alex, <div><br></div><div>That works, thanks. It turns out the following does work *without* appending the contact header-</div><div><br></div><div><div>    ds_select_domain("1", "8")</div><div>    sl_send_reply("302","Redirect");<br></div><div>    exit;</div></div><div><br></div><div>I was using ds_select_dst() originally which doesn't work with the above.</div><div><br></div><div>Thanks for pointing me in the right direction.</div><div><br></div><div>Matthew</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 28, 2016 at 7:47 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<span class=""><br>
<br>
On 03/28/2016 02:39 PM, Marrold wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'd like to use the Dispatcher Module along with 30X redirects, to<br>
monitor gateway availability with SIP options and to provide redundancy<br>
/ fail over.<br>
<br>
Some sources online suggest it's as easy as -<br>
<br>
if ( method=="INVITE" ) {<br>
     dst_select_domain("1","4");<br>
     sl_send_reply("300","Redirect");<br>
     exit;<br>
}<br>
<br>
However when the 30X reply is sent, it contains no contact header.<br>
<br>
Please could someone advise if it's possible to use the Dispatcher<br>
module with 302 redirects, and what they syntax is?<br>
</blockquote>
<br></span>
The core functionality provided by the dispatcher module is simplify to modify the request URI ($ru) (ds_select_domain()) or the destination set ($du) (ds_select_dst()).<br>
<br>
Thus, after running the operation, you would append the Contact yourself:<br>
<br>
   ds_select_domain("1", "4");<br>
   append_to_reply("Contact: <$ru>\r\n");<span class=""><br>
   sl_send_reply("300", "Redirect");<br>
<br></span>
-- Alex<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
1447 Peachtree Street NE, Suite 700<br>
Atlanta, GA 30309<br>
United States<br>
<br>
Tel: <a href="tel:%2B1-800-250-5920" value="+18002505920" target="_blank">+1-800-250-5920</a> (toll-free) / <a href="tel:%2B1-678-954-0671" value="+16789540671" target="_blank">+1-678-954-0671</a> (direct)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br></div>