[SR-Users] dispather
Daniel Tryba
d.tryba at pocos.nl
Fri Jul 3 11:18:03 CEST 2015
On Thursday 02 July 2015 09:12:41 Slava Bendersky wrote:
> Is dispatcher module can do call routing based on domain ?
> This only inbound traffic.
> So if call come from @domain1.tld -----> asterisk box 1 @domain2.tld ----->
> asterisk box 2.
Sure, just make the dispatcher target dynamic with an avp:
if($fd=="domain1.tld")
{
$avp(dispatcher_id)=1;
}
...
ds_select_dst($avp(dispatcher_id),4);
More information about the sr-users
mailing list