Hi,
I have a sugestion, change your “if” to:
if (uri=~"sip:559881.*@.*") {
log(0,
"\n\n************ Forwarding to sip1 ! ***********\n");
rewritehostport("siphost1.com:5060");
append_branch("siphost1.com");
t_relay();
append_hf("P-hint: VoipSwitch GATEWAY\r\n");
log(0,
"********************************************\n\n\n");
break;
};
if (uri=~"sip:559888.*@.*")
{
log(0,
"\n\n************ Forwarding to sip2 ! ***********\n");
rewritehostport("siphost2.com:5060");
append_branch("siphost2.com");
t_relay();
append_hf("P-hint: VoipSwitch GATEWAY\r\n");
log(0,
"********************************************\n\n\n");
break;
};
Best
regards,
Alessandro Pereira