12-24-2015 02:13 PM - edited 03-18-2019 05:21 AM
We subscribed to STC SIP service and here is the configuration.
It works, and I want to share with you my configuration for the voice gateway
hostname SIP-VG
!
clock timezone GMT 3 0
!
voice-card 0
!
voice service voip
ip address trusted list
ipv4 0.0.0.0 0.0.0.0
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
sip
early-offer forced
!
!
voice class uri 6500 sip
host ipv4:10.10.10.1 (STC SIP Registration Server IP)
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
codec preference 4 g729br8
codec preference 5 g723ar53
!
voice class sip-profiles 1000
request INVITE sip-header Remote-Party-ID add "STCETN"
response ANY sip-header Remote-Party-ID add "STCETN"
!
voice translation-rule 1
rule 1 /\(.*\)/ /222\1/ (add 222 before ext for outgoing call)
!
voice translation-rule 2
rule 1 /.*222\(.*\)/ /\1/ (remove 222 to extract ext for incoming call)
!
!
voice translation-profile EXT
translate called 2
!
voice translation-profile Add_Prefix
translate calling 1
!
interface GigabitEthernet0/0
description ***Connected to STC SIP Circuit***
ip address 10.1.1.1 255.255.255.252
!
interface GigabitEthernet0/1
description ***Connected to LAN***
ip address 192.168.1.1 255.255.255.0
!
interface GigabitEthernet0/2
no ip address
shutdown
!
ip route 10.10.10.1 255.255.255.255 10.1.1.2 (Static route for traffic going to STC SIP server)
!
!
!
dial-peer voice 100 voip
description calls to CUCM Publisher
destination-pattern 65..
session protocol sipv2
session target ipv4:192.168.1.10
dtmf-relay rtp-nte h245-signal h245-alphanumeric
codec g711alaw
no vad
!
dial-peer voice 101 voip
description calls to CUCM Subscriber
destination-pattern 65..
session protocol sipv2
session target ipv4:192.168.1.11
dtmf-relay rtp-nte h245-signal h245-alphanumeric
codec g711alaw
no vad
!
dial-peer voice 200 voip
description ***Incoming calls from STC-SBC***
translation-profile incoming EXT
session protocol sipv2
incoming uri via 6500
dtmf-relay rtp-nte h245-signal h245-alphanumeric
codec g711alaw
no vad
!
dial-peer voice 201 voip
description ***Outgoing calls to STC SIP Trunk***
destination-pattern .T
session protocol sipv2
session target ipv4:10.10.10.1:5060
dtmf-relay rtp-nte h245-signal h245-alphanumeric
codec g711alaw
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
no vad
!
dial-peer voice 300 voip
description ***Inbound Dialpeer from CUCM to GW***
translation-profile incoming Add_Prefix
session protocol sipv2
incoming called-number .
dtmf-relay rtp-nte h245-signal h245-alphanumeric
codec g711alaw
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
no vad
03-01-2016 01:47 PM
nice one! great for future reference.
09-03-2019 12:38 AM
10-23-2023 08:26 AM
10-23-2023 08:28 AM
04-19-2024 10:43 PM
Hello,
Any one have new configuration related to STC?
Please share it
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide