sip.conf
[general]
context=default
allowguest=no
allowoverlap=no
bindaddr=0.0.0.0
alwaysauthreject=yes
register=username:password@host/username
[novofon]
host=host
type=friend
insecure=invite,port
fromuser=username
defaultuser=username
fromdomain=host
disallow=all
allow=alaw
allow=ulaw
dtmfmode=auto
secret=password
username=username
nat=force_rport,comedia
extensions.conf
[novofon-out]
exten => _+X.,1,NoOp(Call)
exten => _+X.,n,Playback(hello-world)
exten => _+X.,n,Dial(SIP/novofon/${EXTEN},30)
when I run the command channel originate SIP/novofon/+79XXXXXXXX extension novofon-out I get:
Using SIP RTP CoS mark 5
– Called novofon/+79XXXXXXXX
– SIP/novofon-0000003c is making progress
– SIP/novofon-0000003c answered
– Channel ‘SIP/novofon-0000003c’ sent to invalid extension: context,exten,priority=default,novofon-out,1
– Executing [i@default:1] playback(“SIP/novofon-0000003c”, “invalid”)
Sent RTP packet to 37.139.38.68:26174 (type 08, seq 020811, ts 000160, len 000160)
– <SIP/novofon-0000003c> Playing ‘invalid.gsm’ (language ‘en’)
Got RTP packet from 37.139.38.68:26174 (type 08, seq 030736, ts 1071672368, len 000160)
Sent RTP packet to 37.139.38.68:26174 (type 08, seq 020812, ts 000320, len 000160)
Got RTP packet from 37.139.38.68:26174 (type 08, seq 030737, ts 1071672528, len 000160)
Sent RTP packet to 37.139.38.68:26174 (type 08, seq 020813, ts 000480, len 000160)
Got RTP packet from 37.139.38.68:26174 (type 08, seq 030738, ts 1071672688, len 000160)
Sent RTP packet to 37.139.38.68:26174 (type 08, seq 020814, ts 000640, len 000160)
Got RTP packet from 37.139.38.68:26174 (type 08, seq 030739, ts 1071672848, len 000160)
Sent RTP packet to 37.139.38.68:26174 (type 08, seq 020815, ts 000800, len 000160)
Got RTP packet from 37.139.38.68:26174 (type 08, seq 030740, ts 1071673008, len 000160)
Sent RTP packet to 37.139.38.68:26174 (type 08, seq 020816, ts 000960, len 000160)
Got RTP packet from 37.139.38.68:26174 (type 08, seq 030741, ts 1071673168, len 000160)
Sent RTP packet to 37.139.38.68:26174 (type 08, seq 020817, ts 001120, len 000160)
Got RTP packet from 37.139.38.68:26174 (type 08, seq 030742, ts 1071673328, len 000160)
Sent RTP packet to 37.139.38.68:26174 (type 08, seq 020818, ts 001280, len 000160)
Got RTP packet from 37.139.38.68:26174 (type 08, seq 030743, ts 1071673488, len 000160)
Sent RTP packet to 37.139.38.68:26174 (type 08, seq 020819, ts 001440, len 000160)
Got RTP packet from 37.139.38.68:26174 (type 08, seq 030744, ts 1071673648, len 000160)