QueueMetrics forum

QueueMetrics => Outbound and QueueMetrics => Topic started by: emel_punk on February 18, 2009, 21:37:29

Title: outboun calls
Post by: emel_punk on February 18, 2009, 21:37:29
HI
i was wondering what else should i do for register every outbound call an agent do.. i read the manual  and create the outbound queue,

and add to my dial plan something like this

exten => 888,n,DeadAGI(queueDial.agi|110|sip/spa400/3139000|salidacola|Agent/1001)


and the calls  is then logged into queue_log


but in queuemetrics there is no  call at all..


what  i really want is to log  every outbound call in queuemetrics, and do realtime monitoring.

 ??? ani help  would be terrific !!
Title: Re: outboun calls
Post by: QueueMetrics on February 19, 2009, 09:45:32
First things first: use the dialplan version unless you are running on 1.0 or 1.2.

1. does your call get placed at all?
2. do you see new lines added to the queue_log file?

Title: Re: outboun calls
Post by: emel_punk on February 19, 2009, 15:13:12
YES im using  asterisk 1.4.22



1: sorry my poor english..:(  are you asking me  if the call  is success? iso.. yes indeed... check out what happen on asterisk ....


 Executing [888@from-internal:1] Answer("SIP/110-b7609968", "") in new stack
    -- Executing [888@from-internal:2] DeadAGI("SIP/110-b7609968", "queueDial.agi|110|sip/spa400/3139000|salidacola|Agent/1001") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/queueDial.agi
    -- AGI Script Executing Application: (dial) Options: (sip/spa400/3139000||g)
    -- Called spa400/3139000
    -- SIP/spa400-0893b348 answered SIP/110-b7609968
    -- AGI Script queueDial.agi completed, returning 0
    -- Executing [h@from-internal:1] Macro("SIP/110-b7609968", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/110-b7609968", "w") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/110-b7609968", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/110-b7609968", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/110-b7609968", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/110-b7609968", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/110-b7609968", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/110-b7609968' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/110-b7609968'



2: yes the call get logged into queue_log
1234989851|1234989851.399|salidacola|NONE|ENTERQUEUE|-|110
1234989851|1234989851.399|salidacola|Agent/1001|CONNECT|0|
1234989854|1234989851.399|salidacola|Agent/1001|CONNECT|3|
1234989856|1234989851.399|salidacola|Agent/1001|COMPLETEAGENT|3|2
1234990124|1234990124.403|salidacola|NONE|ENTERQUEUE|-|110
1234990124|1234990124.403|salidacola|Agent/1001|CONNECT|0|
1234990128|1234990124.403|salidacola|Agent/1001|CONNECT|4|
1234990136|1234990124.403|salidacola|Agent/1001|COMPLETEAGENT|4|8
Title: Re: outboun calls
Post by: QueueMetrics on February 19, 2009, 15:26:55
Have you configured the queue "salidacola" in QM?
Title: Re: outboun calls
Post by: emel_punk on February 19, 2009, 16:08:22
YES... its on QM... and its configured as OUTBOUND CALL and  the queue does not exists on asterisk as the manual says... ???
Title: Re: outboun calls
Post by: QueueMetrics on February 20, 2009, 17:00:28
If you run a report for "salidacola", nothing is found? I think that the queue might not be configred correctly on QM.
Title: Re: outboun calls
Post by: emel_punk on February 20, 2009, 18:36:41
here is what i did on QM for "salidacola"

Queue alias:  salidacola
Queue(s): 5000
Wrap-up time (sec.):   
Announcement (sec.):   
Visibility key:   
Call flow:   Outbound call
Shown on front page:   Yes 
Chat group:   
Main agents:  agent/8081   
Wrap agents:     
Spill agents:     
AGAW enabled for this queue: Yes


Thats alla i did? what else should i do?.....  ???-- ohhh and Queue:5000 does not exist on atserisk !! :D
Title: Re: outboun calls
Post by: QueueMetrics on February 21, 2009, 09:23:12
Enter "salidacola" as the queue definition, not "5000", as that is the code that you show in the queue_log
Title: Re: outboun calls
Post by: emel_punk on February 23, 2009, 14:55:06
THANKS !!!!!!!!!!!! IT WORK NOW!!  :-*

i have a last question.... why  QM doesnt  show me the destiantion number where the agent  called??  ::)



Title: Re: outboun calls
Post by: QueueMetrics on February 24, 2009, 08:47:32
You have to use 1.5.1 for that :)
Title: Re: outboun calls
Post by: emel_punk on February 26, 2009, 21:11:04
all rigth i have updated  to QM 1.51 but i dont see where  the agent called :'(....


and i have another question.....
how can i do  to  search on asteriskDB and verify  which  agent its making the call .. any ideas???

 ???
Title: Re: outboun calls
Post by: QueueMetrics on February 27, 2009, 10:07:09
Not sure about the AsteriskDB part; you should see the called number in a lost call by running a report and looking on "lost calls".

If you don't, please post the queue_log piece for a failed outbound call.

Title: Re: outboun calls
Post by: emel_punk on February 27, 2009, 20:40:13
I dont see nothing on lost calls or in unaswered  ???


on  queue_log  here is what gets logged

1235763321|1235763321.889|salidacola|NONE|ENTERQUEUE|-|110
1235763321|1235763321.889|salidacola|Agent/1001|CONNECT|0|
1235763324|1235763321.889|salidacola|Agent/1001|CONNECT|3|
1235763332|1235763321.889|salidacola|Agent/1001|COMPLETEAGENT|3|8



Title: Re: outboun calls
Post by: QueueMetrics on March 02, 2009, 10:55:24
The call looks correct, but it's not a lost one, as it was answered. :)
Title: Re: outboun calls
Post by: emel_punk on March 02, 2009, 16:20:35
well actually i can see the calls details   on QM and see on real time monitor but when  i go to details it looks like this

       
Date 03/02 - 09:43:37 
Caller 111
Queue  salidacola 
Wait  0:03   
Duration 0:17   
 Pos.  0
Disconnection Agent 
Handled by emel romo 
Attempts  2   
Stints  1         
 

how can i do to see or if i can see the destination number where the agent did the call instead of see the extension from where he  did the call??  ???
Title: Re: outboun calls
Post by: QueueMetrics on March 03, 2009, 15:31:28
The "caller" will be the destinatio  number, and "emel romo" the originating party.
Title: Re: outboun calls
Post by: emel_punk on March 03, 2009, 19:02:28
THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS  !!!


 ;D
Title: Re: outboun calls
Post by: QueueMetrics on March 04, 2009, 09:44:35
 ;)
Title: Re: outboun calls
Post by: emel_punk on March 10, 2009, 21:15:21
All rigth  ::)

i have a question, now i have all my calls outbound calls registered at  QM..
but when i go to details of teh calls and y select  details for an especific call:


it show me something like this

 
Asterisk Call ID:    1236715541.8554
Date and time:    10/03/2009 - 15:05:42
Caller ID:    4133892
Handled by:    agent/8074
Duration:    115 sec.
Waiting time:    4 sec.
Original position    -
Disconnection cause:    Caller disconnected
Transferred to:     
URL:    -
Status code:     
Srv     


but it doesnt show me the link attachment to the file. like it happen with the inbound call...


how can i do for that??
Title: Re: outboun calls
Post by: QueueMetrics on March 11, 2009, 12:20:21
Does the audio file exist at all? was the call recorded?
Title: Re: outboun calls
Post by: emel_punk on March 11, 2009, 23:05:21
 ;D

NO... :( i need to  activated rugth?? i did now and the link is there  :D problem resolved.

NOW i have another doubt.

i have installed QM 1.5.1 and i want to listen a call while its on progress, so if i go to  START REALTIME MONITORING and i should see teh call on progress and click on the blue icon with a mini phone...

but it dosent working the icon doesnt appering on  it!!!

i  put the  key MON_AUDIO ...

what else should i do??
Title: Re: outboun calls
Post by: QueueMetrics on March 12, 2009, 16:54:29
Is the call you want to listen to inbound or outbound?
Title: Re: outboun calls
Post by: emel_punk on March 13, 2009, 14:39:59
i want to listen an outbound call  :'(
Title: Re: outboun calls
Post by: QueueMetrics on March 14, 2009, 10:54:54
You have to add this to extensions_queuemetrics.conf

Code: [Select]
; extension 14 makes remote monitoring possible for OUTBOUND CALLS
exten => 14,1,Answer
exten => 14,2,NoOp( "QM_AGENT_CODE: ${QM_AGENT_CODE}" )
exten => 14,3,NoOp( "QM_EXT_MONITOR: ${QM_EXT_MONITOR}" )
exten => 14,4,NoOp( "QM_AGENT_EXT: ${QM_AGENT_EXT}" )
exten => 14,5,NoOp( "QM_LOGIN: ${QM_LOGIN}" )
exten => 14,6,ChanSpy(Local/${QM_AGENT_CODE:6}@from-internal)
exten => 14,7,Hangup

Make sure that the format of the ChansPy() command matches your outbound channels.


See also: http://queuemetrics.com/manuals/QM_Trixbox-chunked/ar01s03.html

Title: Re: outboun calls
Post by: emel_punk on March 14, 2009, 21:31:05
mmm i still have some doubts :

i did all what was on the  manual about tribox :
but it dosent work... i mean

i was using this piece of code:


exten => _7XXXXXXX,1,answer
exten => _7XXXXXXX,n,set(anagent=${AGENTBYCALLERID_${CALLERID(NUMBER)}})
exten => _7XXXXXXX,n,gotoif($["${anagent}"!="")]?marcarag)
exten => _7XXXXXXX,n,goto(from-internal,${EXTEN:1}|)
exten => _7XXXXXXX,n(marcarag),DEADAGI(queueDial.agi|${EXTEN:1}|sip/spa400/${EXTEN:1}|350|Agent/${anagent})
exten => _7XXXXXXX,n,hangup

on QM i got  defined queue 350 also on FREEPBX  but nothing happend..

and if i remove that peace of code  from extension_custom  the call gets an error check this out :


Called 3139000@queuedial/n
    -- Executing [3139000@queuedial:1] Set("Local/3139000@queuedial-1520,2", "QDIALER_QUEUE=q-313") in new stack
    -- Executing [3139000@queuedial:2] Set("Local/3139000@queuedial-1520,2", "QDIALER_NUMBER=9000") in new stack
    -- Executing [3139000@queuedial:3] Set("Local/3139000@queuedial-1520,2", "QDIALER_AGENT=Agent/111") in new stack
    -- Executing [3139000@queuedial:4] Set("Local/3139000@queuedial-1520,2", "QDIALER_CHANNEL=SIP/9000") in new stack
    -- Executing [3139000@queuedial:5] Set("Local/3139000@queuedial-1520,2", "QueueName=q-313") in new stack
    -- Executing [3139000@queuedial:6] MixMonitor("Local/3139000@queuedial-1520,2", "Q-q-313-1237062132.544.WAV|b|") in new stack
    -- Executing [3139000@queuedial:7] Goto("Local/3139000@queuedial-1520,2", "qm-queuedial|s|1") in new stack
    -- Goto (qm-queuedial,s,1)
    -- Executing [s@qm-queuedial:1] NoOp("Local/3139000@queuedial-1520,2", "Outbound call -> A:Agent/111 N:9000 Q:q-313 Ch:SIP/9000") in new stack
    -- Executing [s@qm-queuedial:2] Set("Local/3139000@queuedial-1520,2", "CDR(accountcode)=QDIALAGI") in new stack
    -- Executing [s@qm-queuedial:3] Set("Local/3139000@queuedial-1520,2", "ST=1237062132") in new stack
    -- Executing [s@qm-queuedial:4] Set("Local/3139000@queuedial-1520,2", "GM=QDV-Agent/111") in new stack
    -- Executing [s@qm-queuedial:5] Set("Local/3139000@queuedial-1520,2", "GLOBAL(QDV-Agent/111)=U") in new stack
  == Setting global variable 'QDV-Agent/111' to 'U'
    -- Executing [s@qm-queuedial:6] Set("Local/3139000@queuedial-1520,2", "GLOBAL(QDV-Agent/111ans)=0") in new stack
  == Setting global variable 'QDV-Agent/111ans' to '0'
    -- Executing [s@qm-queuedial:7] Macro("Local/3139000@queuedial-1520,2", "queuelog|1237062132|1237062132.544|q-313|Agent/111|ENTERQUEUE|-|9000") in new stack
    -- Executing [s@macro-queuelog:1] QueueLog("Local/3139000@queuedial-1520,2", "q-313|1237062132.544|Agent/111|ENTERQUEUE|-|9000|") in new stack
    -- Executing [s@qm-queuedial:8] Dial("Local/3139000@queuedial-1520,2", "SIP/9000|30|gM(queuedial-answer^1237062132.544^QDV-Agent/111^q-313^Agent/111^1237062132)") in new stack
  == Begin MixMonitor Recording Local/3139000@queuedial-1520,2
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@qm-queuedial:9] Set("Local/3139000@queuedial-1520,2", "CAUSECOMPLETE=") in new stack
  == Auto fallthrough, channel 'Local/3139000@queuedial-1520,2' status is 'CHANUNAVAIL'
    -- Local/3139000@queuedial-1520,1 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:27] Goto("SIP/111-b7207260", "s-CONGESTION|1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/111-b7207260", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,3)
    -- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/111-b7207260", "TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new stack
    -- Executing [73139000@from-internal:5] Macro("SIP/111-b7207260", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/111-b7207260", "all-circuits-busy-now|noanswer") in new stack
    -- Executing [s@macro-outisbusy:2] Playback("SIP/111-b7207260", "pls-try-call-later|noanswer") in new stack
    -- Executing [s@macro-outisbusy:3] Macro("SIP/111-b7207260", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/111-b7207260", "w") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/111-b7207260", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/111-b7207260", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/111-b7207260", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/111-b7207260", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/111-b7207260", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/111-b7207260' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/111-b7207260' in macro 'outisbusy'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/111-b7207260'
  == End MixMonitor Recording SIP/111-b7207260
    -- Executing [h@qm-queuedial:1] NoOp("Local/3139000@queuedial-1520,2", " "Call exiting: status U answered at: 0 DS: CHANUNAVAIL"  ") in new stack
    -- Executing [h@qm-queuedial:2] Goto("Local/3139000@queuedial-1520,2", "case-U") in new stack
    -- Goto (qm-queuedial,h,4)
    -- Executing [h@qm-queuedial:4] Set("Local/3139000@queuedial-1520,2", "WT=0") in new stack
    -- Executing [h@qm-queuedial:5] Macro("Local/3139000@queuedial-1520,2", "queuelog|1237062132|1237062132.544|q-313|Agent/111|ABANDON|1|1|0") in new stack
    -- Executing [s@macro-queuelog:1] QueueLog("Local/3139000@queuedial-1520,2", "q-313|1237062132.544|Agent/111|ABANDON|1|1|0") in new stack
    -- Executing [h@qm-queuedial:6] Hangup("Local/3139000@queuedial-1520,2", "") in new stack
  == Spawn extension (qm-queuedial, h, 6) exited non-zero on 'Local/3139000@queuedial-1520,2'
  == End MixMonitor Recording Local/3139000@queuedial-1520,2


:s  ???
Title: Re: outboun calls
Post by: QueueMetrics on March 15, 2009, 12:04:39
For outbound use any piece of code that works - for LISTENING TO OUTBOUND instead add the piece of code I told you about.
Title: Re: outboun calls
Post by: emel_punk on March 15, 2009, 21:01:05
Sorry but it doesnt work to me..  i mean... the icon its now apperaring but if i put the extension where i want to send the call nothing happen  :'(
Title: Re: outboun calls
Post by: QueueMetrics on March 16, 2009, 09:20:18
That's likely because the channel name in the ChanSpy is wrong.

Try this:
- when the call is ongoing, enter a show channels; so you know how the channel is called.
- edit the ChanSpy line so that it matches said channel

Title: Re: outboun calls
Post by: emel_punk on March 16, 2009, 15:12:26
first of all i put  the piece of code you gave me at  context


[queuemetrics]
.
.
.
.
code...

then  i did what you told me
servidor*CLI> show channels
Channel              Location             State   Application(Data)
SIP/spa400-0951c020  (None)               Up      AppDial((Outgoing Line))
SIP/111-b7203638     76538300@from-intern Up      Dial(sip/spa400/6538300||g)


i want to spy  the channel  SIP/111-b7203638 so i guest i should change  this piece of code

exten => 14,6,ChanSpy(Local/${QM_AGENT_CODE:6}@from-internal)

for this

exten => 14,6,ChanSpy(sip/${CALLERID(num)}@from-internal)

and  if  its not wrong what i did, but  stiil not working :S ???

ohh and iim using the agi queuedial.agi like this

exten => _7XXXXXXX,1,answer
exten => _7XXXXXXX,n,set(anagent=${AGENTBYCALLERID_${CALLERID(NUMBER)}})
exten => _7XXXXXXX,n,gotoif($["${anagent}"!="")]?marcarag)
exten => _7XXXXXXX,n,goto(from-internal,${EXTEN:1}|)
exten => _7XXXXXXX,n(marcarag),DEADAGI(queueDial.agi|${EXTEN:1}|sip/spa400/${EXTEN:1}|350|Agent/${anagent})
exten => _7XXXXXXX,n,hangup


so  ???
Title: Re: outboun calls
Post by: QueueMetrics on March 17, 2009, 08:47:52
If in QM you see the agent as Agent/111, you should change it to:

Code: [Select]
exten => 14,6,ChanSpy(sip/${QM_AGENT_CODE:6})

The agent code being chanspied on is passed in the ${QM_AGENT_CODE} variable by QM.
Title: Re: outboun calls
Post by: emel_punk on March 17, 2009, 14:37:16
 ??? Nothing  :'(
i mean i did  this

; extension 14 makes remote monitoring possible for OUTBOUND CALLS
exten => 14,1,Answer
exten => 14,2,NoOp( "QM_AGENT_CODE: ${QM_AGENT_CODE}" )
exten => 14,3,NoOp( "QM_EXT_MONITOR: ${QM_EXT_MONITOR}" )
exten => 14,4,NoOp( "QM_AGENT_EXT: ${QM_AGENT_EXT}" )
exten => 14,5,NoOp( "QM_LOGIN: ${QM_LOGIN}" )
;exten => 14,6,ChanSpy(Local/${QM_AGENT_CODE:6}@from-internal)
exten => 14,6,ChanSpy(SIP/${QM_AGENT_CODE:6})


this is the output when i dial to the number but nothing happens after i click on the icon type the extension and prees monitor buttom

servidor*CLI>
    -- Executing [73139000@from-internal:1] Answer("SIP/111-b760cd80", "") in new stack
    -- Executing [73139000@from-internal:2] Set("SIP/111-b760cd80", "anagent=1010") in new stack
    -- Executing [73139000@from-internal:3] GotoIf("SIP/111-b760cd80", "1?marcarag") in new stack
    -- Goto (from-internal,73139000,5)
    -- Executing [73139000@from-internal:5] DeadAGI("SIP/111-b760cd80", "queueDial.agi|3139000|sip/spa400/3139000|350|Agent/1010") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/queueDial.agi
    -- AGI Script Executing Application: (dial) Options: (sip/spa400/3139000||g)
    -- Called spa400/3139000
    -- SIP/spa400-094fd508 answered SIP/111-b760cd80
    -- AGI Script queueDial.agi completed, returning 0

 ??? :'(
Title: Re: outboun calls
Post by: QueueMetrics on March 18, 2009, 08:50:30
Are your QM's tcp settings correct? and does it know that the call is OUTBOUND, i.e. it has a yellow icon?
Title: Re: outboun calls
Post by: emel_punk on March 18, 2009, 15:00:31
where i can see my tcp settings?? cause im kinda confussed, and yes the call its outbounded by QM cause i can see my outbound call on QM on real time and on the reports  and the icon is yellow  ::)
Title: Re: outboun calls
Post by: QueueMetrics on March 19, 2009, 09:47:02
default.callfiledir

Of course I imagine you are using QM 1.5.1?
Title: Re: outboun calls
Post by: emel_punk on March 24, 2009, 19:39:30
yes im using  QM 1.5.1 but i cant find that file !!!!  :'(

aaa and by the way i got QM 1.5.0  in another machine and it works perfectlly  spying the outbound calls ::)
Title: Re: outboun calls
Post by: emel_punk on March 24, 2009, 21:49:59
I recently saw that   when i try to monitor Qm genereates a file on /var/spool/asterisk/outgoing  for every  call i try to spy, but all the files gets stucks on this folder.... i compare with some files generated by the Qm from another machine  that generated this files and  offcourse this machine do well the Spychan...here is the files:

file generated by QM not doing monitor now(spy)

Channel: Local/110@from-internal/n
MaxRetries: 0
RetryTime: 60
WaitTime: 30
Context: queuemetrics
Extension: 11
Priority: 1
SetVar: QM_AGENT_CODE=agent/1010
SetVar: QM_CALLERID=110
SetVar: QM_EXT_MONITOR=110
SetVar: QM_QUEUE=500
SetVar: QM_QUEUE_URL=
SetVar: QM_AGENT_EXT=-


file generated by QM doing monitor now(spy)

Channel: Local/10000@from-internal/n
MaxRetries: 0
RetryTime: 60
WaitTime: 30
Context: queuemetrics
Extension: 11
Priority: 1
SetVar: QM_AGENT_CODE=agent/8073
SetVar: QM_CALLERID=22870412
SetVar: QM_EXT_MONITOR=10000
SetVar: QM_QUEUE=8007
SetVar: QM_QUEUE_URL=
SetVar: QM_AGENT_EXT=-
StartRetry: 3867 1 (1237926412)
~
 :'(
Title: Re: outboun calls
Post by: emel_punk on March 25, 2009, 00:57:14
ohh i find out another  thing.. these files on /var/spool/asterisk/outgoing are being generated with root   privileges.. so if i  change manually to asterisk file is read it by asterisk... ??? on asterisk 1.4
Title: Re: outboun calls
Post by: QueueMetrics on March 25, 2009, 09:30:06
If you can, it's best not to use spool files but the direct TCP connection.
Title: Re: outboun calls
Post by: QueueMetrics on March 25, 2009, 09:32:47
About your callfiles:
- is Local/10000@from-internal/n your local extension?
- it's trying to call 11@queuemetrics to do the spying, that is for INBOUND spying - you should set the queue to outbound.
Title: Re: outboun calls
Post by: emel_punk on March 25, 2009, 13:48:08
yes indeed,  those files are for inbound... actually inbound or outbound its not working and  i got QM 1.5.1 and asterisk 1.4  :'( ....


and about using direct TCP connection, how i do that?
Title: Re: outboun calls
Post by: QueueMetrics on March 26, 2009, 10:01:08
The credentials supplied in the configuration.properties file should look like:

Code: [Select]
callfile.dir=tcp:dial:bingo@1.2.3.4
Where dial is the user name, bingo the password and 1.2.3.4 the IP address of your Asterisk box.

Check that they match the ones in Asterisk's own /etc/asterisk/manager.conf
Title: Re: outboun calls
Post by: emel_punk on March 27, 2009, 04:19:50
i found this one.....

cluster.aleph.manager=tcp:dial:12345@10.10.3.5
cluster.aleph.queuelog=sql:P001
cluster.aleph.monitored_calls=z:/qm_streamcall/server_aleph
cluster.aleph.callfilesdir=
cluster.aleph.audioRpcServer=
cluster.aleph.agentSecurityKey=

cluster.trix.manager=tcp:admin:amp111@127.0.0.1
cluster.trix.queuelog=sql:P002
cluster.trix.monitored_calls=z:/qm_streamcall/server_trix
cluster.trix.callfilesdir=
cluster.trix.audioRpcServer=
cluster.trix.agentSecurityKey=


the second part  it match with  manager.conf


Title: Re: outboun calls
Post by: QueueMetrics on March 30, 2009, 12:40:36
No you should edit it on top of the file.
Title: Re: outboun calls
Post by: emel_punk on March 30, 2009, 18:51:52
so now the files are been generated the call but some times it waits arround 15 seconds or more.. even to much waiting...

the file stays there for half and hour  :'(
Title: Re: outboun calls
Post by: emel_punk on April 07, 2009, 00:18:17
emmm what else should i do ???
 :o
Title: Re: outboun calls
Post by: QueueMetrics on April 07, 2009, 15:06:00
so now the files are been generated the call but some times it waits arround 15 seconds or more.. even to much waiting...

the file stays there for half and hour  :'(


You mean teh audio file? there is no reason why it should be removed at all.... neither Asterisk nor Qm remove it.
Title: Re: outboun calls
Post by: emel_punk on April 13, 2009, 15:32:18
im talking about the file generated at /var/spool/asterisk/outgoing
the file that does make the call to extension 11 or 14 on queuemetrics and  can spy channels.
sometimes i have to wait a minutes or even more to recive the call from the extension i want to spy. ???
Title: Re: outboun calls
Post by: QueueMetrics on April 14, 2009, 15:20:05
Do not use a callfile, use a direct TCP connection. call files gent processed by asterisk when it wants to. :)
Title: Re: outboun calls
Post by: emel_punk on April 14, 2009, 17:13:12
check out

callfile.monitoring.enabled=true
callfile.monitoring.channel=Local/$EM@from-internal/n
callfile.monitoring.extension=11
callfile.monitoring.context=queuemetrics

callfile.outmonitoring.enabled=true
callfile.outmonitoring.channel=Local/$EM@from-internal/n
callfile.outmonitoring.extension=14
callfile.outmonitoring.context=queuemetrics


now ist working on realtime the spy agent call but check this out its using extension 11 instead of using 14 for outbound call



Called 110
    -- SIP/110-09e1a448 is ringing
    -- SIP/110-09e1a448 answered Local/110@from-internal-cad5,2
       > Channel Local/110@from-internal-cad5,1 was answered.
  == Manager 'admin' logged off from 127.0.0.1
    -- Executing [11@queuemetrics:1] Answer("Local/110@from-internal-cad5,1", "") in new stack
    -- Executing [11@queuemetrics:2] NoOp("Local/110@from-internal-cad5,1", " "QM_AGENT_CODE: agent/1010" ") in new stack
    -- Executing [11@queuemetrics:3] NoOp("Local/110@from-internal-cad5,1", " "QM_EXT_MONITOR: 110" ") in new stack
    -- Executing [11@queuemetrics:4] NoOp("Local/110@from-internal-cad5,1", " "QM_AGENT_EXT: -" ") in new stack
    -- Executing [11@queuemetrics:5] ChanSpy("Local/110@from-internal-cad5,1", "agent/1010") in new stack
    -- <Local/110@from-internal-cad5,1> Playing 'beep' (language 'en')


:(
Title: Re: outboun calls
Post by: QueueMetrics on April 15, 2009, 18:33:42
It will use 11 or 14 depending if it sees the cal as inbound versus outbound.
Title: Re: outboun calls
Post by: emel_punk on April 17, 2009, 15:28:55
Well i have to  modify extensions  11 and 14 to they work as in inbound or outbound  and finally it working  :-*

exten => 11,n,set(foo1=${DB(Agents/${QM_AGENT_CODE:6})})
exten => 11,n,ChanSpy(SIP/${foo1:0:3})
exten => 11,n,hangup

THANKS FOR ALL THE SUPPORT !!  :D ;D ;)
Title: Re: outboun calls
Post by: QueueMetrics on April 17, 2009, 20:54:00
Cool! it was not easy :-)