Ooredoo recently updated their SIP server and they had some special requirements. Below mentioned configurations was created with Cisco TAC support to meet the requirement.
voice service voip
sip
min-se 300
registrar server expires max 600 min 60
no update-callerid
early-offer forced
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
dial-peer cor custom
name GSM
name LANDLINE
name LOCAL
name INTERNATIONAL
dial-peer cor list GSM
member GSM
member LANDLINE
member LOCAL
dial-peer cor list INT
member GSM
member LANDLINE
member LOCAL
member INTERNATIONAL
dial-peer cor list LANDLINE
member LANDLINE
member LOCAL
dial-peer cor list LOCAL
member LOCAL
dial-peer cor list gsm
member GSM
dial-peer cor list int
member INTERNATIONAL
dial-peer cor list landline
member LANDLINE
dial-peer cor list local
member LOCAL
dial-peer voice 1 voip
description ALL INCOMING
translation-profile incoming in
no modem passthrough
session protocol sipv2
incoming called-number .
voice-class codec 1
voice-class sip early-offer forced
dtmf-relay rtp-nte sip-notify
no vad
dial-peer voice 2 voip
corlist outgoing gsm
description ##DIAL_PEER_GSM##
translation-profile outgoing out
preference 10
destination-pattern 9[79]…….
–More– rtp payload-type nse 104
no modem passthrough
session protocol sipv2
session target ipv4:IP
voice-class codec 1
voice-class sip early-offer forced
dtmf-relay rtp-nte sip-notify
fax-relay sg3-to-g3
fax rate 14400 bytes 48
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711alaw
no vad
dial-peer voice 3 voip
corlist outgoing landline
description ##DIAL_PEER_LANDLINE ##
translation-profile outgoing out
preference 10
destination-pattern 92…….
rtp payload-type nse 104
no modem passthrough
session protocol sipv2
session target ipv4:IP
session transport udp
voice-class codec 1
voice-class sip early-offer forced
dtmf-relay rtp-nte sip-notify
fax-relay sg3-to-g3
fax rate 14400
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711alaw
no vad
dial-peer voice 4 voip
corlist outgoing int
description ##DIAL_PEER_INTERNATIONAL##
translation-profile outgoing out
preference 10
destination-pattern 900T
rtp payload-type nse 104
no modem passthrough
session protocol sipv2
session target ipv4:IP
session transport udp
voice-class codec 1
voice-class sip early-offer forced
dtmf-relay rtp-nte sip-notify
fax-relay sg3-to-g3
fax rate 14400
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711alaw
no vad
dial-peer voice 5 voip
corlist outgoing local
description ##DIAL_PEER_OMANTEL_CUSTOMER_CARE##
translation-profile outgoing out
preference 10
destination-pattern 91…
rtp payload-type nse 104
no modem passthrough
session protocol sipv2
session target ipv4:IP
session transport udp
voice-class codec 1
voice-class sip early-offer forced
dtmf-relay rtp-nte sip-notify
fax-relay sg3-to-g3
fax rate 14400
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711alaw
no vad
dial-peer voice 6 voip
corlist outgoing LANDLINE
description ##DIAL_PEER_TOLL_FREE##
translation-profile outgoing out
preference 10
destination-pattern 98…….
rtp payload-type nse 104
no modem passthrough
session protocol sipv2
session target ipv4:IP
session transport udp
voice-class codec 1
voice-class sip early-offer forced
dtmf-relay rtp-nte sip-notify
fax-relay sg3-to-g3
fax rate 14400
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711alaw
no vad
sip-ua
retry notify 6
timers notify 100
sip-server ipv4:IP:5060
connection-reuse