Author Topic: Realtime Outbound Calls with queue_log database  (Read 4482 times)

djove

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
    • Email
Realtime Outbound Calls with queue_log database
« on: December 26, 2013, 19:21:21 »
Hi there, im trying to register realtime outbound calls in the live page of Queuemetrics, but i can't see any data of the calls.
In que queuelog field, in the database, i can see the call process,
It works fine with inbound calls. any help, thanks a lot.


time                           callid                   queuename    agent                    event                          data1    data2                 data3    data4    data5    serverid
2013-12-26 15:09:45    1388081224.54    ATC            Agente/12001    COMPLETECALLER    8           188                NULL      
2013-12-26 15:06:38    1388081224.54    ATC             Agente/12001    CONNECT                 8                                  NULL      
2013-12-26 15:06:30    1388081224.54    ATC            Agente/12001    CALLOUTBOUND    -            1539132804    NULL      
    
In theQDIALAGI.csv  file i have the following information:
"QDIALAGI","11001","s","qm-queuedial","""device"" <11001>","SIP/11001-0000001a","SIP/asterisk03-0000001b","Dial","SIP/asterisk03/1539132804,300,gM(queuedial-answer^1388081224.54^QDV-Agente/1200","2013-12-26 18:07:04","2013-12-26 18:07:12","2013-12-26 18:10:10",186,178,"ANSWERED","DOCUMENTATION","1388081224.54",

The call works correctly. The output of the cli is the following:

    -- Executing [21539132804@internos:1] Goto("SIP/11001-0000001a", "queuedial,21539132804,1") in new stack
    -- Goto (queuedial,21539132804,1)
    -- Executing [21539132804@queuedial:1] Set("SIP/11001-0000001a", "QDIALER_QUEUE=2") in new stack
    -- Executing [21539132804@queuedial:2] Set("SIP/11001-0000001a", "QDIALER_QUEUE=ATC
") in new stack
    -- Executing [21539132804@queuedial:3] NoOp("SIP/11001-0000001a", "Cola leida : ATC
") in new stack
    -- Executing [21539132804@queuedial:4] Set("SIP/11001-0000001a", "QDIALER_NUMBER=1539132804") in new stack
    -- Executing [21539132804@queuedial:5] Set("SIP/11001-0000001a", "QDIALER_AGENT=Agente/12001
") in new stack
    -- Executing [21539132804@queuedial:6] NoOp("SIP/11001-0000001a", "Agente leido : Agente/12001
") in new stack
    -- Executing [21539132804@queuedial:7] Set("SIP/11001-0000001a", "QDIALER_CHANNEL=SIP/asterisk03/") in new stack
    -- Executing [21539132804@queuedial:8] Set("SIP/11001-0000001a", "QueueName=ATC
") in new stack
    -- Executing [21539132804@queuedial:9] NoOp("SIP/11001-0000001a", "1388081224.54") in new stack
    -- Executing [21539132804@queuedial:10] MixMonitor("SIP/11001-0000001a", "Q-ATC
-1388081224.54.WAV,b,") in new stack
    -- Executing [21539132804@queuedial:11] Goto("SIP/11001-0000001a", "qm-queuedial,s,1") in new stack
  == Begin MixMonitor Recording SIP/11001-0000001a
    -- Goto (qm-queuedial,s,1)
    -- Executing [s@qm-queuedial:1] NoOp("SIP/11001-0000001a", " "Outbound call - A:Agente/12001
 N:1539132804 Q:ATC
 Ch:SIP/asterisk03/" ") in new stack
    -- Executing [s@qm-queuedial:2] Set("SIP/11001-0000001a", "CDR(accountcode)=QDIALAGI") in new stack
    -- Executing [s@qm-queuedial:3] Set("SIP/11001-0000001a", "ST=1388081224") in new stack
    -- Executing [s@qm-queuedial:4] Set("SIP/11001-0000001a", "GM=QDV-Agente/12001
") in new stack
    -- Executing [s@qm-queuedial:5] Set("SIP/11001-0000001a", "GLOBAL(QDV-Agente/12001
)=U") in new stack
  == Setting global variable 'QDV-Agente/12001
' to 'U'
    -- Executing [s@qm-queuedial:6] Set("SIP/11001-0000001a", "GLOBAL(QDV-Agente/12001
ans)=0") in new stack
  == Setting global variable 'QDV-Agente/12001
ans' to '0'
    -- Executing [s@qm-queuedial:7] NoOp("SIP/11001-0000001a", "queuelog,1.1388081224,2.1388081224.54,3.ATC
,4.Agente/12001
,5."CALLOUTBOUND",6,7.1539132804") in new stack
    -- Executing [s@qm-queuedial:8] Macro("SIP/11001-0000001a", "queuelog,1388081224,1388081224.54,ATC
,Agente/12001
,"CALLOUTBOUND",-,1539132804,") in new stack
    -- Executing [s@macro-queuelog:1] Set("SIP/11001-0000001a", "ADDINFO=-,1539132804,") in new stack
    -- Executing [s@macro-queuelog:2] NoOp("SIP/11001-0000001a", "queuelog,1.1388081224,2.1388081224.54,3.ATC
,4.Agente/12001
,5."CALLOUTBOUND",6,7.1539132804") in new stack
    -- Executing [s@macro-queuelog:3] NoOp("SIP/11001-0000001a", "1.Timestamp:1388081224,2.Call-id:,3.Queue:ATC
,4.Agent:Agente/12001
,5.Verb:"CALLOUTBOUND",6.7.8.Parametros:-,1539132804,") in new stack
    -- Executing [s@macro-queuelog:4] NoOp("SIP/11001-0000001a", "Syste m  risk/scripts/escribir_queue_log.sh 1388081224.54 "ATC
" "Agente/12001
" ""CALLOUTBOUND"" "-" "1539132804" """) in new stack
    -- Executing [s@macro-queuelog:5] System("SIP/11001-0000001a", "sh /etc/asterisk/scripts/escribir_queue_log.sh 1388081224.54 "ATC
" "Agente/12001
" ""CALLOUTBOUND"" "-" "1539132804" """) in new stack
    -- Executing [s@qm-queuedial:9] Dial("SIP/11001-0000001a", "SIP/asterisk03/1539132804,300,gM(queuedial-answer^1388081224.54^QDV-Agente/12001
^ATC
^Agente/12001
^1388081224)") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/asterisk03/1539132804
    -- SIP/asterisk03-0000001b is making progress passing it to SIP/11001-0000001a
    -- SIP/asterisk03-0000001b requested media update control 26, passing it to SIP/11001-0000001a
    -- SIP/asterisk03-0000001b answered SIP/11001-0000001a
    -- Executing [s@macro-queuedial-answer:1] NoOp("SIP/asterisk03-0000001b", ""Macro: queuedial-answer UID:1388081224.54 GR:QDV-Agente/12001
 Q:ATC
 A:Agente/12001
 E:1388081224"") in new stack
    -- Executing [s@macro-queuedial-answer:2] Set("SIP/asterisk03-0000001b", "NOW=1388081232") in new stack
    -- Executing [s@macro-queuedial-answer:3] Set("SIP/asterisk03-0000001b", "WD=8") in new stack
    -- Executing [s@macro-queuedial-answer:4] Macro("SIP/asterisk03-0000001b", "queuelog,1388081232,1388081224.54,ATC
,Agente/12001
,CONNECT,8") in new stack
    -- Executing [s@macro-queuelog:1] Set("SIP/asterisk03-0000001b", "ADDINFO=8,,") in new stack
    -- Executing [s@macro-queuelog:2] NoOp("SIP/asterisk03-0000001b", "queuelog,1.,2.1388081224.55,3.,4.,5."CALLOUTBOUND",6,7.") in new stack
    -- Executing [s@macro-queuelog:3] NoOp("SIP/asterisk03-0000001b", "1.Timestamp:1388081232,2.Call-id:,3.Queue:ATC
,4.Agent:Agente/12001
,5.Verb:CONNECT,6.7.8.Parametros:8,,") in new stack
    -- Executing [s@macro-queuelog:4] NoOp("SIP/asterisk03-0000001b", "Syste m  risk/scripts/escribir_queue_log.sh 1388081224.54 "ATC
" "Agente/12001
" "CONNECT" "8" "" """) in new stack
    -- Executing [s@macro-queuelog:5] System("SIP/asterisk03-0000001b", "sh /etc/asterisk/scripts/escribir_queue_log.sh 1388081224.54 "ATC
" "Agente/12001
" "CONNECT" "8" "" """) in new stack
    -- Executing [s@macro-queuedial-answer:5] Set("SIP/asterisk03-0000001b", "GLOBAL(QDV-Agente/12001
)=A") in new stack
  == Setting global variable 'QDV-Agente/12001
' to 'A'
    -- Executing [s@macro-queuedial-answer:6] Set("SIP/asterisk03-0000001b", "GLOBAL(QDV-Agente/12001
ans)=1388081232") in new stack
  == Setting global variable 'QDV-Agente/12001
ans' to '1388081232'
    -- Executing [s@macro-queuedial-answer:7] NoOp("SIP/asterisk03-0000001b", ""Macro queuedial-answer terminating" ") in new stack
    -- Executing [s@qm-queuedial:10] Set("SIP/11001-0000001a", "CAUSECOMPLETE=C") in new stack
[Dec 26 15:10:20] WARNING[6219]: pbx.c:5429 __ast_pbx_run: Timeout, but no rule 't' or 'e' in context 'qm-queuedial'
    -- Executing [h@qm-queuedial:1] NoOp("SIP/11001-0000001a", " "Call exiting: status A answered at: 1388081232 DS: ANSWER"  ") in new stack
    -- Executing [h@qm-queuedial:2] Goto("SIP/11001-0000001a", "case-A") in new stack
    -- Goto (qm-queuedial,h,7)
    -- Executing [h@qm-queuedial:7] Set("SIP/11001-0000001a", "COMPLETE=COMPLETECALLER") in new stack
    -- Executing [h@qm-queuedial:8] Set("SIP/11001-0000001a", "WT=8") in new stack
    -- Executing [h@qm-queuedial:9] Set("SIP/11001-0000001a", "CT=188") in new stack
    -- Executing [h@qm-queuedial:10] Macro("SIP/11001-0000001a", "queuelog,1388081420,1388081224.54,ATC
,Agente/12001
,COMPLETECALLER,8,188") in new stack
    -- Executing [s@macro-queuelog:1] Set("SIP/11001-0000001a", "ADDINFO=8,188,") in new stack
    -- Executing [s@macro-queuelog:2] NoOp("SIP/11001-0000001a", "queuelog,1.1388081224,2.1388081224.54,3.ATC
,4.Agente/12001
,5."CALLOUTBOUND",6,7.1539132804") in new stack
    -- Executing [s@macro-queuelog:3] NoOp("SIP/11001-0000001a", "1.Timestamp:1388081420,2.Call-id:,3.Queue:ATC
,4.Agent:Agente/12001
,5.Verb:COMPLETECALLER,6.7.8.Parametros:8,188,") in new stack
    -- Executing [s@macro-queuelog:4] NoOp("SIP/11001-0000001a", "Syste m  risk/scripts/escribir_queue_log.sh 1388081224.54 "ATC
" "Agente/12001
" "COMPLETECALLER" "8" "188" """) in new stack
    -- Executing [s@macro-queuelog:5] System("SIP/11001-0000001a", "sh /etc/asterisk/scripts/escribir_queue_log.sh 1388081224.54 "ATC
" "Agente/12001
" "COMPLETECALLER" "8" "188" """) in new stack
    -- Executing [h@qm-queuedial:11] Hangup("SIP/11001-0000001a", "") in new stack
  == Spawn extension (qm-queuedial, h, 11) exited non-zero on 'SIP/11001-0000001a'
  == MixMonitor close filestream
  == End MixMonitor Recording SIP/11001-0000001a
fsh-ast03*CLI> manager set debug on


Any idea thanks to every body.












QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Realtime Outbound Calls with queue_log database
« Reply #1 on: January 14, 2014, 10:12:49 »
You should not use the AGI anymore, unless you use a very old version of Asterisk.