Author Topic: outbound calls not working if logged in via QM  (Read 7488 times)

blackgecko

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
outbound calls not working if logged in via QM
« on: December 11, 2008, 19:08:32 »
Hi:

im implementing a queuemetrics for inbound and outbound monitor, inbound calls are working great.

With the outbound calls im having a problem, im forcing that only logged agents can call so im using the
queuedial-loggedon context.

The problem is that if the agent logs in vi the QM screen he can´t do outbound calls cause asterisk says agent-loggedoff

if they log on via the phone

[from-internal-custom]
exten => _*60[0-5],1,AgentCallBackLogin(||@from-internal)
exten => _*60[0-5],n,Hangup

it just works.

I´ve been doing some research comparing my dialplan for and the extensions_queuemetrics.conf and found this

exten => _*60[0-5],1,AgentCallBackLogin(||@from-internal)
exten => _*60[0-5],n,Hangup

exten => 20,1,Answer
exten => 20,2,NoOp( "QM: Logging on Agent/${AGENTCODE} to extension ${AGENT_EXT}@from-internal" )
exten => 20,3,AgentCallBackLogin(${AGENTCODE}||${AGENT_EXT}@from-internal)
exten => 20,4,Hangup

As i see i think the problem is within this line
exten => 20,3,AgentCallBackLogin(${AGENTCODE}||${AGENT_EXT}@from-internal)

wich is diferrent form this
exten => _*60[0-5],1,AgentCallBackLogin(||@from-internal)

where im not passing the ${AGENTCODE} and ${AGENT_EXT} as in the queuemetrics dialplan

Is there any way to make it work the same way ? i don want the to have to dial another code to log in cause this can add another point of failure.

Thanks in advance and great work with you software.


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outbound calls not working if logged in via QM
« Reply #1 on: December 12, 2008, 09:12:19 »
To place an outbound call, it's not technically necessary that the agent be logged on - though it's nice for uniformity, etc. and you can logon any way you like, as long as it's a valid logon - so using or not using the QM dialplan, it's the same.
The QM dialplan was made to be called from the agent interface, so variables are set correctly.


blackgecko

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
Re: outbound calls not working if logged in via QM
« Reply #2 on: December 12, 2008, 17:57:15 »
well but its not working, if an agent gets into QM, and logs in via the agent screen, even when in asterisk it appears as available 
1001         (Agente 1) available at '1001@from-internal' (musiconhold is 'default')

when he calls trough the quedial-loggedon context he gets the
aggent logedoff recording

if he logs in via the *600 extension he can call without problem

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outbound calls not working if logged in via QM
« Reply #3 on: December 15, 2008, 10:02:44 »
OK what do you get in the CLI when you try calling the logon code from QM?

blackgecko

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
Re: outbound calls not working if logged in via QM
« Reply #4 on: December 15, 2008, 19:04:48 »
 -- Executing [20@queuemetrics:1] Answer("Local/20@queuemetrics-01ae,2", "") in new stack
    -- Executing [20@queuemetrics:2] NoOp("Local/20@queuemetrics-01ae,2", " "QM: Logging on Agent/1002 to extension 1002@from-internal" ") in new stack
    -- Executing [20@queuemetrics:3] AgentCallbackLogin("Local/20@queuemetrics-01ae,2", "1002||1002@from-internal") in new stack
    -- <Local/20@queuemetrics-01ae,2> Playing 'agent-loginok' (language 'en')
       > Channel Local/20@queuemetrics-01ae,1 was answered.
    -- Executing [10@queuemetrics:1] Answer("Local/20@queuemetrics-01ae,1", "") in new stack
    -- Executing [10@queuemetrics:2] Wait("Local/20@queuemetrics-01ae,1", "10") in new stack
  == Callback Agent '1002' logged in on 1002@from-internal
    -- Executing [20@queuemetrics:4] Hangup("Local/20@queuemetrics-01ae,2", "") in new stack
  == Spawn extension (queuemetrics, 20, 4) exited non-zero on 'Local/20@queuemetrics-01ae,2'
  == Spawn extension (queuemetrics, 10, 2) exited non-zero on 'Local/20@queuemetrics-01ae,1'

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outbound calls not working if logged in via QM
« Reply #5 on: December 16, 2008, 10:15:56 »
From what you say, the agent IS logged on correctly....

Code: [Select]
  == Callback Agent '1002' logged in on 1002@from-internal

blackgecko

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
Re: outbound calls not working if logged in via QM
« Reply #6 on: December 18, 2008, 22:49:40 »
i dont know if a cant make myself clear enough, the problem is not to log on, is that if you do it from the qm agent screen, you cant make outside calls trough the quemetrics-loggeon context, im following the trixbox-outgoing manual.

if instead you log from the phone calling the AgentCallBackLogin() you also get logged on and can make outbound calls that are correctly tracked by queuemetrics.

in both cases the agent gets logged on, but in one case he just cant make outbound calls.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outbound calls not working if logged in via QM
« Reply #7 on: December 19, 2008, 09:22:06 »
I really see no difference, but if in a case it does not work, there must be some.  ;)
Can you point a trace of an outbound call when you are logged in manually versus logged in via QM, so we can see what the difference is?

blackgecko

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
Re: outbound calls not working if logged in via QM
« Reply #8 on: December 22, 2008, 20:28:12 »
 Executing [s@macro-record-enable:5] NoOp("SIP/1001-09670138", "No recording needed") in new stack
    -- Executing [860057142513@from-internal:4] Macro("SIP/1001-09670138", "dialout-trunk|2|60057142513||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/1001-09670138", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/1001-09670138", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1001-09670138", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/1001-09670138", "DIAL_NUMBER=60057142513") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/1001-09670138", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/1001-09670138", "GROUP()=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1001-09670138", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1001-09670138", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/1001-09670138", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/1001-09670138", "outbound-callerid|2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1001-09670138", "0|SetCallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] GotoIf("SIP/1001-09670138", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,4)
    -- Executing [s@macro-outbound-callerid:4] NoOp("SIP/1001-09670138", "REALCALLERIDNUM is 1001") in new stack
    -- Executing [s@macro-outbound-callerid:5] GotoIf("SIP/1001-09670138", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,10)
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/1001-09670138", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/1001-09670138", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] Set("SIP/1001-09670138", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/1001-09670138", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,17)
    -- Executing [s@macro-outbound-callerid:17] GotoIf("SIP/1001-09670138", "1?usercid") in new stack
    -- Goto (macro-outbound-callerid,s,19)
    -- Executing [s@macro-outbound-callerid:19] GotoIf("SIP/1001-09670138", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,23)
    -- Executing [s@macro-outbound-callerid:23] NoOp("SIP/1001-09670138", "CallerID set to "Agente 1" <1001>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/1001-09670138", "fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/1001-09670138", "OUTNUM=60057142513") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/1001-09670138", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/1001-09670138", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/1001-09670138", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1001-09670138", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/1001-09670138", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/1001-09670138", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/1001-09670138", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/1001-09670138", "post_num=@queuedial-loggedon/n") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/1001-09670138", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/1001-09670138", "the_num=60057142513") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/1001-09670138", "Local/60057142513@queuedial-loggedon/n|300|") in new stack
    -- Called 60057142513@queuedial-loggedon/n
    -- Executing [60057142513@queuedial-loggedon:1] Set("Local/60057142513@queuedial-loggedon-7c2c,2", "QDIALER_QUEUE=q-600") in new stack
    -- Executing [60057142513@queuedial-loggedon:2] Set("Local/60057142513@queuedial-loggedon-7c2c,2", "QDIALER_NUMBER=57142513") in new stack
    -- Executing [60057142513@queuedial-loggedon:3] Set("Local/60057142513@queuedial-loggedon-7c2c,2", "QDIALER_AGENT=Agent/") in new stack
    -- Executing [60057142513@queuedial-loggedon:4] Set("Local/60057142513@queuedial-loggedon-7c2c,2", "QDIALER_CHANNEL=Zap/g0/57142513") in new stack
    -- Executing [60057142513@queuedial-loggedon:5] Set("Local/60057142513@queuedial-loggedon-7c2c,2", "QueueName=q-600") in new stack
    -- Executing [60057142513@queuedial-loggedon:6] MixMonitor("Local/60057142513@queuedial-loggedon-7c2c,2", "Q-q-600-1229973938.11644.WAV49|b|") in new stack
    -- Executing [60057142513@queuedial-loggedon:7] GotoIf("Local/60057142513@queuedial-loggedon-7c2c,2", "0?qm-queuedial|s|1") in new stack
    -- Executing [60057142513@queuedial-loggedon:8] NoOp("Local/60057142513@queuedial-loggedon-7c2c,2", "Extension 1001 is not logged on as agent.") in new stack
    -- Executing [60057142513@queuedial-loggedon:9] Playback("Local/60057142513@queuedial-loggedon-7c2c,2", "agent-loggedoff") in new stack
  == Begin MixMonitor Recording Local/60057142513@queuedial-loggedon-7c2c,2
    -- <Local/60057142513@queuedial-loggedon-7c2c,2> Playing 'agent-loggedoff' (language 'en')
    -- Local/60057142513@queuedial-loggedon-7c2c,1 answered SIP/1001-09670138
    -- Executing [60057142513@queuedial-loggedon:10] Congestion("Local/60057142513@queuedial-loggedon-7c2c,2", "") in new stack
  == Spawn extension (macro-dialout-trunk, s, 27) exited non-zero on 'SIP/1001-09670138' in macro 'dialout-trunk'
  == Spawn extension (macro-dialout-trunk, s, 27) exited non-zero on 'SIP/1001-09670138'
    -- Executing [h@macro-dialout-trunk:1] Macro("SIP/1001-09670138", "hangupcall|") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/1001-09670138", "w") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/1001-09670138", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/1001-09670138", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/1001-09670138", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/1001-09670138", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/1001-09670138", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/1001-09670138' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/1001-09670138'
  == Spawn extension (queuedial-loggedon, 60057142513, 10) exited non-zero on 'Local/60057142513@queuedial-loggedon-7c2c,2'
  == End MixMonitor Recording Local/60057142513@queuedial-loggedon-7c2c,2

there it is

pbxccvallejo*CLI> show agents
1001         (Agente 1) available at '1001@from-internal' (musiconhold is 'default')


blackgecko

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
    • Email
Re: outbound calls not working if logged in via QM
« Reply #9 on: December 22, 2008, 20:36:26 »
This one is after the agent has logged in via the phone.


   -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/1001-b700f958", "No recording needed") in new stack
    -- Executing [860052582880@from-internal:4] Macro("SIP/1001-b700f958", "dialout-trunk|2|60052582880||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/1001-b700f958", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/1001-b700f958", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1001-b700f958", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/1001-b700f958", "DIAL_NUMBER=60052582880") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/1001-b700f958", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/1001-b700f958", "GROUP()=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1001-b700f958", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1001-b700f958", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/1001-b700f958", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/1001-b700f958", "outbound-callerid|2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1001-b700f958", "0|SetCallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] GotoIf("SIP/1001-b700f958", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,4)
    -- Executing [s@macro-outbound-callerid:4] NoOp("SIP/1001-b700f958", "REALCALLERIDNUM is 1001") in new stack
    -- Executing [s@macro-outbound-callerid:5] GotoIf("SIP/1001-b700f958", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,10)
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/1001-b700f958", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/1001-b700f958", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] Set("SIP/1001-b700f958", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/1001-b700f958", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,17)
    -- Executing [s@macro-outbound-callerid:17] GotoIf("SIP/1001-b700f958", "1?usercid") in new stack
    -- Goto (macro-outbound-callerid,s,19)
    -- Executing [s@macro-outbound-callerid:19] GotoIf("SIP/1001-b700f958", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,23)
    -- Executing [s@macro-outbound-callerid:23] NoOp("SIP/1001-b700f958", "CallerID set to "Agente 1" <1001>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/1001-b700f958", "fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/1001-b700f958", "OUTNUM=60052582880") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/1001-b700f958", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/1001-b700f958", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/1001-b700f958", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1001-b700f958", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/1001-b700f958", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/1001-b700f958", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/1001-b700f958", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/1001-b700f958", "post_num=@queuedial-loggedon/n") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/1001-b700f958", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/1001-b700f958", "the_num=60052582880") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/1001-b700f958", "Local/60052582880@queuedial-loggedon/n|300|") in new stack
    -- Called 60052582880@queuedial-loggedon/n
    -- Executing [60052582880@queuedial-loggedon:1] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "QDIALER_QUEUE=q-600") in new stack
    -- Executing [60052582880@queuedial-loggedon:2] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "QDIALER_NUMBER=52582880") in new stack
    -- Executing [60052582880@queuedial-loggedon:3] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "QDIALER_AGENT=Agent/1001") in new stack
    -- Executing [60052582880@queuedial-loggedon:4] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "QDIALER_CHANNEL=Zap/g0/52582880") in new stack
    -- Executing [60052582880@queuedial-loggedon:5] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "QueueName=q-600") in new stack
    -- Executing [60052582880@queuedial-loggedon:6] MixMonitor("Local/60052582880@queuedial-loggedon-4c4e,2", "Q-q-600-1229974350.11666.WAV49|b|") in new stack
  == Begin MixMonitor Recording Local/60052582880@queuedial-loggedon-4c4e,2
    -- Executing [60052582880@queuedial-loggedon:7] GotoIf("Local/60052582880@queuedial-loggedon-4c4e,2", "1?qm-queuedial|s|1") in new stack
    -- Goto (qm-queuedial,s,1)
    -- Executing [s@qm-queuedial:1] NoOp("Local/60052582880@queuedial-loggedon-4c4e,2", "Outbound call -> A:Agent/1001 N:52582880 Q:q-600 Ch:Zap/g0/52582880") in new stack
    -- Executing [s@qm-queuedial:2] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "CDR(accountcode)=QDIALAGI") in new stack
    -- Executing [s@qm-queuedial:3] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "ST=1229974350") in new stack
    -- Executing [s@qm-queuedial:4] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "GM=QDV-Agent/1001") in new stack
    -- Executing [s@qm-queuedial:5] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "GLOBAL(QDV-Agent/1001)=U") in new stack
  == Setting global variable 'QDV-Agent/1001' to 'U'
    -- Executing [s@qm-queuedial:6] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "GLOBAL(QDV-Agent/1001ans)=0") in new stack
  == Setting global variable 'QDV-Agent/1001ans' to '0'
    -- Executing [s@qm-queuedial:7] Macro("Local/60052582880@queuedial-loggedon-4c4e,2", "queuelog|1229974350|1229974350.11666|q-600|Agent/1001|ENTERQUEUE|-|52582880") in new stack
    -- Executing [s@macro-queuelog:1] QueueLog("Local/60052582880@queuedial-loggedon-4c4e,2", "q-600|1229974350.11666|Agent/1001|ENTERQUEUE|-|52582880|") in new stack
    -- Executing [s@qm-queuedial:8] Dial("Local/60052582880@queuedial-loggedon-4c4e,2", "Zap/g0/52582880|30|gM(queuedial-answer^1229974350.11666^QDV-Agent/1001^q-600^Agent/1001^1229974350)") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called g0/52582880
    -- Zap/2-1 is proceeding passing it to Local/60052582880@queuedial-loggedon-4c4e,2
    -- Local/60052582880@queuedial-loggedon-4c4e,1 is proceeding passing it to SIP/1001-b700f958


pbxccvallejo*CLI> show agents
1001         (Agente 1) available at '1001@from-internal' (musiconhold is 'default')

as you can see it is not passing the agent correct but i dont know why.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: outbound calls not working if logged in via QM
« Reply #10 on: December 23, 2008, 09:03:34 »
The problem seems to be here:

Code: [Select]
exten => _XXX.,n,Set(QDIALER_AGENT=Agent/${AGENTBYCALLERID_${CALLERID(num)}})
This does not seem to work when you logged in from QM, so that you get an empty Agent string (?).

You can use a workaround for this by changing the detection logic and not using Asterisk's built-ins, like for example here: http://queuemetrics.com/faq.jsp#faq-038-agent_tracking

I would really like to know how comes that the AGENTBYCALLERID variable is not set, or if it's the ${CALLERID(num)} that is failing...  >:(