в sip.conf попробовал поиграться с параметрами - поставил NAT=yes - звук пошел в обе стороны...
Код: Выделить всё
-- Executing [981079261412662@office:1] Dial("SIP/105-00000059", "SIP/pctel1/079261412662,60") in new stack
== Using SIP RTP CoS mark 5
Audio is at 12610
Adding codec 100003 (ulaw) to SDP
Adding codec 100008 (g729) to SDP
Adding codec 100004 (alaw) to SDP
Adding codec 100002 (gsm) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 217.198.162.30:5060:
INVITE sip:079261412662@217.198.162.30:5060 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.169:5060;branch=z9hG4bK1fe76c90;rport
Max-Forwards: 70
From: "Admin" <sip:my_login@217.198.162.30>;tag=as01b29c2e
To: <sip:079261412662@217.198.162.30:5060>
Contact: <sip:my_login@111.111.111.169:5060>
Call-ID: 3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30
CSeq: 102 INVITE
User-Agent: Asterisk PBX 10.8.0
Date: Thu, 01 Dec 2016 09:59:07 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 360
v=0
o=root 1288369017 1288369017 IN IP4 111.111.111.169
s=Asterisk PBX 10.8.0
c=IN IP4 111.111.111.169
t=0 0
m=audio 12610 RTP/AVP 0 18 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
---
-- Called SIP/pctel1/079261412662
<--- SIP read from UDP:217.198.162.30:5060 --->
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 111.111.111.169:5060;branch=z9hG4bK1fe76c90;rport=5060;received=111.111.111.169
From: "Admin" <sip:my_login@217.198.162.30>;tag=as01b29c2e
To: <sip:079261412662@217.198.162.30:5060>;tag=94387f07b30dcb6d8519c673e3cb8435.0db1
Call-ID: 3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30
CSeq: 102 INVITE
Proxy-Authenticate: Digest realm="217.198.162.30", nonce="WD/zslg/8oZP2mrpfZtOHp7aE52gxiXV"
Server: kamailio (4.3.4 (i386/linux))
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Transmitting (NAT) to 217.198.162.30:5060:
ACK sip:079261412662@217.198.162.30:5060 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.169:5060;branch=z9hG4bK1fe76c90;rport
Max-Forwards: 70
From: "Admin" <sip:my_login@217.198.162.30>;tag=as01b29c2e
To: <sip:079261412662@217.198.162.30:5060>;tag=94387f07b30dcb6d8519c673e3cb8435.0db1
Contact: <sip:my_login@111.111.111.169:5060>
Call-ID: 3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30
CSeq: 102 ACK
User-Agent: Asterisk PBX 10.8.0
Content-Length: 0
---
Audio is at 12610
Adding codec 100003 (ulaw) to SDP
Adding codec 100008 (g729) to SDP
Adding codec 100004 (alaw) to SDP
Adding codec 100002 (gsm) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 217.198.162.30:5060:
INVITE sip:079261412662@217.198.162.30:5060 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.169:5060;branch=z9hG4bK46f05d27;rport
Max-Forwards: 70
From: "Admin" <sip:my_login@217.198.162.30>;tag=as01b29c2e
To: <sip:079261412662@217.198.162.30:5060>
Contact: <sip:my_login@111.111.111.169:5060>
Call-ID: 3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30
CSeq: 103 INVITE
User-Agent: Asterisk PBX 10.8.0
Proxy-Authorization: Digest username="my_login@217.198.162.30", realm="217.198.162.30", algorithm=MD5, uri="sip:079261412662@217.198.162.30:5060", nonce="WD/zslg/8oZP2mrpfZtOHp7aE52gxiXV", response="514e82c53d95aff6eb78336b98961ae1"
Date: Thu, 01 Dec 2016 09:59:07 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 360
v=0
o=root 1288369017 1288369018 IN IP4 111.111.111.169
s=Asterisk PBX 10.8.0
c=IN IP4 111.111.111.169
t=0 0
m=audio 12610 RTP/AVP 0 18 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
---
<--- SIP read from UDP:217.198.162.30:5060 --->
SIP/2.0 100 trying -- your call is important to us
Via: SIP/2.0/UDP 111.111.111.169:5060;branch=z9hG4bK46f05d27;rport=5060;received=111.111.111.169
From: "Admin" <sip:my_login@217.198.162.30>;tag=as01b29c2e
To: <sip:079261412662@217.198.162.30:5060>
Call-ID: 3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30
CSeq: 103 INVITE
Server: kamailio (4.3.4 (i386/linux))
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
<--- SIP read from UDP:217.198.162.30:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 111.111.111.169:5060;received=111.111.111.169;branch=z9hG4bK46f05d27;rport=5060
Record-Route: <sip:192.168.1.30;r2=on;lr=on;ftag=as01b29c2e>
Record-Route: <sip:217.198.162.30;r2=on;lr=on;ftag=as01b29c2e>
From: "Admin" <sip:my_login@217.198.162.30>;tag=as01b29c2e
To: <sip:079261412662@217.198.162.30:5060>;tag=as4c7361f3
Call-ID: 3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30
CSeq: 103 INVITE
Server: PCTEL-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces
Contact: <sip:079261412662@192.168.1.237:5060>
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
list_route: hop: <sip:217.198.162.30;r2=on;lr=on;ftag=as01b29c2e>
list_route: hop: <sip:192.168.1.30;r2=on;lr=on;ftag=as01b29c2e>
-- SIP/pctel1-0000005a is ringing
<--- SIP read from UDP:217.198.162.30:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 111.111.111.169:5060;received=111.111.111.169;branch=z9hG4bK46f05d27;rport=5060
Record-Route: <sip:192.168.1.30;r2=on;lr=on;ftag=as01b29c2e>
Record-Route: <sip:217.198.162.30;r2=on;lr=on;ftag=as01b29c2e>
From: "Admin" <sip:my_login@217.198.162.30>;tag=as01b29c2e
To: <sip:079261412662@217.198.162.30:5060>;tag=as4c7361f3
Call-ID: 3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30
CSeq: 103 INVITE
Server: PCTEL-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces
Contact: <sip:079261412662@192.168.1.237:5060>
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
list_route: hop: <sip:217.198.162.30;r2=on;lr=on;ftag=as01b29c2e>
list_route: hop: <sip:192.168.1.30;r2=on;lr=on;ftag=as01b29c2e>
-- SIP/pctel1-0000005a is ringing
<--- SIP read from UDP:217.198.162.30:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.111.169:5060;received=111.111.111.169;branch=z9hG4bK46f05d27;rport=5060
Record-Route: <sip:192.168.1.30;r2=on;lr=on;ftag=as01b29c2e>
Record-Route: <sip:217.198.162.30;r2=on;lr=on;ftag=as01b29c2e>
From: "Admin" <sip:my_login@217.198.162.30>;tag=as01b29c2e
To: <sip:079261412662@217.198.162.30:5060>;tag=as4c7361f3
Call-ID: 3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30
CSeq: 103 INVITE
Server: PCTEL-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces
Contact: <sip:079261412662@192.168.1.237:5060>
Content-Type: application/sdp
Content-Length: 298
v=0
o=root 1156499129 1156499129 IN IP4 192.168.1.237
s=PCTEL-PBX
c=IN IP4 192.168.1.237
t=0 0
m=audio 13150 RTP/AVP 0 8 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
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=sendrecv
<------------->
--- (14 headers 14 lines) ---
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 18
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format G729 for ID 18
Found audio description format telephone-event for ID 101
Capabilities: us - (gsm|ulaw|alaw|g729|h261), peer - audio=(ulaw|alaw|g729)/video=(nothing)/text=(nothing), combined - (ulaw|alaw|g729)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 192.168.1.237:13150
[2016-12-01 12:59:19] WARNING[19978]: channel.c:5229 set_format: Unable to find a codec translation path from (g729) to (ulaw)
[2016-12-01 12:59:19] WARNING[19978]: channel.c:5229 set_format: Unable to find a codec translation path from (g729) to (ulaw)
list_route: hop: <sip:217.198.162.30;r2=on;lr=on;ftag=as01b29c2e>
list_route: hop: <sip:192.168.1.30;r2=on;lr=on;ftag=as01b29c2e>
set_destination: Parsing <sip:217.198.162.30;r2=on;lr=on;ftag=as01b29c2e> for address/port to send to
set_destination: set destination to 217.198.162.30:5060
Transmitting (NAT) to 217.198.162.30:5060:
ACK sip:079261412662@192.168.1.237:5060 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.169:5060;branch=z9hG4bK02fd8203;rport
Route: <sip:217.198.162.30;r2=on;lr=on;ftag=as01b29c2e>,<sip:192.168.1.30;r2=on;lr=on;ftag=as01b29c2e>
Max-Forwards: 70
From: "Admin" <sip:my_login@217.198.162.30>;tag=as01b29c2e
To: <sip:079261412662@217.198.162.30:5060>;tag=as4c7361f3
Contact: <sip:my_login@111.111.111.169:5060>
Call-ID: 3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30
CSeq: 103 ACK
User-Agent: Asterisk PBX 10.8.0
Content-Length: 0
---
-- SIP/pctel1-0000005a answered SIP/105-00000059
-- Locally bridging SIP/105-00000059 and SIP/pctel1-0000005a
-- Executing [h@office:1] Verbose("SIP/105-00000059", "HangupSTATUS=ANSWER -- CLID="Admin" <105> -- SOURCE=105") in new stack
HangupSTATUS=ANSWER -- CLID=Admin <105> -- SOURCE=105
-- Executing [h@office:2] Hangup("SIP/105-00000059", "") in new stack
== Spawn extension (office, h, 2) exited non-zero on 'SIP/105-00000059'
Scheduling destruction of SIP dialog '3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30' in 32000 ms (Method: INVITE)
set_destination: Parsing <sip:217.198.162.30;r2=on;lr=on;ftag=as01b29c2e> for address/port to send to
set_destination: set destination to 217.198.162.30:5060
Reliably Transmitting (NAT) to 217.198.162.30:5060:
BYE sip:079261412662@192.168.1.237:5060 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.169:5060;branch=z9hG4bK5c75458d;rport
Route: <sip:217.198.162.30;r2=on;lr=on;ftag=as01b29c2e>,<sip:192.168.1.30;r2=on;lr=on;ftag=as01b29c2e>
Max-Forwards: 70
From: "Admin" <sip:my_login@217.198.162.30>;tag=as01b29c2e
To: <sip:079261412662@217.198.162.30:5060>;tag=as4c7361f3
Call-ID: 3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30
CSeq: 104 BYE
User-Agent: Asterisk PBX 10.8.0
Proxy-Authorization: Digest username="my_login@217.198.162.30", realm="217.198.162.30", algorithm=MD5, uri="sip:079261412662@192.168.1.237:5060", nonce="WD/zslg/8oZP2mrpfZtOHp7aE52gxiXV", response="e0b5fa58b97662ab2b7e82d7d09bc2a5"
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
---
== Spawn extension (office, 981079261412662, 1) exited non-zero on 'SIP/105-00000059'
<--- SIP read from UDP:217.198.162.30:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.111.169:5060;received=111.111.111.169;branch=z9hG4bK5c75458d;rport=5060
From: "Admin" <sip:my_login@217.198.162.30>;tag=as01b29c2e
To: <sip:079261412662@217.198.162.30:5060>;tag=as4c7361f3
Call-ID: 3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30
CSeq: 104 BYE
Server: PCTEL-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
Really destroying SIP dialog '3e2906e00c67a9a0020b6d545f5f97bd@217.198.162.30' Method: INVITE
Really destroying SIP dialog '1d4348ba25030dd43df382fd116fb055@127.0.1.1' Method: REGISTER
192.168.1.0 - такой сетки у меня нет..хотя....