[test]
type=friend
host=94.xx.xx.5
deny=0.0.0.0/0.0.0.0
permit=94.xx.xx.5/255.255.255.255
context=gencontext
dtmfmode=rfc2833
transport=udp,tcp
insecure=port,invite
srvlookup=no
qualify=yes
canreinvite=no
port=5060
exten => _022201.,1,NoOp()
same => n,Dial(SIP/${EXTEN}@mera,40,g)
same => n(hangup),Hangup(34)
Код: Выделить всё
<--- SIP read from UDP:94.xx.xx.5:5060 --->
INVITE sip:02220138553664043@144.xx.xx.185 SIP/2.0
Record-Route: <sip:94.xx.xx.5;lr;ftag=lp-2k9-55e9aa05-000032f8-00006d7bRb098f59c.a>
Via: SIP/2.0/UDP 94.xx.xx.5;branch=z9hG4bK9da7.2d0146b4.0
Via: SIP/2.0/UDP 94.xx.xx.48:5060;branch=z9hG4bK9da7.4a01ff44.0
From: "Test" <sip:441143199998@122.xx.xx.18>;tag=lp-2k9-55e9aa05-000032f8-00006d7bRb098f59c.a
To: <sip:02220138553664043@144.xx.xx.185>
Contact: <sip:94.xx.xx.48;did=90c.70e1b433>
Call-ID: 6c97d4e14e666dba6b0573953cb66230@122.xx.xx.18:5060
CSeq: 102 INVITE
Date: Tue, 08 Sep 2015 08:57:38 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
X-Eng-GWID: 1685
Content-Type: application/sdp
Content-Length: 296
Max-Forwards: 69
v=0
o=root 815792207 815792207 IN IP4 122.xx.xx.18
s=Asterisk PBX 12.3.2
c=IN IP4 122.xx.xx.18
t=0 0
m=audio 15570 RTP/AVP 0 3 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
<------------->
--- (15 headers 14 lines) ---
Sending to 94.xx.xx.5:5060 (no NAT)
Sending to 94.xx.xx.5:5060 (no NAT)
Using INVITE request as basis request - 6c97d4e14e666dba6b0573953cb66230@122.xx.xx.18:5060
Found peer 'test' for '441143199998' from 94.xx.xx.5:5060
Found RTP audio format 0
Found RTP audio format 3
Found RTP audio format 8
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format GSM for ID 3
Found audio description format PCMA for ID 8
Found audio description format telephone-event for ID 101
Capabilities: us - (alaw|ulaw|g726|gsm|ilbc|g729), peer - audio=(ulaw|gsm|alaw)/video=(nothing)/text=(nothing), combined - (alaw|ulaw|gsm)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 122.xx.xx.18:15570
Looking for 02220138553664043 in gencontext (domain 144.xx.xx.185)
sip_route_dump: route/path hop: <sip:94.xx.xx.5;lr;ftag=lp-2k9-55e9aa05-000032f8-00006d7bRb098f59c.a>
<--- Transmitting (no NAT) to 94.xx.xx.5:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 94.xx.xx.5;branch=z9hG4bK9da7.2d0146b4.0;received=94.xx.xx.5
Via: SIP/2.0/UDP 94.xx.xx.48:5060;branch=z9hG4bK9da7.4a01ff44.0
Record-Route: <sip:94.xx.xx.5;lr;ftag=lp-2k9-55e9aa05-000032f8-00006d7bRb098f59c.a>
From: "Test" <sip:441143199998@122.xx.xx.18>;tag=lp-2k9-55e9aa05-000032f8-00006d7bRb098f59c.a
To: <sip:02220138553664043@144.xx.xx.185>
Call-ID: 6c97d4e14e666dba6b0573953cb66230@122.xx.xx.18:5060
CSeq: 102 INVITE
Server: Asterisk PBX 13.0.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact: <sip:02220138553664043@144.xx.xx.185:5060>
Content-Length: 0
<--- Transmitting (no NAT) to 94.xx.xx.5:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 94.xx.xx.5;branch=z9hG4bK9da7.2d0146b4.0;received=94.xx.xx.5
Via: SIP/2.0/UDP 94.xx.xx.48:5060;branch=z9hG4bK9da7.4a01ff44.0
Record-Route: <sip:94.xx.xx.5;lr;ftag=lp-2k9-55e9aa05-000032f8-00006d7bRb098f59c.a>
From: "Test" <sip:441143199998@122.xx.xx.18>;tag=lp-2k9-55e9aa05-000032f8-00006d7bRb098f59c.a
To: <sip:02220138553664043@144.xx.xx.185>;tag=as73ea2b7a
Call-ID: 6c97d4e14e666dba6b0573953cb66230@122.xx.xx.18:5060
CSeq: 102 INVITE
Server: Asterisk PBX 13.0.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact: <sip:02220138553664043@144.xx.xx.185:5060>
Content-Length: 0
<------------>
Audio is at 17382
Adding codec alaw to SDP
Adding codec ulaw to SDP
Adding codec gsm to SDP
Adding codec g726 to SDP
Adding codec ilbc to SDP
Adding codec g729 to SDP
Adding non-codec 0x1 (telephone-event) to SDP
<--- Reliably Transmitting (no NAT) to 94.xx.xx.5:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 94.xx.xx.5;branch=z9hG4bK9da7.2d0146b4.0;received=94.xx.xx.5
Via: SIP/2.0/UDP 94.xx.xx.48:5060;branch=z9hG4bK9da7.4a01ff44.0
Record-Route: <sip:94.xx.xx.5;lr;ftag=lp-2k9-55e9aa05-000032f8-00006d7bRb098f59c.a>
From: "Test" <sip:441143199998@122.xx.xx.18>;tag=lp-2k9-55e9aa05-000032f8-00006d7bRb098f59c.a
To: <sip:02220138553664043@144.xx.xx.185>;tag=as73ea2b7a
Call-ID: 6c97d4e14e666dba6b0573953cb66230@122.xx.xx.18:5060
CSeq: 102 INVITE
Server: Asterisk PBX 13.0.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact: <sip:02220138553664043@144.xx.xx.185:5060>
Content-Type: application/sdp
Content-Length: 420
v=0
o=root 99351220 99351220 IN IP4 144.xx.xx.185
s=Asterisk PBX 13.0.1
c=IN IP4 144.xx.xx.185
t=0 0
m=audio 17382 RTP/AVP 8 0 3 111 97 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=20
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:30
a=sendrecv
<------------>