Требуется IOS 12.3(8)T или новее.
Работоспособная конфигурация. Вместо {SIP ID} и {password} нужно указать свои SIP ID и пароль, вместо "?" - свои реальные значения.
!
voice rtp send-recv
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
dial-peer voice 1 pots
answer-address {SIP ID}
destination-pattern {SIP ID}
port ?
!
dial-peer voice 2 pots
description Inbound from Telephony
incoming called-number ?
direct-inward-dial
!
dial-peer voice {SIP ID} voip
description Outbound to SIPNET
destination-pattern ?
voice-class codec 1
session protocol sipv2
session target sip-server
dtmf-relay rtp-nte
no vad
!
sip-ua
authentication username {SIP ID} password {password}
calling-info pstn-to-sip from number set {SIP ID}
registrar dns:sipnet.ru:5060 expires 600
sip-server dns:sipnet.ru
!