[SR-Users] Using 302 redirects with Dispatcher Module

Marrold kamailio at marrold.co.uk
Mon Mar 28 20:39:12 CEST 2016


Hi All,

I'd like to use the Dispatcher Module along with 30X redirects, to monitor
gateway availability with SIP options and to provide redundancy / fail
over.

Some sources online suggest it's as easy as -

if ( method=="INVITE" ) {
    dst_select_domain("1","4");
    sl_send_reply("300","Redirect");
    exit;
}

However when the 30X reply is sent, it contains no contact header.

Please could someone advise if it's possible to use the Dispatcher module
with 302 redirects, and what they syntax is?

Thanks,

Matthew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160328/58eeb2ec/attachment.html>


More information about the sr-users mailing list