login as: root
root@192.168.4.150's password:
root@TG400:~# asterisk -rcvvvv
Asterisk 1.6.2.6, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
Setting max files open to 2048
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.6 currently running on TG400 (pid = 1356)
Verbosity is at least 4
5:<< \r\nOK\r\n
                5:<<< 0 ATA -- OK , 2
gsm_module.c:3855 module_receive: call 1 on channel 1/5 enters state 10 (Active)
5:<< \r\n+CSQN: 25,0\r\n
                5:<<< 0 ATA -- +CSQN: 25,0 , 11
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATH -- RING , 4
                3:<<< 1 ATH -- +CLIP: "0702906256",161,"",0,"",0 , 33
gsm_module.c:3786 module_receive: call 14 on channel -1/3 enters state 6 (Call Present)
gsm.c:2362 gsm_need_more_info: call 14 on channel 1/3 enters state 25 (Overlap Receiving)
    -- Accepting overlap call from '0702906256' to 's' on channel 1, span 3
    -- Starting simple switch on 'YSGSM/3-1'
5:<< \r\n+CSQN: 24,0\r\n
                5:<<< 0 ATA -- +CSQN: 24,0 , 11
5:<< \rLI> gsmd
5:<< \nNO CARRIER\r\n
                5:<<< 0 ATA -- NO CARRIER , 10
5:>> AT+CLCC
    -- Executing [s@from-gsm3:1] Macro("YSGSM/3-1", "Routein_GSM_IP_0559620791,0,s") in new st                                                               ack
    -- Executing [s@macro-Routein_GSM_IP_0559620791:1] Set("YSGSM/3-1", "CDR(userfield)=GSM->I                                                               P") in new stack
    -- Executing [s@macro-Routein_GSM_IP_0559620791:2] GotoIf("YSGSM/3-1", "0?Blacklist-Handle                                                               ,s,1") in new stack
    -- Executing [s@macro-Routein_GSM_IP_0559620791:3] Goto("YSGSM/3-1", "Routeout_GSM_IP_0559                                                               620791,0559620791,1") in new stack
    -- Goto (Routeout_GSM_IP_0559620791,0559620791,1)
  == Channel 'YSGSM/3-1' jumping out of macro 'Routein_GSM_IP_0559620791'
    -- Executing [0559620791@Routeout_GSM_IP_0559620791:1] Set("YSGSM/3-1", "ORGINEXTEN=055962                                                               0791") in new stack
    -- Executing [0559620791@Routeout_GSM_IP_0559620791:2] Set("YSGSM/3-1", "ORGINCONTEXT=Rout                                                               eout_GSM_IP_0559620791") in new stack
    -- Executing [0559620791@Routeout_GSM_IP_0559620791:3] NoOp("YSGSM/3-1", "It is not module                                                                or trunk group") in new stack
    -- Executing [0559620791@Routeout_GSM_IP_0559620791:4] Macro("YSGSM/3-1", "trunkdial-failo                                                               ver-0.4,1,,0559620791,trunk-0559620791,") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:1] NoOp("YSGSM/3-1", "do call out") in new st                                                               ack
    -- Executing [s@macro-trunkdial-failover-0.4:2] GotoIf("YSGSM/3-1", "0?Blacklist-Handle,s,                                                               1") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:3] GotoIf("YSGSM/3-1", "0?4:5") in new stack
    -- Goto (macro-trunkdial-failover-0.4,s,5)
    -- Executing [s@macro-trunkdial-failover-0.4:5] Set("YSGSM/3-1", "TCOUNT=4") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:6] GotoIf("YSGSM/3-1", "0?7:10") in new stack
    -- Goto (macro-trunkdial-failover-0.4,s,10)
    -- Executing [s@macro-trunkdial-failover-0.4:10] Set("YSGSM/3-1", "BEGINCOUNT=4") in new s                                                               tack
    -- Executing [s@macro-trunkdial-failover-0.4:11] Set("YSGSM/3-1", "OldCallerID=0702906256"                                                               ) in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:12] Set("YSGSM/3-1", "OldCallerName=070290625                                                               6") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:13] Set("YSGSM/3-1", "TOUCH_MONITOR=070290625                                                               6-0559620791") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:14] NoOp("YSGSM/3-1", "") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:15] Set("YSGSM/3-1", "DLSTAT=UNKNOW}") in new                                                                stack
    -- Executing [s@macro-trunkdial-failover-0.4:16] SetCktCustom("YSGSM/3-1", "sendrpid,no,no                                                               ") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:17] GotoIf("YSGSM/3-1", "1>0?1-dial,3") in ne                                                               w stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,3)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:3] GotoIf("YSGSM/3-1", "0?4:19") in new                                                                stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,19)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:19] Set("YSGSM/3-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:20] Set("YSGSM/3-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:21] Set("YSGSM/3-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:22] Set("YSGSM/3-1", "TIMEOUT(absolute)=                                                               1800") in new stack
Channel will hangup at 2010-12-11 05:17:00.425 GMT-6.
    -- Executing [1-dial@macro-trunkdial-failover-0.4:23] GotoIf("YSGSM/3-1", "0?24:28") in ne                                                               w stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,28)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:28] GotoIf("YSGSM/3-1", "0?1-out,1") in                                                                new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:29] GotoIf("YSGSM/3-1", "0?setdod,1:1-di                                                               al,30") in new stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,30)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:30] Set("YSGSM/3-1", "CALLERID(name)=070                                                               2906256") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:31] Set("YSGSM/3-1", "CALLERID(num)=0702                                                               906256") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:32] Set("YSGSM/3-1", "_SIPSRTP=") in new                                                                stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:33] Set("YSGSM/3-1", "OUTDIALOPT=tTkKWwX                                                               x") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:34] Set("YSGSM/3-1", "TMPTRUNK=trunk-055                                                               9620791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:35] Set("YSGSM/3-1", "DIALNUMBER=0559620                                                               791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:36] Set("YSGSM/3-1", "DIALNUMBER=/055962                                                               0791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:37] Set("YSGSM/3-1", "DIALNUMBER=/055962                                                               0791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:38] Set("YSGSM/3-1", "ACCOUNT_RINGTIME="                                                               ) in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:39] Dial("YSGSM/3-1", "SIP/trunk-0559620                                                               791/0559620791,,tTkKWwXx") 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 4
    -- Called trunk-0559620791/0559620791
5:<< \r\nOK\r\n
                5:<<< 0 AT+CLCC -- OK , 2
5:>> AT+CSQ
gsm_module.c:3933 module_receive: call 1 on channel 1/5 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
[2010-12-11 04:47:00] NOTICE[1394]: chan_ysgsm.c:5657 get_gsm_sip_status: gsm-sip-status is No                                                               rmal Hang Up
[2010-12-11 04:47:00] NOTICE[1394]: chan_ysgsm.c:7057 gsm_dchannel: hangupcause=16      ======                                                               ==state=6
    -- Channel 1, span 5 got hangup, cause 16
    -- Channel 1, span 5 received AOC-E charging 2479792 units
    -- Executing [h@macro-trunkdial-failover-0.4:1] GotoIf("YSGSM/7-1", "0?2:8") in new stack
    -- Goto (macro-trunkdial-failover-0.4,h,8)
    -- Executing [h@macro-trunkdial-failover-0.4:8] GotoIf("YSGSM/7-1", "0?9:17") in new stack
    -- Goto (macro-trunkdial-failover-0.4,h,17)
    -- SIP/trunk-0559620791-0000011f answered YSGSM/3-1
gsm.c:2385 gsm_answer: call 14 on channel 1/3 enters state 8 (Connect Request)
3:>> ATAI> gsm
  == Spawn extension (macro-trunkdial-failover-0.4, 1-dial, 39) exited non-zero on 'YSGSM/7-1'                                                                in macro 'trunkdial-failover-0.4'
  == Spawn extension (Routeout_GSM_IP_0709620791, 0709620791, 4) exited non-zero on 'YSGSM/7-1                                                               '
    -- Hungup 'YSGSM/7-1'
5:<< \r\n+CSQ: 24,0\r\n\r\nOK\r\n
-- Making new call for cr 1
                5:<<< 0 AT+CSQ -- +CSQ: 24,0 , 10
                5:<<< 1 AT+CSQ -- OK , 2
3:<< \r\nOK\r\n
                3:<<< 0 ATA -- OK , 2
gsm_module.c:3855 module_receive: call 14 on channel 1/3 enters state 10 (Active)
3:<< \r\n+CSQN: 20,0\r\n
                3:<<< 0 ATA -- +CSQN: 20,0 , 11
3:<< \r\n+CSQN: 21,0\r\nn
                3:<<< 0 ATA -- +CSQN: 21,0 , 11
TG400*CLI> gsm debug span all
Enabled debugging on span all
    -- Executing [h@macro-trunkdial-failover-0.4:1] GotoIf("YSGSM/3-1", "0?2:8") in new stack
    -- Goto (macro-trunkdial-failover-0.4,h,8)
    -- Executing [h@macro-trunkdial-failover-0.4:8] GotoIf("YSGSM/3-1", "0?9:17") in new stack
    -- Goto (macro-trunkdial-failover-0.4,h,17)
  == Spawn extension (macro-trunkdial-failover-0.4, 1-dial, 39) exited non-zero on 'YSGSM/3-1'                                                                in macro 'trunkdial-failover-0.4'
  == Spawn extension (Routeout_GSM_IP_0559620791, 0559620791, 4) exited non-zero on 'YSGSM/3-1                                                               '
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Active, peerstate Active
gsm.c:344 gsm_call_disconnect: call 14 on channel 1/3 enters state 11 (Disconnect Request)
3:>> ATHI>
    -- Hungup 'YSGSM/3-1'
3:<< \r\nOK\r\n
                3:<<< 0 ATH -- OK , 2
gsm_module.c:3980 module_receive: call 14 on channel 1/3 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
    -- Channel 1, span 3 received AOC-E charging 2551552 units
5:<< \r\n+CSQN: 25,0\r\n
                5:<<< 0 AT+CSQ -- +CSQN: 25,0 , 11
3:<< \r\nRING\r\n\r\n+CLIP: "0555141000",129,"",0,"",0\r\n
-- Making new call for cr 14
                3:<<< 0 ATH -- RING , 4
                3:<<< 1 ATH -- +CLIP: "0555141000",129,"",0,"",0 , 33
gsm_module.c:3786 module_receive: call 14 on channel -1/3 enters state 6 (Call Present)
gsm.c:2362 gsm_need_more_info: call 14 on channel 1/3 enters state 25 (Overlap Receiving)
    -- Accepting overlap call from '0555141000' to 's' on channel 1, span 3
    -- Starting simple switch on 'YSGSM/3-1'
5:<< \r\n+CSQN: 30,0\r\n
                5:<<< 0 AT+CSQ -- +CSQN: 30,0 , 11
5:<< \r\nRING\r\n\r\n
                5:<<< 0 AT+CSQ -- RING , 4
5:<< +CLIP: "0776100503",161,"",0,"",0\r\n
                5:<<< 0 AT+CSQ -- +CLIP: "0776100503",161,"",0,"",0 , 33
gsm_module.c:3786 module_receive: call 1 on channel -1/5 enters state 6 (Call Present)
gsm.c:2362 gsm_need_more_info: call 1 on channel 1/5 enters state 25 (Overlap Receiving)
    -- Accepting overlap call from '0776100503' to 's' on channel 1, span 5
    -- Starting simple switch on 'YSGSM/7-1'
3:<< \r\n+CSQN: 20,0\r\n
                3:<<< 0 ATH -- +CSQN: 20,0 , 11
    -- Executing [s@from-gsm3:1] Macro("YSGSM/3-1", "Routein_GSM_IP_0559620791,0,s") in new st                                                               ack
    -- Executing [s@macro-Routein_GSM_IP_0559620791:1] Set("YSGSM/3-1", "CDR(userfield)=GSM->I                                                               P") in new stack
    -- Executing [s@macro-Routein_GSM_IP_0559620791:2] GotoIf("YSGSM/3-1", "0?Blacklist-Handle                                                               ,s,1") in new stack
    -- Executing [s@macro-Routein_GSM_IP_0559620791:3] Goto("YSGSM/3-1", "Routeout_GSM_IP_0559                                                               620791,0559620791,1") in new stack
    -- Goto (Routeout_GSM_IP_0559620791,0559620791,1)
  == Channel 'YSGSM/3-1' jumping out of macro 'Routein_GSM_IP_0559620791'
    -- Executing [0559620791@Routeout_GSM_IP_0559620791:1] Set("YSGSM/3-1", "ORGINEXTEN=055962                                                               0791") in new stack
    -- Executing [0559620791@Routeout_GSM_IP_0559620791:2] Set("YSGSM/3-1", "ORGINCONTEXT=Rout                                                               eout_GSM_IP_0559620791") in new stack
    -- Executing [0559620791@Routeout_GSM_IP_0559620791:3] NoOp("YSGSM/3-1", "It is not module                                                                or trunk group") in new stack
    -- Executing [0559620791@Routeout_GSM_IP_0559620791:4] Macro("YSGSM/3-1", "trunkdial-failo                                                               ver-0.4,1,,0559620791,trunk-0559620791,") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:1] NoOp("YSGSM/3-1", "do call out") in new st                                                               ack
    -- Executing [s@macro-trunkdial-failover-0.4:2] GotoIf("YSGSM/3-1", "0?Blacklist-Handle,s,                                                               1") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:3] GotoIf("YSGSM/3-1", "0?4:5") in new stack
    -- Goto (macro-trunkdial-failover-0.4,s,5)
    -- Executing [s@macro-trunkdial-failover-0.4:5] Set("YSGSM/3-1", "TCOUNT=4") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:6] GotoIf("YSGSM/3-1", "0?7:10") in new stack
    -- Goto (macro-trunkdial-failover-0.4,s,10)
    -- Executing [s@macro-trunkdial-failover-0.4:10] Set("YSGSM/3-1", "BEGINCOUNT=4") in new s                                                               tack
    -- Executing [s@macro-trunkdial-failover-0.4:11] Set("YSGSM/3-1", "OldCallerID=0555141000"                                                               ) in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:12] Set("YSGSM/3-1", "OldCallerName=055514100                                                               0") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:13] Set("YSGSM/3-1", "TOUCH_MONITOR=055514100                                                               0-0559620791") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:14] NoOp("YSGSM/3-1", "") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:15] Set("YSGSM/3-1", "DLSTAT=UNKNOW}") in new                                                                stack
    -- Executing [s@macro-trunkdial-failover-0.4:16] SetCktCustom("YSGSM/3-1", "sendrpid,no,no                                                               ") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:17] GotoIf("YSGSM/3-1", "1>0?1-dial,3") in ne                                                               w stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,3)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:3] GotoIf("YSGSM/3-1", "0?4:19") in new                                                                stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,19)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:19] Set("YSGSM/3-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:20] Set("YSGSM/3-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:21] Set("YSGSM/3-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:22] Set("YSGSM/3-1", "TIMEOUT(absolute)=                                                               1800") in new stack
Channel will hangup at 2010-12-11 05:17:29.344 GMT-6.
    -- Executing [1-dial@macro-trunkdial-failover-0.4:23] GotoIf("YSGSM/3-1", "0?24:28") in ne                                                               w stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,28)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:28] GotoIf("YSGSM/3-1", "0?1-out,1") in                                                                new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:29] GotoIf("YSGSM/3-1", "0?setdod,1:1-di                                                               al,30") in new stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,30)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:30] Set("YSGSM/3-1", "CALLERID(name)=055                                                               5141000") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:31] Set("YSGSM/3-1", "CALLERID(num)=0555                                                               141000") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:32] Set("YSGSM/3-1", "_SIPSRTP=") in new                                                                stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:33] Set("YSGSM/3-1", "OUTDIALOPT=tTkKWwX                                                               x") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:34] Set("YSGSM/3-1", "TMPTRUNK=trunk-055                                                               9620791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:35] Set("YSGSM/3-1", "DIALNUMBER=0559620                                                               791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:36] Set("YSGSM/3-1", "DIALNUMBER=/055962                                                               0791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:37] Set("YSGSM/3-1", "DIALNUMBER=/055962                                                               0791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:38] Set("YSGSM/3-1", "ACCOUNT_RINGTIME="                                                               ) in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:39] Dial("YSGSM/3-1", "SIP/trunk-0559620                                                               791/0559620791,,tTkKWwXx") 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 4
    -- Called trunk-0559620791/0559620791
    -- SIP/trunk-0559620791-00000120 answered YSGSM/3-1
gsm.c:2385 gsm_answer: call 14 on channel 1/3 enters state 8 (Connect Request)
3:>> ATAI>
3:<< \r\nOK\r\n
                3:<<< 0 ATA -- OK , 2
gsm_module.c:3855 module_receive: call 14 on channel 1/3 enters state 10 (Active)
5:<< \r\n+CSQN: 31,0\r\n
                5:<<< 0 AT+CSQ -- +CSQN: 31,0 , 11
3:<< \r\n+CSQN: 21,0\r\n
                3:<<< 0 ATA -- +CSQN: 21,0 , 11
    -- Executing [s@from-gsm7:1] Macro("YSGSM/7-1", "Routein_GSM_IP_0709620791,0,s") in new st                                                               ack
    -- Executing [s@macro-Routein_GSM_IP_0709620791:1] Set("YSGSM/7-1", "CDR(userfield)=GSM->I                                                               P") in new stack
    -- Executing [s@macro-Routein_GSM_IP_0709620791:2] GotoIf("YSGSM/7-1", "0?Blacklist-Handle                                                               ,s,1") in new stack
    -- Executing [s@macro-Routein_GSM_IP_0709620791:3] Goto("YSGSM/7-1", "Routeout_GSM_IP_0709                                                               620791,0709620791,1") in new stack
    -- Goto (Routeout_GSM_IP_0709620791,0709620791,1)
  == Channel 'YSGSM/7-1' jumping out of macro 'Routein_GSM_IP_0709620791'
    -- Executing [0709620791@Routeout_GSM_IP_0709620791:1] Set("YSGSM/7-1", "ORGINEXTEN=070962                                                               0791") in new stack
    -- Executing [0709620791@Routeout_GSM_IP_0709620791:2] Set("YSGSM/7-1", "ORGINCONTEXT=Rout                                                               eout_GSM_IP_0709620791") in new stack
    -- Executing [0709620791@Routeout_GSM_IP_0709620791:3] NoOp("YSGSM/7-1", "It is not module                                                                or trunk group") in new stack
    -- Executing [0709620791@Routeout_GSM_IP_0709620791:4] Macro("YSGSM/7-1", "trunkdial-failo                                                               ver-0.4,1,,0709620791,trunk-0709620791,") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:1] NoOp("YSGSM/7-1", "do call out") in new st                                                               ack
    -- Executing [s@macro-trunkdial-failover-0.4:2] GotoIf("YSGSM/7-1", "0?Blacklist-Handle,s,                                                               1") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:3] GotoIf("YSGSM/7-1", "0?4:5") in new stack
    -- Goto (macro-trunkdial-failover-0.4,s,5)
    -- Executing [s@macro-trunkdial-failover-0.4:5] Set("YSGSM/7-1", "TCOUNT=4") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:6] GotoIf("YSGSM/7-1", "0?7:10") in new stack
    -- Goto (macro-trunkdial-failover-0.4,s,10)
    -- Executing [s@macro-trunkdial-failover-0.4:10] Set("YSGSM/7-1", "BEGINCOUNT=4") in new s                                                               tack
    -- Executing [s@macro-trunkdial-failover-0.4:11] Set("YSGSM/7-1", "OldCallerID=0776100503"                                                               ) in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:12] Set("YSGSM/7-1", "OldCallerName=077610050                                                               3") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:13] Set("YSGSM/7-1", "TOUCH_MONITOR=077610050                                                               3-0709620791") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:14] NoOp("YSGSM/7-1", "") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:15] Set("YSGSM/7-1", "DLSTAT=UNKNOW}") in new                                                                stack
    -- Executing [s@macro-trunkdial-failover-0.4:16] SetCktCustom("YSGSM/7-1", "sendrpid,no,no                                                               ") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:17] GotoIf("YSGSM/7-1", "1>0?1-dial,3") in ne                                                               w stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,3)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:3] GotoIf("YSGSM/7-1", "0?4:19") in new                                                                stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,19)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:19] Set("YSGSM/7-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:20] Set("YSGSM/7-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:21] Set("YSGSM/7-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:22] Set("YSGSM/7-1", "TIMEOUT(absolute)=                                                               1800") in new stack
Channel will hangup at 2010-12-11 05:17:31.282 GMT-6.
    -- Executing [1-dial@macro-trunkdial-failover-0.4:23] GotoIf("YSGSM/7-1", "0?24:28") in ne                                                               w stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,28)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:28] GotoIf("YSGSM/7-1", "0?1-out,1") in                                                                new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:29] GotoIf("YSGSM/7-1", "0?setdod,1:1-di                                                               al,30") in new stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,30)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:30] Set("YSGSM/7-1", "CALLERID(name)=077                                                               6100503") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:31] Set("YSGSM/7-1", "CALLERID(num)=0776                                                               100503") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:32] Set("YSGSM/7-1", "_SIPSRTP=") in new                                                                stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:33] Set("YSGSM/7-1", "OUTDIALOPT=tTkKWwX                                                               x") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:34] Set("YSGSM/7-1", "TMPTRUNK=trunk-070                                                               9620791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:35] Set("YSGSM/7-1", "DIALNUMBER=0709620                                                               791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:36] Set("YSGSM/7-1", "DIALNUMBER=/070962                                                               0791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:37] Set("YSGSM/7-1", "DIALNUMBER=/070962                                                               0791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:38] Set("YSGSM/7-1", "ACCOUNT_RINGTIME="                                                               ) in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:39] Dial("YSGSM/7-1", "SIP/trunk-0709620                                                               791/0709620791,,tTkKWwXx") 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 4
    -- Called trunk-0709620791/0709620791
    -- SIP/trunk-0709620791-00000121 answered YSGSM/7-1
gsm.c:2385 gsm_answer: call 1 on channel 1/5 enters state 8 (Connect Request)
5:>> ATAI>
5:<< \r\nOK\r\n
                5:<<< 0 ATA -- OK , 2
gsm_module.c:3855 module_receive: call 1 on channel 1/5 enters state 10 (Active)
5:<< \r\n+CSQN: 29,0\r\n
                5:<<< 0 ATA -- +CSQN: 29,0 , 11
5:<< \r\n+CSQN: 28,0\r\n
                5:<<< 0 ATA -- +CSQN: 28,0 , 11
3:<< \r\n+CSQN: 20,0\r\n
                3:<<< 0 ATA -- +CSQN: 20,0 , 11
5:<< \r\n+CSQN: 27,0\r\n
                5:<<< 0 ATA -- +CSQN: 27,0 , 11
3:<< \r\nNO CARRIER\r\n
                3:<<< 0 ATA -- NO CARRIER , 10
5:<< \r\n+CSQN: 26,0\r\n
                5:<<< 0 ATA -- +CSQN: 26,0 , 11
5:<< \r\n+CSQN: 22,0\r\n
                5:<<< 0 ATA -- +CSQN: 22,0 , 11
3:<< \r\n+CSQN: 21,0\r\n
                3:<<< 0 ATA -- +CSQN: 21,0 , 11
5:<< \r\n+CSQN: 21,0\r\n
                5:<<< 0 ATA -- +CSQN: 21,0 , 11
5:<< \r\n+CSQN: 20,0\r\n
                5:<<< 0 ATA -- +CSQN: 20,0 , 11
5:<< \r\n+CSQN: 19,0\r\n
                5:<<< 0 ATA -- +CSQN: 19,0 , 11
5:<< \r\n+CSQN: 21,0\r\n
                5:<<< 0 ATA -- +CSQN: 21,0 , 11
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
3:<< \r\n+CSQN: 20,0\r\n
                3:<<< 0 ATA -- +CSQN: 20,0 , 11
3:<< \r\nRING\r\n
                3:<<< 0 ATA -- RING , 4
3:<< \r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
5:<< \r\n+CSQN: 24,3\r\n
                5:<<< 0 ATA -- +CSQN: 24,3 , 11
5:<< \r\n+CSQN: 27,2\r\n
                5:<<< 0 ATA -- +CSQN: 27,2 , 11
3:<< \rLI>
3:<< \nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
5:<< \r\n+CSQN: 25,1\r\n
                5:<<< 0 ATA -- +CSQN: 25,1 , 11
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
5:<< \r\nNO CARRIER\r\n
                5:<<< 0 ATA -- NO CARRIER , 10
5:>> AT+CLCC
5:<< \r\nOK\r\n
                5:<<< 0 AT+CLCC -- OK , 2
5:>> AT+CSQ
gsm_module.c:3933 module_receive: call 1 on channel 1/5 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
[2010-12-11 04:48:16] NOTICE[1394]: chan_ysgsm.c:5657 get_gsm_sip_status: gsm-sip-status is No                                                               rmal Hang Up
[2010-12-11 04:48:16] NOTICE[1394]: chan_ysgsm.c:7057 gsm_dchannel: hangupcause=16      ======                                                               ==state=6
    -- Channel 1, span 5 got hangup, cause 16
    -- Channel 1, span 5 received AOC-E charging 2506776 units
    -- Executing [h@macro-trunkdial-failover-0.4:1] GotoIf("YSGSM/7-1", "0?2:8") in new stack
    -- Goto (macro-trunkdial-failover-0.4,h,8)
    -- Executing [h@macro-trunkdial-failover-0.4:8] GotoIf("YSGSM/7-1", "0?9:17") in new stack
    -- Goto (macro-trunkdial-failover-0.4,h,17)
  == Spawn extension (macro-trunkdial-failover-0.4, 1-dial, 39) exited non-zero on 'YSGSM/7-1'                                                                in macro 'trunkdial-failover-0.4'
  == Spawn extension (Routeout_GSM_IP_0709620791, 0709620791, 4) exited non-zero on 'YSGSM/7-1                                                               '
    -- Hungup 'YSGSM/7-1'
5:<< \r\n+CSQ: 25,1\r\n\r\nOK\r\n
-- Making new call for cr 1
                5:<<< 0 AT+CSQ -- +CSQ: 25,1 , 10
                5:<<< 1 AT+CSQ -- OK , 2
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
3:<< \r\n+CSQN: 21,0\r\n
                3:<<< 0 ATA -- +CSQN: 21,0 , 11
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
3:<< \r\n+CSQN: 20,0\r\n
                3:<<< 0 ATA -- +CSQN: 20,0 , 11
3:<< \rLI>
3:<< \nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
3:<< \r\n+CSQN: 21,0\r\n
                3:<<< 0 ATA -- +CSQN: 21,0 , 11
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
3:<< \r\n+CSQN: 20,0\r\n
                3:<<< 0 ATA -- +CSQN: 20,0 , 11
3:<< \rLI>
3:<< \nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
3:<< \r\nRING\r
                3:<<< 0 ATA -- RING , 4
4:<< \r\n>
3:<< \n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
4:<< RING\r\n\r\n+CLIP: "0776100503",161,"",0,"",0\r\n
                4:<<< 0 AT+CSQ -- RING , 4
                4:<<< 1 AT+CSQ -- +CLIP: "0776100503",161,"",0,"",0 , 33
gsm_module.c:3786 module_receive: call 1 on channel -1/4 enters state 6 (Call Present)
gsm.c:2362 gsm_need_more_info: call 1 on channel 1/4 enters state 25 (Overlap Receiving)
    -- Accepting overlap call from '0776100503' to 's' on channel 1, span 4
    -- Starting simple switch on 'YSGSM/5-1'
4:<< \r\n+CSQN: 28,0\r\n
                4:<<< 0 AT+CSQ -- +CSQN: 28,0 , 11
    -- Executing [s@from-gsm5:1] Macro("YSGSM/5-1", "Routein_GSM_IP_0776620791,0,s") in new st                                                               ack
    -- Executing [s@macro-Routein_GSM_IP_0776620791:1] Set("YSGSM/5-1", "CDR(userfield)=GSM->I                                                               P") in new stack
    -- Executing [s@macro-Routein_GSM_IP_0776620791:2] GotoIf("YSGSM/5-1", "0?Blacklist-Handle                                                               ,s,1") in new stack
    -- Executing [s@macro-Routein_GSM_IP_0776620791:3] Goto("YSGSM/5-1", "Routeout_GSM_IP_0776                                                               620791,0776620791,1") in new stack
    -- Goto (Routeout_GSM_IP_0776620791,0776620791,1)
  == Channel 'YSGSM/5-1' jumping out of macro 'Routein_GSM_IP_0776620791'
    -- Executing [0776620791@Routeout_GSM_IP_0776620791:1] Set("YSGSM/5-1", "ORGINEXTEN=077662                                                               0791") in new stack
    -- Executing [0776620791@Routeout_GSM_IP_0776620791:2] Set("YSGSM/5-1", "ORGINCONTEXT=Rout                                                               eout_GSM_IP_0776620791") in new stack
    -- Executing [0776620791@Routeout_GSM_IP_0776620791:3] NoOp("YSGSM/5-1", "It is not module                                                                or trunk group") in new stack
    -- Executing [0776620791@Routeout_GSM_IP_0776620791:4] Macro("YSGSM/5-1", "trunkdial-failo                                                               ver-0.4,1,,0776620791,trunk-0776620791,") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:1] NoOp("YSGSM/5-1", "do call out") in new st                                                               ack
    -- Executing [s@macro-trunkdial-failover-0.4:2] GotoIf("YSGSM/5-1", "0?Blacklist-Handle,s,                                                               1") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:3] GotoIf("YSGSM/5-1", "0?4:5") in new stack
    -- Goto (macro-trunkdial-failover-0.4,s,5)
    -- Executing [s@macro-trunkdial-failover-0.4:5] Set("YSGSM/5-1", "TCOUNT=4") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:6] GotoIf("YSGSM/5-1", "0?7:10") in new stack
    -- Goto (macro-trunkdial-failover-0.4,s,10)
    -- Executing [s@macro-trunkdial-failover-0.4:10] Set("YSGSM/5-1", "BEGINCOUNT=4") in new s                                                               tack
    -- Executing [s@macro-trunkdial-failover-0.4:11] Set("YSGSM/5-1", "OldCallerID=0776100503"                                                               ) in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:12] Set("YSGSM/5-1", "OldCallerName=077610050                                                               3") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:13] Set("YSGSM/5-1", "TOUCH_MONITOR=077610050                                                               3-0776620791") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:14] NoOp("YSGSM/5-1", "") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:15] Set("YSGSM/5-1", "DLSTAT=UNKNOW}") in new                                                                stack
    -- Executing [s@macro-trunkdial-failover-0.4:16] SetCktCustom("YSGSM/5-1", "sendrpid,no,no                                                               ") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:17] GotoIf("YSGSM/5-1", "1>0?1-dial,3") in ne                                                               w stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,3)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:3] GotoIf("YSGSM/5-1", "0?4:19") in new                                                                stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,19)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:19] Set("YSGSM/5-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:20] Set("YSGSM/5-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:21] Set("YSGSM/5-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:22] Set("YSGSM/5-1", "TIMEOUT(absolute)=                                                               1800") in new stack
Channel will hangup at 2010-12-11 05:18:46.090 GMT-6.
    -- Executing [1-dial@macro-trunkdial-failover-0.4:23] GotoIf("YSGSM/5-1", "0?24:28") in ne                                                               w stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,28)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:28] GotoIf("YSGSM/5-1", "0?1-out,1") in                                                                new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:29] GotoIf("YSGSM/5-1", "0?setdod,1:1-di                                                               al,30") in new stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,30)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:30] Set("YSGSM/5-1", "CALLERID(name)=077                                                               6100503") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:31] Set("YSGSM/5-1", "CALLERID(num)=0776                                                               100503") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:32] Set("YSGSM/5-1", "_SIPSRTP=") in new                                                                stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:33] Set("YSGSM/5-1", "OUTDIALOPT=tTkKWwX                                                               x") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:34] Set("YSGSM/5-1", "TMPTRUNK=trunk-077                                                               6620791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:35] Set("YSGSM/5-1", "DIALNUMBER=0776620                                                               791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:36] Set("YSGSM/5-1", "DIALNUMBER=/077662                                                               0791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:37] Set("YSGSM/5-1", "DIALNUMBER=/077662                                                               0791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:38] Set("YSGSM/5-1", "ACCOUNT_RINGTIME="                                                               ) in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:39] Dial("YSGSM/5-1", "SIP/trunk-0776620                                                               791/0776620791,,tTkKWwXx") 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 4
    -- Called trunk-0776620791/0776620791
    -- SIP/trunk-0776620791-00000122 answered YSGSM/5-1
gsm.c:2385 gsm_answer: call 1 on channel 1/4 enters state 8 (Connect Request)
4:>> ATAI>
4:<< \r\nOK\r\n
                4:<<< 0 ATA -- OK , 2
gsm_module.c:3855 module_receive: call 1 on channel 1/4 enters state 10 (Active)
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
4:<< \r\n+CSQN: 25,0\r\n
                4:<<< 0 ATA -- +CSQN: 25,0 , 11
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
4:<< \r\n+CSQN: 26,0\r\n
                4:<<< 0 ATA -- +CSQN: 26,0 , 11
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
4:<< \r\n+CSQN: 23,0\r\n
                4:<<< 0 ATA -- +CSQN: 23,0 , 11
4:<< \r\n+CSQN: 22,0\r\n
                4:<<< 0 ATA -- +CSQN: 22,0 , 11
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
3:<< \r\nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
                3:<<< 0 ATA -- RING , 4
                3:<<< 1 ATA -- +CLIP: "0702906256",161,"",0,"",0 , 33
4:<< \r\n+CSQN: 21,0\r\n
                4:<<< 0 ATA -- +CSQN: 21,0 , 11
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
3:<< \r\nNO CARRIER\r\n
                3:<<< 0 ATA -- NO CARRIER , 10
    -- Executing [h@macro-trunkdial-failover-0.4:1] GotoIf("YSGSM/3-1", "0?2:8") in new stack
    -- Goto (macro-trunkdial-failover-0.4,h,8)
    -- Executing [h@macro-trunkdial-failover-0.4:8] GotoIf("YSGSM/3-1", "0?9:17") in new stack
    -- Goto (macro-trunkdial-failover-0.4,h,17)
  == Spawn extension (macro-trunkdial-failover-0.4, 1-dial, 39) exited non-zero on 'YSGSM/3-1'                                                                in macro 'trunkdial-failover-0.4'
  == Spawn extension (Routeout_GSM_IP_0559620791, 0559620791, 4) exited non-zero on 'YSGSM/3-1                                                               '
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Active, peerstate Active
gsm.c:344 gsm_call_disconnect: call 14 on channel 1/3 enters state 11 (Disconnect Request)
3:>> ATHI>
    -- Hungup 'YSGSM/3-1'
3:<< \r\nOK\r\n
                3:<<< 0 ATH -- OK , 2
gsm_module.c:3980 module_receive: call 14 on channel 1/3 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
    -- Channel 1, span 3 received AOC-E charging 2479792 units
4:<< \r\n+CSQN: 19,0\r\n
                4:<<< 0 ATA -- +CSQN: 19,0 , 11
4:<< \r\n+CSQN: 20,0\r\n
                4:<<< 0 ATA -- +CSQN: 20,0 , 11
4:<< \r\n+CSQN: 19,0\r\n
                4:<<< 0 ATA -- +CSQN: 19,0 , 11
3:<< \r\n+CSQN: 21,0\r\n
-- Making new call for cr 14
                3:<<< 0 ATH -- +CSQN: 21,0 , 11
4:<< \r\n+CSQN: 20,0\r\n
                4:<<< 0 ATA -- +CSQN: 20,0 , 11
    -- Executing [h@macro-trunkdial-failover-0.4:1] GotoIf("YSGSM/5-1", "0?2:8") in new stack
    -- Goto (macro-trunkdial-failover-0.4,h,8)
    -- Executing [h@macro-trunkdial-failover-0.4:8] GotoIf("YSGSM/5-1", "0?9:17") in new stack
    -- Goto (macro-trunkdial-failover-0.4,h,17)
  == Spawn extension (macro-trunkdial-failover-0.4, 1-dial, 39) exited non-zero on 'YSGSM/5-1'                                                                in macro 'trunkdial-failover-0.4'
  == Spawn extension (Routeout_GSM_IP_0776620791, 0776620791, 4) exited non-zero on 'YSGSM/5-1                                                               '
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Active, peerstate Active
gsm.c:344 gsm_call_disconnect: call 1 on channel 1/4 enters state 11 (Disconnect Request)
4:>> ATHI>
    -- Hungup 'YSGSM/5-1'
4:<< \r\nOK\r\n
                4:<<< 0 ATH -- OK , 2
gsm_module.c:3980 module_receive: call 1 on channel 1/4 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling at_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
    -- Channel 1, span 4 received AOC-E charging 2301704 units
5:<< \r\n+CSQN: 26,0\r\n
                5:<<< 0 AT+CSQ -- +CSQN: 26,0 , 11
5:<< \rLI>
5:<< \nRING\r\n\r\n+CLIP: "0702906256",161,"",0,"",0\r\n
TG400*CLI>      5:<<< 0 AT+CSQ -- RING , 4
TG400*CLI>      5:<<< 1 AT+CSQ -- +CLIP: "0702906256",161,"",0,"",0 , 33
gsm_module.c:3786 module_receive: call 1 on channel -1/5 enters state 6 (Call Present)
gsm.c:2362 gsm_need_more_info: call 1 on channel 1/5 enters state 25 (Overlap Receiving)
    -- Accepting overlap call from '0702906256' to 's' on channel 1, span 5
    -- Starting simple switch on 'YSGSM/7-1'
5:<< \r\n+CSQN: 28,0\r\n
                5:<<< 0 AT+CSQ -- +CSQN: 28,0 , 11
    -- Executing [s@from-gsm7:1] Macro("YSGSM/7-1", "Routein_GSM_IP_0709620791,0,s") in new st                                                               ack
    -- Executing [s@macro-Routein_GSM_IP_0709620791:1] Set("YSGSM/7-1", "CDR(userfield)=GSM->I                                                               P") in new stack
    -- Executing [s@macro-Routein_GSM_IP_0709620791:2] GotoIf("YSGSM/7-1", "0?Blacklist-Handle                                                               ,s,1") in new stack
    -- Executing [s@macro-Routein_GSM_IP_0709620791:3] Goto("YSGSM/7-1", "Routeout_GSM_IP_0709                                                               620791,0709620791,1") in new stack
    -- Goto (Routeout_GSM_IP_0709620791,0709620791,1)
  == Channel 'YSGSM/7-1' jumping out of macro 'Routein_GSM_IP_0709620791'
    -- Executing [0709620791@Routeout_GSM_IP_0709620791:1] Set("YSGSM/7-1", "ORGINEXTEN=070962                                                               0791") in new stack
    -- Executing [0709620791@Routeout_GSM_IP_0709620791:2] Set("YSGSM/7-1", "ORGINCONTEXT=Rout                                                               eout_GSM_IP_0709620791") in new stack
    -- Executing [0709620791@Routeout_GSM_IP_0709620791:3] NoOp("YSGSM/7-1", "It is not module                                                                or trunk group") in new stack
    -- Executing [0709620791@Routeout_GSM_IP_0709620791:4] Macro("YSGSM/7-1", "trunkdial-failo                                                               ver-0.4,1,,0709620791,trunk-0709620791,") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:1] NoOp("YSGSM/7-1", "do call out") in new st                                                               ack
    -- Executing [s@macro-trunkdial-failover-0.4:2] GotoIf("YSGSM/7-1", "0?Blacklist-Handle,s,                                                               1") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:3] GotoIf("YSGSM/7-1", "0?4:5") in new stack
    -- Goto (macro-trunkdial-failover-0.4,s,5)
    -- Executing [s@macro-trunkdial-failover-0.4:5] Set("YSGSM/7-1", "TCOUNT=4") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:6] GotoIf("YSGSM/7-1", "0?7:10") in new stack
    -- Goto (macro-trunkdial-failover-0.4,s,10)
    -- Executing [s@macro-trunkdial-failover-0.4:10] Set("YSGSM/7-1", "BEGINCOUNT=4") in new s                                                               tack
    -- Executing [s@macro-trunkdial-failover-0.4:11] Set("YSGSM/7-1", "OldCallerID=0702906256"                                                               ) in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:12] Set("YSGSM/7-1", "OldCallerName=070290625                                                               6") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:13] Set("YSGSM/7-1", "TOUCH_MONITOR=070290625                                                               6-0709620791") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:14] NoOp("YSGSM/7-1", "") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:15] Set("YSGSM/7-1", "DLSTAT=UNKNOW}") in new                                                                stack
    -- Executing [s@macro-trunkdial-failover-0.4:16] SetCktCustom("YSGSM/7-1", "sendrpid,no,no                                                               ") in new stack
    -- Executing [s@macro-trunkdial-failover-0.4:17] GotoIf("YSGSM/7-1", "1>0?1-dial,3") in ne                                                               w stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,3)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:3] GotoIf("YSGSM/7-1", "0?4:19") in new                                                                stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,19)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:19] Set("YSGSM/7-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:20] Set("YSGSM/7-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:21] Set("YSGSM/7-1", "SINGAL_TIMEOUT=180                                                               0") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:22] Set("YSGSM/7-1", "TIMEOUT(absolute)=                                                               1800") in new stack
Channel will hangup at 2010-12-11 05:19:24.269 GMT-6.
    -- Executing [1-dial@macro-trunkdial-failover-0.4:23] GotoIf("YSGSM/7-1", "0?24:28") in ne                                                               w stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,28)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:28] GotoIf("YSGSM/7-1", "0?1-out,1") in                                                                new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:29] GotoIf("YSGSM/7-1", "0?setdod,1:1-di                                                               al,30") in new stack
    -- Goto (macro-trunkdial-failover-0.4,1-dial,30)
    -- Executing [1-dial@macro-trunkdial-failover-0.4:30] Set("YSGSM/7-1", "CALLERID(name)=070                                                               2906256") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:31] Set("YSGSM/7-1", "CALLERID(num)=0702                                                               906256") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:32] Set("YSGSM/7-1", "_SIPSRTP=") in new                                                                stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:33] Set("YSGSM/7-1", "OUTDIALOPT=tTkKWwX                                                               x") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:34] Set("YSGSM/7-1", "TMPTRUNK=trunk-070                                                               9620791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:35] Set("YSGSM/7-1", "DIALNUMBER=0709620                                                               791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:36] Set("YSGSM/7-1", "DIALNUMBER=/070962                                                               0791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:37] Set("YSGSM/7-1", "DIALNUMBER=/070962                                                               0791") in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:38] Set("YSGSM/7-1", "ACCOUNT_RINGTIME="                                                               ) in new stack
    -- Executing [1-dial@macro-trunkdial-failover-0.4:39] Dial("YSGSM/7-1", "SIP/trunk-0709620                                                               791/0709620791,,tTkKWwXx") 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 4
    -- Called trunk-0709620791/0709620791
    -- SIP/trunk-0709620791-00000123 answered YSGSM/7-1
gsm.c:2385 gsm_answer: call 1 on channel 1/5 enters state 8 (Connect Request)
5:>> ATAI>
5:<< \r\nOK\r\n
                5:<<< 0 ATA -- OK , 2
gsm_module.c:3855 module_receive: call 1 on channel 1/5 enters state 10 (Active)
5:<< \r\n+CSQN: 23,0\r\n
                5:<<< 0 ATA -- +CSQN: 23,0 , 11
5:<< \r\n+CSQN: 24,0\r\n
                5:<<< 0 ATA -- +CSQN: 24,0 , 11
5:<< \r\n+CSQN: 23,0\r\n
                5:<<< 0 ATA -- +CSQN: 23,0 , 11
TG400*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk cleanly ending (0).
