Cisco IOS
From VoIP.ms Wiki
(Difference between revisions)
| [quality revision] | [quality revision] |
(→SIP Trunk (Username/Password Authentication)) |
m (→SIP Trunk (Username/Password Authentication)) |
||
| (3 intermediate revisions not shown) | |||
| Line 3: | Line 3: | ||
The example below is based on IOS 15.1(3)T. Minor adjustments may be necessary for ealier IOS revisions. | The example below is based on IOS 15.1(3)T. Minor adjustments may be necessary for ealier IOS revisions. | ||
This example uses newyork4.voip.ms as a primary route. | This example uses newyork4.voip.ms as a primary route. | ||
| + | |||
| + | Please click here [http://wiki.voip.ms/article/Server_Realms Server Realms] to get the Realm Name for the server you plan on using, this can differ from the Domain Name being used. | ||
configure terminal | configure terminal | ||
| Line 8: | Line 10: | ||
voice service voip | voice service voip | ||
ip address trusted list | ip address trusted list | ||
| - | ipv4 | + | ipv4 208.100.60.69 !'''Current IP address for newyork4.voip.ms at the time of this writing.''' |
ip address trusted call-block cause not-in-cug | ip address trusted call-block cause not-in-cug | ||
gcid | gcid | ||
| Line 16: | Line 18: | ||
no supplementary-service sip refer | no supplementary-service sip refer | ||
sip | sip | ||
| + | session refresh | ||
e911 | e911 | ||
transport switch udp tcp | transport switch udp tcp | ||
| Line 42: | Line 45: | ||
destination-pattern [2-9]..[2-9]...... | destination-pattern [2-9]..[2-9]...... | ||
session protocol sipv2 | session protocol sipv2 | ||
| - | session target ipv4: | + | session target ipv4:208.100.60.69 !'''Your preferred VoIP.ms server's IP address''' |
no voice-class sip early-offer forced | no voice-class sip early-offer forced | ||
dtmf-relay h245-alphanumeric | dtmf-relay h245-alphanumeric | ||
| Line 52: | Line 55: | ||
destination-pattern 1[2-9]..[2-9]...... | destination-pattern 1[2-9]..[2-9]...... | ||
session protocol sipv2 | session protocol sipv2 | ||
| - | session target ipv4: | + | session target ipv4:208.100.60.69 !'''Your preferred VoIP.ms server's IP address''' |
no voice-class sip early-offer forced | no voice-class sip early-offer forced | ||
dtmf-relay rtp-nte cisco-rtp sip-kpml sip-notify | dtmf-relay rtp-nte cisco-rtp sip-kpml sip-notify | ||
| Line 61: | Line 64: | ||
dial-peer voice 4 voip | dial-peer voice 4 voip | ||
session protocol sipv2 | session protocol sipv2 | ||
| - | session target ipv4: | + | session target ipv4:208.100.60.69 !'''Your preferred VoIP.ms server's IP address''' |
incoming called-number . | incoming called-number . | ||
dtmf-relay cisco-rtp rtp-nte | dtmf-relay cisco-rtp rtp-nte | ||
Latest revision as of 23:49, 14 March 2024
SIP Trunk (Username/Password Authentication)
For the configuration below to work, you must have DNS name lookups properly configured on your router. The example below is based on IOS 15.1(3)T. Minor adjustments may be necessary for ealier IOS revisions. This example uses newyork4.voip.ms as a primary route.
Please click here Server Realms to get the Realm Name for the server you plan on using, this can differ from the Domain Name being used.
configure terminal voice service voip ip address trusted list ipv4 208.100.60.69 !Current IP address for newyork4.voip.ms at the time of this writing. ip address trusted call-block cause not-in-cug gcid clid substitute name allow-connections sip to sip no supplementary-service sip moved-temporarily no supplementary-service sip refer sip session refresh e911 transport switch udp tcp asserted-id ppi localhost dns:dns.name.of.your.device midcall-signaling passthru no call service stop sip-ua credentials username your_account password 0 your_password realm newyork4.voip.ms authentication username your_account password 0 your_password realm newyork4.voip.ms registrar 1 dns:newyork4.voip.ms expires 300 !Pick your preferred server !This dial peer will match all incoming calls for an specific DID dial-peer voice 1 voip huntstop destination-pattern ########## !Switch the # with your DID Number session protocol sipv2 session target ipv4:192.168.X.X !Your Call Manager IP Address dtmf-relay cisco-rtp rtp-nte codec g711ulaw no vad !This dial peer is for outgoing calls dial-peer voice 2 voip destination-pattern [2-9]..[2-9]...... session protocol sipv2 session target ipv4:208.100.60.69 !Your preferred VoIP.ms server's IP address no voice-class sip early-offer forced dtmf-relay h245-alphanumeric codec g711ulaw no vad !This dial peer is for outgoing calls with the 1 prefix. dial-peer voice 3 voip destination-pattern 1[2-9]..[2-9]...... session protocol sipv2 session target ipv4:208.100.60.69 !Your preferred VoIP.ms server's IP address no voice-class sip early-offer forced dtmf-relay rtp-nte cisco-rtp sip-kpml sip-notify codec g711ulaw no vad
!Incoming Dial-Peer dial-peer voice 4 voip session protocol sipv2 session target ipv4:208.100.60.69 !Your preferred VoIP.ms server's IP address incoming called-number . dtmf-relay cisco-rtp rtp-nte codec g711ulaw