Здравствуйте уважаемые гуру,
Имеется Настроенный * (Астерикс) trixbox !
входящие / исходящие вызовы - (как внутренние, так и внешние ) работают почти исправно...
Есть пару номеров, при дозвоне на которые - оператор снимает трубку, и делает переадресацию на внутренний номер - после чего звонок сбрасывается.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Дамп звонка:
<--- SIP read from UDP://192.168.2.104:5060 --->
ACK sip:XXXXXXXXXX@192.168.2.103:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.104:5060;branch=z9hG4bK3987865462
From: "302" <sip:302@192.168.2.103>;tag=23996866
To: <sip:XXXXXXXXXX@192.168.2.103:5060>;tag=as2cc83280
Call-ID: 4025946357@192.168.2.104
CSeq: 2 ACK
Contact: <sip:302@192.168.2.104>
Authorization: Digest username="302", realm="asterisk", nonce="0646bbe3", uri="sip:XXXXXXXXXX@192.168.2.103:5060", response="fe5b613e0a289d75d8b69439e8dbf5e1, algorithm=MD5
max-forwards: 70
user-agent: sipagent MAC-00-15-7C-26-5F-17 V-12202.26.1.05-SIP
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
-- Started music on hold, class 'default', on SIP/302-00000159
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/302-00000159", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/302-00000159", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/302-00000159", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/302-00000159", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/302-00000159", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/302-00000159' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/302-00000159'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/302-00000159' in macro 'dialout-trunk'
== Spawn extension (from-internal, XXXXXXXXXX, 4) exited non-zero on 'SIP/302-00000159'
-- Executing [h@from-internal:1] Macro("SIP/302-00000159", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/302-00000159", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/302-00000159", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/302-00000159", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/302-00000159", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/302-00000159' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/302-00000159'
-- Stopped music on hold on SIP/302-00000159
Scheduling destruction of SIP dialog '4025946357@192.168.2.104' in 32000 ms (Method: ACK)
set_destination: Parsing <sip:302@192.168.2.104> for address/port to send to
set_destination: set destination to 192.168.2.104, port 5060
Reliably Transmitting (NAT) to 192.168.2.104:5060:
BYE sip:302@192.168.2.104 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.103:5060;branch=z9hG4bK3e5c93d3;rport
Max-Forwards: 70
From: <sip:XXXXXXXXXX@192.168.2.103:5060>;tag=as2cc83280
To: "302" <sip:302@192.168.2.103>;tag=23996866
Call-ID: 4025946357@192.168.2.104
CSeq: 102 BYE
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
---
trixbox1*CLI>
<--- SIP read from UDP://192.168.2.104:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.2.103:5060;branch=z9hG4bK3e5c93d3;rport=5060
From: <sip:XXXXXXXXXX@192.168.2.103:5060>;tag=as2cc83280
To: "302" <sip:302@192.168.2.103>;tag=23996866
Call-ID: 4025946357@192.168.2.104
CSeq: 102 BYE
supported: replaces
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
SIP Response message for INCOMING dialog BYE arrived
Really destroying SIP dialog '4025946357@192.168.2.104' Method: ACK
Really destroying SIP dialog '2997074529@192.168.2.104' Method: REGISTER
trixbox1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
ACK sip:XXXXXXXXXX@192.168.2.103:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.104:5060;branch=z9hG4bK3987865462
From: "302" <sip:302@192.168.2.103>;tag=23996866
To: <sip:XXXXXXXXXX@192.168.2.103:5060>;tag=as2cc83280
Call-ID: 4025946357@192.168.2.104
CSeq: 2 ACK
Contact: <sip:302@192.168.2.104>
Authorization: Digest username="302", realm="asterisk", nonce="0646bbe3", uri="sip:XXXXXXXXXX@192.168.2.103:5060", response="fe5b613e0a289d75d8b69439e8dbf5e1, algorithm=MD5
max-forwards: 70
user-agent: sipagent MAC-00-15-7C-26-5F-17 V-12202.26.1.05-SIP
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
-- Started music on hold, class 'default', on SIP/302-00000159
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/302-00000159", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/302-00000159", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/302-00000159", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/302-00000159", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/302-00000159", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/302-00000159' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/302-00000159'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/302-00000159' in macro 'dialout-trunk'
== Spawn extension (from-internal, XXXXXXXXXX, 4) exited non-zero on 'SIP/302-00000159'
-- Executing [h@from-internal:1] Macro("SIP/302-00000159", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/302-00000159", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/302-00000159", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/302-00000159", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/302-00000159", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/302-00000159' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/302-00000159'
-- Stopped music on hold on SIP/302-00000159
Scheduling destruction of SIP dialog '4025946357@192.168.2.104' in 32000 ms (Method: ACK)
set_destination: Parsing <sip:302@192.168.2.104> for address/port to send to
set_destination: set destination to 192.168.2.104, port 5060
Reliably Transmitting (NAT) to 192.168.2.104:5060:
BYE sip:302@192.168.2.104 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.103:5060;branch=z9hG4bK3e5c93d3;rport
Max-Forwards: 70
From: <sip:XXXXXXXXXX@192.168.2.103:5060>;tag=as2cc83280
To: "302" <sip:302@192.168.2.103>;tag=23996866
Call-ID: 4025946357@192.168.2.104
CSeq: 102 BYE
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
---
trixbox1*CLI>
<--- SIP read from UDP://192.168.2.104:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.2.103:5060;branch=z9hG4bK3e5c93d3;rport=5060
From: <sip:XXXXXXXXXX@192.168.2.103:5060>;tag=as2cc83280
To: "302" <sip:302@192.168.2.103>;tag=23996866
Call-ID: 4025946357@192.168.2.104
CSeq: 102 BYE
supported: replaces
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
SIP Response message for INCOMING dialog BYE arrived
Really destroying SIP dialog '4025946357@192.168.2.104' Method: ACK
Really destroying SIP dialog '2997074529@192.168.2.104' Method: REGISTER
trixbox1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Лог CLI
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Executing [XXXXXXXXXX@from-internal:1] Macro("SIP/302-000000ca", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/302-000000ca", "AMPUSER=302") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/302-000000ca", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/302-000000ca", "1?Set(REALCALLERIDNUM=302)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/302-000000ca", "AMPUSER=302") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/302-000000ca", "AMPUSERCIDNAME=302") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/302-000000ca", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/302-000000ca", "AMPUSERCID=302") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/302-000000ca", "CALLERID(all)="302" <302>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/302-000000ca", "1?Set(CHANNEL(language)=de)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/302-000000ca", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/302-000000ca", "Using CallerID "302" <302>") in new stack
-- Executing [XXXXXXXXXX@from-internal:2] Set("SIP/302-000000ca", "_NODEST=") in new stack
-- Executing [XXXXXXXXXX@from-internal:3] Macro("SIP/302-000000ca", "record-enable,302,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/302-000000ca", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/302-000000ca", "recordingcheck,20120427-123051,1335522651.202") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20120427-123051,1335522651.202: Outbound recording not enabled
-- <SIP/302-000000ca>AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/302-000000ca", "") in new stack
-- Executing [XXXXXXXXXX@from-internal:4] Macro("SIP/302-000000ca", "dialout-trunk,2,XXXXXXXXXX,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/302-000000ca", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/302-000000ca", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/302-000000ca", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/302-000000ca", "DIAL_NUMBER=XXXXXXXXXX") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/302-000000ca", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/302-000000ca", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/302-000000ca", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/302-000000ca", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/302-000000ca", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/302-000000ca", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/302-000000ca", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/302-000000ca", "0?Set(REALCALLERIDNUM=302)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/302-000000ca", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/302-000000ca", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/302-000000ca", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/302-000000ca", "TRUNKOUTCID=YYYYYYYYYY") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/302-000000ca", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/302-000000ca", "1?Set(CALLERID(all)=YYYYYYYYYY)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/302-000000ca", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/302-000000ca", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/302-000000ca", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern . matched. XXXXXXXXXX -> XXXXXXXXXX
-- <SIP/302-000000ca>AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/302-000000ca", "OUTNUM=XXXXXXXXXX") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/302-000000ca", "custom=SIP/YYYYYYYYYY") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/302-000000ca", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/302-000000ca", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/302-000000ca", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/302-000000ca", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/302-000000ca", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/302-000000ca", "SIP/YYYYYYYYYY/XXXXXXXXXX,300,") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Called YYYYYYYYYY/XXXXXXXXXX
-- SIP/YYYYYYYYYY-000000cb is making progress passing it to SIP/302-000000ca
-- SIP/YYYYYYYYYY-000000cb is making progress passing it to SIP/302-000000ca
-- SIP/YYYYYYYYYY-000000cb is ringing
-- SIP/YYYYYYYYYY-000000cb is making progress passing it to SIP/302-000000ca
-- SIP/YYYYYYYYYY-000000cb answered SIP/302-000000ca
-- Started music on hold, class 'default', on SIP/302-000000ca
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/302-000000ca", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/302-000000ca", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/302-000000ca", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/302-000000ca", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/302-000000ca", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/302-000000ca' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/302-000000ca'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/302-000000ca' in macro 'dialout-trunk'
== Spawn extension (from-internal, XXXXXXXXXX, 4) exited non-zero on 'SIP/302-000000ca'
-- Executing [h@from-internal:1] Macro("SIP/302-000000ca", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/302-000000ca", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/302-000000ca", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/302-000000ca", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/302-000000ca", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/302-000000ca' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/302-000000ca'
-- Stopped music on hold on SIP/302-000000ca
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Executing [XXXXXXXXXX@from-internal:1] Macro("SIP/302-000000ca", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/302-000000ca", "AMPUSER=302") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/302-000000ca", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/302-000000ca", "1?Set(REALCALLERIDNUM=302)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/302-000000ca", "AMPUSER=302") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/302-000000ca", "AMPUSERCIDNAME=302") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/302-000000ca", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/302-000000ca", "AMPUSERCID=302") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/302-000000ca", "CALLERID(all)="302" <302>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/302-000000ca", "1?Set(CHANNEL(language)=de)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/302-000000ca", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/302-000000ca", "Using CallerID "302" <302>") in new stack
-- Executing [XXXXXXXXXX@from-internal:2] Set("SIP/302-000000ca", "_NODEST=") in new stack
-- Executing [XXXXXXXXXX@from-internal:3] Macro("SIP/302-000000ca", "record-enable,302,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/302-000000ca", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/302-000000ca", "recordingcheck,20120427-123051,1335522651.202") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20120427-123051,1335522651.202: Outbound recording not enabled
-- <SIP/302-000000ca>AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/302-000000ca", "") in new stack
-- Executing [XXXXXXXXXX@from-internal:4] Macro("SIP/302-000000ca", "dialout-trunk,2,XXXXXXXXXX,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/302-000000ca", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/302-000000ca", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/302-000000ca", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/302-000000ca", "DIAL_NUMBER=XXXXXXXXXX") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/302-000000ca", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/302-000000ca", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/302-000000ca", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/302-000000ca", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/302-000000ca", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/302-000000ca", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/302-000000ca", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/302-000000ca", "0?Set(REALCALLERIDNUM=302)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/302-000000ca", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/302-000000ca", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/302-000000ca", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/302-000000ca", "TRUNKOUTCID=YYYYYYYYYY") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/302-000000ca", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/302-000000ca", "1?Set(CALLERID(all)=YYYYYYYYYY)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/302-000000ca", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/302-000000ca", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/302-000000ca", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern . matched. XXXXXXXXXX -> XXXXXXXXXX
-- <SIP/302-000000ca>AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/302-000000ca", "OUTNUM=XXXXXXXXXX") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/302-000000ca", "custom=SIP/YYYYYYYYYY") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/302-000000ca", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/302-000000ca", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/302-000000ca", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/302-000000ca", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/302-000000ca", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/302-000000ca", "SIP/YYYYYYYYYY/XXXXXXXXXX,300,") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Called YYYYYYYYYY/XXXXXXXXXX
-- SIP/YYYYYYYYYY-000000cb is making progress passing it to SIP/302-000000ca
-- SIP/YYYYYYYYYY-000000cb is making progress passing it to SIP/302-000000ca
-- SIP/YYYYYYYYYY-000000cb is ringing
-- SIP/YYYYYYYYYY-000000cb is making progress passing it to SIP/302-000000ca
-- SIP/YYYYYYYYYY-000000cb answered SIP/302-000000ca
-- Started music on hold, class 'default', on SIP/302-000000ca
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/302-000000ca", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/302-000000ca", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/302-000000ca", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/302-000000ca", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/302-000000ca", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/302-000000ca' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/302-000000ca'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/302-000000ca' in macro 'dialout-trunk'
== Spawn extension (from-internal, XXXXXXXXXX, 4) exited non-zero on 'SIP/302-000000ca'
-- Executing [h@from-internal:1] Macro("SIP/302-000000ca", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/302-000000ca", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/302-000000ca", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/302-000000ca", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/302-000000ca", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/302-000000ca' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/302-000000ca'
-- Stopped music on hold on SIP/302-000000ca
P.S. Интересовался на другом ресурсе, решений пока не найдено (
Гоогл не помогает, моск кипит. Яй нид хелп..
С уважением.