My code :request_route { seturi("sip:a@example.com"); append_branch("sip:b@example.com"); append_branch("sip:c@example.com"); append_branch("sip:d@example.com"); t_relay(); break; }
request_route{
$var(uri1)="sip:9919995@192.168.1.41";
$var(uri2)="sip:9919992@192.168.1.41";
$var(uri3)="sip:9919991@192.168.1.41";
$var(uri4)="sip:9919994@192.168.1.41";
append_branch ("$var(uri1");
append_branch ("$var(uri2");
append_branch ("$var(uri3");
append_branct_("$var(uri4");
t_relay();
break;
}
request_route{
$var(uri1)="sip:9919995@192.168.1.41";
$var(uri2)="sip:9919992@192.168.1.41";
$var(uri3)="sip:9919991@192.168.1.41";
$var(uri4)="sip:9919994@192.168.1.41";
lookup("location","$var(uri4)");
append_branch();
lookup("location","$var(uri1)");
append_branch();
lookup("location","$var(uri2)");
append_branch();
lookup("location","$var(uri3)");
t_relay();
break;
}