Tutorial on SIP and SIP SER server

Standard Configs for Cisco AS5300 VoIP Gateway

This config would also suit Cisco 36xx, 37xx and 26xx VoIP Gateways

 

 

The page contains:

Go back to main tutorial/workshop page

 

 

Cisco Configuration template

Here is a Template to configure a Cisco VoIP gateway to act as a SIP Gateway for SIP UAs via a SER Proxy Server, and for that Gateway to use the SER Proxy Server for incoming calls from the PSTN interfaces. It is based on Cisco IOS version 12.3 or above so that the open standard T.38 fax protocol is supported.

 

SER Configuration example

Following are the configuration fragments needed in the /etc/ser.cfg

 

IMPORTANT NOTE: The configuration will not check that the user is allowed to make or receive the call, for example to stop a user making long distance calls. That is covered elsewhere.

 

#The following section would go in the main route{ routine



route{


    # Lots deleted, such as processing registrations




    # we record-route all messages -- to make sure that
    # subsequent messages will go through our proxy.
    record_route();
    # loose-route processing
    if (loose_route()) {
        t_relay();
        break;
    };

    # IF HOST IS JUST NUMBERS SEND TO route(3) FOR E.164 PROCESSING
if (uri =~ "^sip:[0-9]*@"){
log(1, "SER: matched ^sip:[0-9]*@ - just numbers - process in route(3)\n");
route(3);
break;
}; } route[3] { # CALLS TO THE CANBERRA LOCAL CALL ZONE +61 2 61xx xxxx through to +61 2 62xx xxxx # Send to the Gateway in Canberra whos IP Address is 203.22.212.244
if (uri=~"^sip:6126[1,2][0-9]{6}@"){
log(1, "SER: matched ^sip:6126[1,2] - forward to GW in CANBERRA\n");
rewritehostport("203.22.212.244:5060");
t_relay_to_udp("203.22.212.244","5060");
break;
}; }

 

Some hints for debugging

 

To look at what is happening on the ISDN interface to the PSTN

debug isdn q931

To look at what is happening inside the router

debug ccsip all
debug voip ccapi inout
debug vtsp events
debug vtsp session

 

Some useful references

http://www.cisco.com/en/US/tech/tk652/tk701/technologies_configuration_guide_chapter09186a00800eadfa.html