In this article I’ll go over how to build a SIP Trunk to a provider with Call Manager Express, in this case we’ll use Flowroute. I will be using my 3725 with IOS “c3725-adventerprisek9-mz.124-15.T10.bin”.

First we will enable SIP, then we configure the router to register with our provider, then we’ll configure our codecs and dial peer, finally we’ll go over some show commands to verify that everything works.

Here’s how to enable SIP:

voice service voip

Very simple, we just enable the SIP protocol.

Next we configure our router to register with Flowroute:

 authentication username xxxxx password 7 xxxxxxxxxx realm
 calling-info pstn-to-sip from number set 1xxx7325736
 no remote-party-id
 registrar expires 3600

This tells the router to register with “” using the username and password we specified.

Next we configure our codecs:

voice class codec 1
 codec preference 1 g729r8
 codec preference 2 g711ulaw
 codec preference 3 g711alaw

Here we specify which codecs we want to use and what order we prefer them, 1 being most preferred and 3 being least preferred. I have chosen to use g729 whenever possible as it needs much less bandwidth and sounds great.

Here is our dial peer:

dial-peer voice 1 voip
 destination-pattern 1[2-9]..[2-9]......
 voice-class codec 1
 session protocol sipv2
 session target
 dtmf-relay sip-notify

We’ve made this “dial peer 1″ using VOIP. We’re mathching any 11 digit number that starts with 1, with the second and fifth digits being 2-9. This will match dialed numbers in the US. We specify the codec class we configured above. We tell the router to use SIP and to send anything matching this dial peer to “”.

FInally we’ll do some show commands for verification:

EDGE#sh sip-ua register status
Line                              peer        expires(sec)  registered
================================  ==========  ============  ==========
1xxx7325736                       20006       2687          yes

This tells us that we have registered successfully with our SIP provider.

Here is some statistic information:

EDGE#sh sip-ua statistics
SIP Total Traffic Statistics (Inbound/Outbound)
    Invite 0/49, Ack 0/49, Bye 3/209,
    Cancel 0/2, Options 0/0,
    Prack 0/0, Update 0/0,
    Subscribe 0/0, Notify 0/0, Publish 0/0
    Refer 0/0, Info 0/0,
    Register 0/444

This command gives us a lot of information, far more than I can cover here.

We now have a working SIP Trunk to Flowroute. Not much to it.


Colby Glass has been in IT since 2002. He is currently a Systems Engineer (presales) with a Cisco Gold partner and holds the CCNP R/S, CCNP DC, CCDP, CCIP, JNCIA-ER.

More Posts