RES: [Serusers] Forwarding according to prefix

Alessandro alessandro.pereira at redevox.com.br
Wed Jan 12 19:30:21 CET 2005


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

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 10/1/2005


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 10/1/2005
 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050112/6b22ae53/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1983 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050112/6b22ae53/attachment.gif>


More information about the sr-users mailing list