С номера 1002 вызываю 89211111111, далее на телефона нажимаю кнопку второй линии (в этот момент у 89211111111) и вызываю 1001, разговариваю с 1001, нажимаю на кнопку трансфер и далее нажимаю первую линию на телефоне, где висит 89211111111, после чего 1001 и 89211111111 разговаривают.
Но отловить момент трансфера не получается:
Код: Выделить всё
-- Executing [9211111111@from-phones:1] Set("SIP/1002-000000ae", "MONITOR_FILENAME=100151027_090744_2223344_out_9211111111") in new stack
-- Executing [9211111111@from-phones:2] MixMonitor("SIP/1002-000000ae", "/rec/100151027/100151027_090744_2223344_out_9211111111.wav,b") in new stack
-- Executing [9211111111@from-phones:3] Dial("SIP/1002-000000ae", "SIP/prov/9211111111") in new stack
-- Called SIP/prov/9211111111
== Begin MixMonitor Recording SIP/1002-000000ae
-- SIP/prov-000000af is making progress passing it to SIP/1002-000000ae
-- SIP/prov-000000af is making progress passing it to SIP/1002-000000ae
-- SIP/prov-000000af answered SIP/1002-000000ae
-- Started music on hold, class 'default', on SIP/prov-000000af
== Using SIP RTP CoS mark 5
-- Executing [1001@from-phones:1] Set("SIP/1002-000000b0", "__TRANSFER_CONTEXT=from-phones") in new stack
-- Executing [1001@from-phones:2] DumpChan("SIP/1002-000000b0", "") in new stack
Dumping Info For Channel: SIP/1002-000000b0:
================================================================================
Info:
Name= SIP/1002-000000b0
Type= SIP
UniqueID= 1445926084.189
LinkedID= 1445926084.189
CallerIDNum= 1002
CallerIDName= (N/A)
ConnectedLineIDNum= (N/A)
ConnectedLineIDName=(N/A)
DNIDDigits= 1001
RDNIS= (N/A)
Parkinglot= default
Language= ru
State= Ring (4)
Rings= 0
NativeFormat= 0x8 (alaw)
WriteFormat= 0x8 (alaw)
ReadFormat= 0x8 (alaw)
RawWriteFormat= 0x8 (alaw)
RawReadFormat= 0x8 (alaw)
WriteTranscode= No
ReadTranscode= No
1stFileDescriptor= 40
Framesin= 0
Framesout= 0
TimetoHangup= 0
ElapsedTime= 0h0m0s
DirectBridge= <none>
IndirectBridge= <none>
Context= from-phones
Extension= 1001
Priority= 6
CallGroup=
PickupGroup= 10
Application= DumpChan
Data= (Empty)
Blocking_in= (Not Blocking)
Variables:
TRANSFER_CONTEXT=from-phones
SIPCALLID=1124763820-5060-62@BJC.BGI.A.BEG
SIPDOMAIN=172.16.0.65
SIPURI=sip:1002@192.168.100.113:5060
================================================================================
-- Executing [1001@from-phones:3] Dial("SIP/1002-000000b0", "SIP/1001,60") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/1001
-- SIP/1001-000000b1 is ringing
-- SIP/1001-000000b1 answered SIP/1002-000000b0
-- Started music on hold, class 'default', on SIP/1001-000000b1
-- Stopped music on hold on SIP/prov-000000af
-- Stopped music on hold on SIP/1001-000000b1
-- Executing [h@from-phones:1] Set("SIP/1002-000000ae", "mytransf2=") in new stack
-- Executing [h@from-phones:2] DumpChan("SIP/1002-000000ae", "") in new stack
Dumping Info For Channel: SIP/1002-000000ae:
================================================================================
Info:
Name= SIP/1002-000000ae
Type= SIP
UniqueID= 1445926064.187
LinkedID= 1445926064.187
CallerIDNum= 2223344
CallerIDName= (N/A)
ConnectedLineIDNum= (N/A)
ConnectedLineIDName=(N/A)
DNIDDigits= 9211111111
RDNIS= (N/A)
Parkinglot= default
Language= ru
State= Up (6)
Rings= 0
NativeFormat= 0x8 (alaw)
WriteFormat= 0x8 (alaw)
ReadFormat= 0x8 (alaw)
RawWriteFormat= 0x8 (alaw)
RawReadFormat= 0x8 (alaw)
WriteTranscode= No
ReadTranscode= No
1stFileDescriptor= 26
Framesin= 468
Framesout= 1008
TimetoHangup= 0
ElapsedTime= 0h0m26s
DirectBridge= <none>
IndirectBridge= <none>
Context= from-phones
Extension= h
Priority= 3
CallGroup=
PickupGroup= 10
Application= DumpChan
Data= (Empty)
Blocking_in= (Not Blocking)
Variables:
mytransf2=
DIALEDTIME=26
ANSWEREDTIME=15
RTPAUDIOQOSRTT=minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
RTPAUDIOQOSLOSS=minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
RTPAUDIOQOSJITTER=minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
RTPAUDIOQOS=ssrc=1590567955;themssrc=1170560237;lp=0;rxjitter=0.000000;rxcount=168;txjitter=0.000718;txcount=456;rlp=0;rtt=0.000000
RTPAUDIOQOSRTTBRIDGED=minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
RTPAUDIOQOSLOSSBRIDGED=minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
RTPAUDIOQOSJITTERBRIDGED=minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
RTPAUDIOQOSBRIDGED=ssrc=667118860;themssrc=348916793;lp=0;rxjitter=0.000000;rxcount=143;txjitter=0.000800;txcount=145;rlp=0;rtt=0.000000
BRIDGEPVTCALLID=3ed5535f4312e5224f81880004bd9126@vpbx400025024.mangosip.ru
BRIDGEPEER=SIP/prov-000000af
DIALEDPEERNUMBER=prov/9211111111
DIALEDPEERNAME=SIP/prov-000000af
DIALSTATUS=ANSWER
MIXMONITOR_FILENAME=/rec/100151027/100151027_090744_2223344_out_9211111111.wav
MONITOR_FILENAME=100151027_090744_2223344_out_9211111111
DB_RESULT=2223344
SIPCALLID=424696546-5060-61@BJC.BGI.A.BEG
SIPDOMAIN=172.16.0.65
SIPURI=sip:1002@192.168.0.113:5060
================================================================================
-- Executing [h@from-phones:3] Set("SIP/1002-000000ae", "mytransf=") in new stack
-- Executing [h@from-phones:4] GotoIf("SIP/1002-000000ae", "0?norec") in new stack
-- Goto (from-phones,h,6)
-- Executing [h@from-phones:6] Set("SIP/1002-000000ae", "mytransf2=") in new stack
-- Executing [h@from-phones:7] Set("SIP/1002-000000ae", "mytransf=") in new stack
-- Executing [h@from-phones:8] GotoIf("SIP/1002-000000ae", "0?norec") in new stack
-- Executing [h@from-phones:9] Set("SIP/1002-000000ae", "var=1002") in new stack
-- Executing [h@from-phones:10] System("SIP/1002-000000ae", "/bin/php /bin/rec.php 100151027_090744_2223344_out_9211111111 1002 ") in new stack
== Spawn extension (from-phones, 9211111111, 4) exited non-zero on 'SIP/1002-000000ae'
== MixMonitor close filestream
== End MixMonitor Recording SIP/1002-000000ae
-- Executing [h@from-phones:1] Set("SIP/prov-000000af", "mytransf2=") in new stack
-- Executing [h@from-phones:2] DumpChan("SIP/prov-000000af", "") in new stack
Dumping Info For Channel: SIP/prov-000000af:
================================================================================
Info:
Name= SIP/prov-000000af
Type= SIP
UniqueID= 1445926084.189
LinkedID= 1445926064.187
CallerIDNum= 9211111111
CallerIDName= (N/A)
ConnectedLineIDNum= (N/A)
ConnectedLineIDName=(N/A)
DNIDDigits= (N/A)
RDNIS= (N/A)
Parkinglot= default
Language= ru
State= Up (6)
Rings= 0
NativeFormat= 0x8 (alaw)
WriteFormat= 0x8 (alaw)
ReadFormat= 0x8 (alaw)
RawWriteFormat= 0x8 (alaw)
RawReadFormat= 0x8 (alaw)
WriteTranscode= No
ReadTranscode= No
1stFileDescriptor= 32
Framesin= 383
Framesout= 420
TimetoHangup= 0
ElapsedTime= 0h0m11s
DirectBridge= <none>
IndirectBridge= <none>
Context= from-phones
Extension= h
Priority= 3
CallGroup=
PickupGroup= 10
Application= DumpChan
Data= (Empty)
Blocking_in= (Not Blocking)
Variables:
mytransf2=
DIALEDTIME=31
ANSWEREDTIME=20
RTPAUDIOQOSRTT=minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
RTPAUDIOQOSLOSS=minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
RTPAUDIOQOSJITTER=minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
RTPAUDIOQOS=ssrc=10525182;themssrc=1393472386;lp=0;rxjitter=0.000000;rxcount=1241;txjitter=0.000178;txcount=1246;rlp=0;rtt=0.000000
RTPAUDIOQOSRTTBRIDGED=minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
RTPAUDIOQOSLOSSBRIDGED=minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
RTPAUDIOQOSJITTERBRIDGED=minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
RTPAUDIOQOSBRIDGED=ssrc=1425887824;themssrc=1438032134;lp=0;rxjitter=0.000000;rxcount=420;txjitter=0.000902;txcount=418;rlp=0;rtt=0.000000
BRIDGEPVTCALLID=39292bac1dc9455074fbcea316f76f68@172.16.0.65:5060
BRIDGEPEER=SIP/1001-000000b1
DIALEDPEERNUMBER=1001
DIALEDPEERNAME=SIP/1001-000000b1
DIALSTATUS=ANSWER
TRANSFER_CONTEXT=from-phones
SIPCALLID=1124763820-5060-62@BJC.BGI.A.BEG
SIPDOMAIN=172.16.0.65
SIPURI=sip:1002@192.168.0.146:5060
SIPREFERREDBYHDR=<sip:1002@172.16.0.65>
SIPREFERRINGCONTEXT=from-phones
BRIDGEPVTCALLID=424696546-5060-61@BJC.BGI.A.BEG
BRIDGEPEER=SIP/1002-000000ae
DIALEDPEERNUMBER=prov/9211111111
SIPCALLID=3ed5535f4312e5224f81880004bd9126@vpbx400025024.mangosip.ru
================================================================================
-- Executing [h@from-phones:3] Set("SIP/prov-000000af", "mytransf=") in new stack
-- Executing [h@from-phones:4] GotoIf("SIP/prov-000000af", "0?norec") in new stack
-- Executing [h@from-phones:5] GotoIf("SIP/prov-000000af", "1?answer") in new stack
-- Goto (from-phones,h,7)
-- Executing [h@from-phones:7] Set("SIP/prov-000000af", "mytransf2=") in new stack
-- Executing [h@from-phones:8] Set("SIP/prov-000000af", "mytransf=") in new stack
-- Executing [h@from-phones:9] GotoIf("SIP/prov-000000af", "0?norec") in new stack
-- Executing [h@from-phones:10] Set("SIP/prov-000000af", "var=1002") in new stack
-- Executing [h@from-phones:11] System("SIP/prov-000000af", "/bin/php /bin/rec.php 1002 ") in new stack
-- Executing [h@from-phones:12] NoOp("SIP/prov-000000af", "===No Stop Rec===") in new stack
== Spawn extension (from-phones, 1001, 7) exited non-zero on 'SIP/prov-000000af'