[SIPForum-discussion] Trunk setup b/w Asterisk and Openser

trungdo trungdo at patton.com
Sat Jul 4 11:36:14 UTC 2009


Hi Rajadurai,

You can configure the OPEN SER route to Asterisk over IP TRUNK define by
your dial plan. 

My configure is done and running very well.

Here is the routing configure in my ser server.



route[4]
{

   if (uri =~ "sip:2[0-9]+@*")
     {  
        log(1, "Forwarding to Asterisk \n");
        rewritehostport("172.19.3.254:5060");
        route(1);
        break;
    };
    
    if (uri =~ "sip:9[0-9]+@*")
     {  
        log(1, "Forwarding to Asterisk \n");
        rewritehostport("172.19.3.254:5060");
        route(1);
        break;
    };
    
    if (uri =~ "sip:0[0-9]+@*")
     {  
        log(1, "Forwarding to Asterisk \n");
        rewritehostport("172.19.3.254:5060");
        route(1);
        break;
    };
    
    if (uri =~ "sip:800[0-9]+@*")
     {  
        log(1, "Forwarding to Asterisk \n");
        rewritehostport("172.19.3.254:5060");
        route(1);
        break;
    };
    

}


Regarding.

Trung Do



-- 
Trung Do
Systems Engineer APAC
Patton Electronics
email:   trungdo at patton.com
cell phone: +84.12.1981.0108
sky: trungdo.tien
MSN:trungdo.tien at hotmail.com
website: www.patton.com


On 7/3/09 4:46 PM, "Rajadurai Thangaraj" <rajadurai80 at yahoo.com> wrote:

> 
> Hi
> 
>      I have one trunk setup with OPENSER(opensips) as a home network server
> and Asterisk as a Trunk server
> I have configured to Asterisk that all Asterisk registered phone can talk to
> openser register phone. Now I don't know how to configure the OPESER phone can
> talk to Asterisk phone.
> How to modify the operser.cfg file to contact the Asterisk server in case call
> to Asterisk (Registered)phone
> 
> Thanks
> Rajadurai P T
> (www.sipera.com)
> 
> 
>       
> 
> _______________________________________________
> This is the SIP Forum discussion mailing list
> TO UNSUBSCRIBE, or edit your delivery options, please visit
> http://sipforum.org/mailman/listinfo/discussion
> Post to the list at discussion at sipforum.org






More information about the discussion mailing list