Поубирал везде r, если правильно понимаю, в транк отправляется DIAL_TRUNK_OPTIONS=TL(720000:60000:29500):
Код: Выделить всё
-- Executing [s@macro-user-callerid:10] Set("SIP/1902-000008d1", "__DIAL_OPTIONS=tL(720000:60000:29500)") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/1902-000008d1", "DIAL_TRUNK_OPTIONS=tL(720000:60000:29500)") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/1902-000008d1", "DIAL_TRUNK_OPTIONS=TL(720000:60000:29500)") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/1902-000008d1", "custom=SIP/SIPNET-1234567") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/1902-000008d1", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)TL(720000:60000:29500))") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/1902-000008d1", "0?Set(DIAL_TRUNK_OPTIONS=TL(720000:60000:29500)M(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/1902-000008d1", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1902-000008d1", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1902-000008d1", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/1902-000008d1", "1?Set(CONNECTEDLINE(num,i)=89161234567)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/1902-000008d1", "1?Set(CONNECTEDLINE(name,i)=CID:78621234567)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/1902-000008d1", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/1902-000008d1", "SIP/SIPNET-1234567/89161234567,300,TL(720000:60000:29500)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/SIPNET-1234567/89161234567
-- SIP/SIPNET-1234567-000008d2 is making progress passing it to SIP/1902-000008d1
-- SIP/SIPNET-1234567-000008d2 is ringing
Лог ответов от абонента астериску, слышу только длинные гудки, потом отбой. Если звонок напрямую через сипнет (без *) -- то сообщение о недоступности номера отлично слышно, потом идет отбой. Может быть проблема в том, что сообщения об ошибке от транка приходят в кодеке, которого нет в *?
Код: Выделить всё
<--- SIP read from UDP:192.168.4.50:5070 --->
INVITE sip:89161234567@192.168.1.10:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.4.50:5070;branch=z9hG4bKc9700117
Max-Forwards: 70
To: <sip:89161234567@192.168.1.10>
From: <sip:1902@192.168.1.10>;tag=1714627387
Call-ID: 539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50
CSeq: 1 INVITE
Contact: <sip:1902@192.168.4.50:5070>
Supported: replaces
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,NOTIFY,REFER,UPDATE
Content-Type: application/sdp
User-Agent: Panasonic_KX-TGP500B09/22.85 (080023629ff7)
Content-Length: 321
v=0
o=- 1418680182 1418680182 IN IP4 192.168.4.50
s=-
c=IN IP4 192.168.4.50
t=0 0
m=audio 16064 RTP/AVP 9 8 2 18 0 101
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:18 G729/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=ptime:20
<------------->
--- (13 headers 15 lines) ---
Sending to 192.168.4.50:5070 (NAT)
Sending to 192.168.4.50:5070 (NAT)
Using INVITE request as basis request - 539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50
Found peer '1902' for '1902' from 192.168.4.50:5070
<--- Reliably Transmitting (NAT) to 192.168.4.50:5070 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.4.50:5070;branch=z9hG4bKc9700117;received=192.168.4.50;rport=5070
From: <sip:1902@192.168.1.10>;tag=1714627387
To: <sip:89161234567@192.168.1.10>;tag=as7652dbab
Call-ID: 539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50
CSeq: 1 INVITE
Server: FPBX-12.0.13(13.0.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1830572e"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50' in 9792 ms (Method: INVITE)
<--- SIP read from UDP:192.168.4.50:5070 --->
ACK sip:89161234567@192.168.1.10:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.4.50:5070;branch=z9hG4bKc9700117
Max-Forwards: 70
To: <sip:89161234567@192.168.1.10>;tag=as7652dbab
From: <sip:1902@192.168.1.10>;tag=1714627387
Call-ID: 539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50
CSeq: 1 ACK
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
<--- SIP read from UDP:192.168.4.50:5070 --->
INVITE sip:89161234567@192.168.1.10:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.4.50:5070;branch=z9hG4bKd6a025c6
Max-Forwards: 70
To: <sip:89161234567@192.168.1.10>
From: <sip:1902@192.168.1.10>;tag=1714627387
Call-ID: 539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50
CSeq: 2 INVITE
Contact: <sip:1902@192.168.4.50:5070>
Supported: replaces
Authorization: Digest realm="asterisk", nonce="1830572e", algorithm=MD5, uri="sip:89161234567@192.168.1.10:5060", username="1902", response="863fc1c50c72248abba71541decc3371"
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,NOTIFY,REFER,UPDATE
Content-Type: application/sdp
User-Agent: Panasonic_KX-TGP500B09/22.85 (080023629ff7)
Content-Length: 321
v=0
o=- 1418680182 1418680182 IN IP4 192.168.4.50
s=-
c=IN IP4 192.168.4.50
t=0 0
m=audio 16064 RTP/AVP 9 8 2 18 0 101
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:18 G729/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=ptime:20
<------------->
--- (14 headers 15 lines) ---
Sending to 192.168.4.50:5070 (NAT)
Using INVITE request as basis request - 539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50
Found peer '1902' for '1902' from 192.168.4.50:5070
Found RTP audio format 9
Found RTP audio format 8
Found RTP audio format 2
Found RTP audio format 18
Found RTP audio format 0
Found RTP audio format 101
Found audio description format G722 for ID 9
Found audio description format PCMA for ID 8
Found audio description format G726-32 for ID 2
Found audio description format G729 for ID 18
Found audio description format PCMU for ID 0
Found audio description format telephone-event for ID 101
Capabilities: us - (ulaw|alaw|gsm|g726|g722), peer - audio=(ulaw|g726|alaw|g722|g729)/video=(nothing)/text=(nothing), combined - (ulaw|alaw|g726|g722)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 192.168.4.50:16064
Looking for 89161234567 in 4015188-ALL (domain 192.168.1.10)
sip_route_dump: route/path hop: <sip:1902@192.168.4.50:5070>
<--- Transmitting (NAT) to 192.168.4.50:5070 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.4.50:5070;branch=z9hG4bKd6a025c6;received=192.168.4.50;rport=5070
From: <sip:1902@192.168.1.10>;tag=1714627387
To: <sip:89161234567@192.168.1.10>
Call-ID: 539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50
CSeq: 2 INVITE
Server: FPBX-12.0.13(13.0.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact: <sip:89161234567@192.168.1.10:5060>
Content-Length: 0
<------------>
<--- Transmitting (NAT) to 192.168.4.50:5070 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.4.50:5070;branch=z9hG4bKd6a025c6;received=192.168.4.50;rport=5070
From: <sip:1902@192.168.1.10>;tag=1714627387
To: <sip:89161234567@192.168.1.10>;tag=as311e4ca8
Call-ID: 539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50
CSeq: 2 INVITE
Server: FPBX-12.0.13(13.0.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact: <sip:89161234567@192.168.1.10:5060>
Content-Length: 0
<------------>
<--- Transmitting (NAT) to 192.168.4.50:5070 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.4.50:5070;branch=z9hG4bKd6a025c6;received=192.168.4.50;rport=5070
From: <sip:1902@192.168.1.10>;tag=1714627387
To: <sip:89161234567@192.168.1.10>;tag=as311e4ca8
Call-ID: 539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50
CSeq: 2 INVITE
Server: FPBX-12.0.13(13.0.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact: <sip:89161234567@192.168.1.10:5060>
Content-Length: 0
<------------>
Reliably Transmitting (NAT) to 192.168.4.50:5070:
OPTIONS sip:1902@192.168.4.50:5070 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.10:5060;branch=z9hG4bK6607f2ea;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.10>;tag=as25f3a89d
To: <sip:1902@192.168.4.50:5070>
Contact: <sip:Unknown@192.168.1.10:5060>
Call-ID: 16d23ea136f5dc185ac896f82195eb39@192.168.1.10:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-12.0.13(13.0.1)
Date: Mon, 15 Dec 2014 21:49:45 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
<--- SIP read from UDP:192.168.4.50:5070 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.10:5060;branch=z9hG4bK6607f2ea;rport=5060
To: <sip:1902@192.168.4.50>;tag=2217326354
From: "Unknown" <sip:Unknown@192.168.1.10>;tag=as25f3a89d
Call-ID: 16d23ea136f5dc185ac896f82195eb39@192.168.1.10:5060
CSeq: 102 OPTIONS
Contact: <sip:192.168.4.50:5070>
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,NOTIFY,REFER,UPDATE
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Really destroying SIP dialog '16d23ea136f5dc185ac896f82195eb39@192.168.1.10:5060' Method: OPTIONS
<--- Reliably Transmitting (NAT) to 192.168.4.50:5070 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 192.168.4.50:5070;branch=z9hG4bKd6a025c6;received=192.168.4.50;rport=5070
From: <sip:1902@192.168.1.10>;tag=1714627387
To: <sip:89161234567@192.168.1.10>;tag=as311e4ca8
Call-ID: 539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50
CSeq: 2 INVITE
Server: FPBX-12.0.13(13.0.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
<------------>
[2014-12-16 00:49:50] WARNING[14303][C-000019c8]: channel.c:4816 ast_prod: Prodding channel 'SIP/1902-000008cf' failed
<--- SIP read from UDP:192.168.4.50:5070 --->
ACK sip:89161234567@192.168.1.10:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.4.50:5070;branch=z9hG4bKd6a025c6
Max-Forwards: 70
To: <sip:89161234567@192.168.1.10>;tag=as311e4ca8
From: <sip:1902@192.168.1.10>;tag=1714627387
Call-ID: 539e7cb2-f6cd1c1c4fe0d24f8495080023629ff7@192.168.4.50
CSeq: 2 ACK
Authorization: Digest realm="asterisk", nonce="1830572e", algorithm=MD5, uri="sip:89161234567@192.168.1.10:5060", username="1902", response="d85286d81df22aaf57c6d9eba6c22e00"
Content-Length: 0
<------------>