Author Topic: outboun calls  (Read 26717 times)

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outboun calls
« Reply #15 on: March 03, 2009, 15:31:28 »
The "caller" will be the destinatio  number, and "emel romo" the originating party.

emel_punk

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 0
    • View Profile
    • Email
Re: outboun calls
« Reply #16 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

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outboun calls
« Reply #17 on: March 04, 2009, 09:44:35 »
 ;)

emel_punk

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 0
    • View Profile
    • Email
Re: outboun calls
« Reply #18 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??

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outboun calls
« Reply #19 on: March 11, 2009, 12:20:21 »
Does the audio file exist at all? was the call recorded?

emel_punk

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 0
    • View Profile
    • Email
Re: outboun calls
« Reply #20 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??

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outboun calls
« Reply #21 on: March 12, 2009, 16:54:29 »
Is the call you want to listen to inbound or outbound?

emel_punk

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 0
    • View Profile
    • Email
Re: outboun calls
« Reply #22 on: March 13, 2009, 14:39:59 »
i want to listen an outbound call  :'(

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outboun calls
« Reply #23 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


emel_punk

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 0
    • View Profile
    • Email
Re: outboun calls
« Reply #24 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  ???

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outboun calls
« Reply #25 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.

emel_punk

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 0
    • View Profile
    • Email
Re: outboun calls
« Reply #26 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  :'(

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outboun calls
« Reply #27 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


emel_punk

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 0
    • View Profile
    • Email
Re: outboun calls
« Reply #28 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  ???

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outboun calls
« Reply #29 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.