CUCME 8.6 SIP trunk configuration with VOIP.MS

Here is a sample configuration of how to setup SIP trunk on CUCME 8.6 with VoIP.ms.

For the lab testing, your don’t want to spend too much mondy. Yes, I tried free SIP account provider and no good experience. 
VoIP.ms SIP trunk provider is far best so far. We are spending about less than $5 dollars per month with single DID number.

 

Notes;

Router : C2811 with (ver. 15.1(4)
WAN interface : FastEtherent0/0 – 192.168.77.1
DID : 202-999-1000 ; (for example)

 

1. Router Configuration

 

ip host washington.voip.ms 208.43.234.226

 

voice translation-rule 1
 rule 1 /2029991000/ /1001/ ;

voice translation-profile INBOUND
 translate called 1

voice service voip
 ip address trusted list
  ipv4 0.0.0.0 0.0.0.0
 ip address trusted call-block cause not-in-cug
 gcid
 clid substitute name
 allow-connections h323 to h323
 allow-connections h323 to sip
 allow-connections sip to h323
 allow-connections sip to sip
 supplementary-service h450.12
 no supplementary-service sip moved-temporarily
 no supplementary-service sip refer
 redirect ip2ip
 fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
 h323
 sip
  bind control source-interface FastEthernet0/0
  bind media source-interface FastEthernet0/0
  registrar server expires max 250 min 200
  no call service stop
 

sip-ua
 credentials username [account#] password  [pwd] realm washington.voip.ms
 keepalive target dns:washington.voip.ms
 keepalive trigger 5
 authentication username [account#] password  [pwd] realm washington.voip.ms
 registrar dns:washington.voip.ms expires 65535

 

dial-peer voice 1 voip
 translation-profile incoming INBOUND
 session protocol sipv2
 session target dns:washington.voip.ms
 incoming called-number .
 dtmf-relay cisco-rtp rtp-nte sip-notify
 codec g711ulaw
 no vad

 

dial-peer voice 2 voip
 description Outbound call
 destination-pattern [2-9]..[2-9]……
 session protocol sipv2
 session target dns:washington.voip.ms
 dtmf-relay rtp-nte cisco-rtp sip-kpml sip-notify
 codec g711ulaw
 clid network-number 2029991000
 no vad

 

 

 

2. Verifying

2.1 To SIP servier is up and running

CME#show sip registration service
SIP Service is up
 

 

2.2 To verifying SIP registration

 

CME#show sip register status
Line                             peer       expires(sec) registered P-Associ-URI
================================ ========== ============ ========== ============
1000                             20005      2139         no
1001                             20001      2140         no
1002                             20002      2140         no
1003                             20003      2140         no
1004                             20004      2140         no
1007                             20006      2140         no
1111                             100        2140         no
194321                           -1         952          yes   <— "yes" indicating successful registered.
2000                             20007      2140         no
2222                             2222       2140         no
3001                             40001      2140         no
 

Also, you can access voip.ms website to verify SIP trunk is registered or not.

 


 

3. Troubleshooting

3.1 Loose registration

We noticed that SIP trunk with voip.ms is loosing many times. Not sure what was causing the issue, but when I put below two commands the issue was stopped.

 

keepalive target dns:washington.voip.ms
keepalive trigger 5

 

If you get message "the number is not registered yet" when you dial outbound call, check SIP trunk session is still there (Registered). – Probably, you will see " not registered " message on VoIP.ms web protal site.

Also, when you make a inbound call, if you get voice mail box where is on VoIP.ms side, chance is you lost SIP trunk between SIP server and your CUCME.

 

 

 

 

 

Leave a Reply