QueueMetrics forum

QueueMetrics => QueueMetrics installation => Topic started by: Nic65535 on May 06, 2008, 15:18:03

Title: QM 1.4 and Trixbox 2.6.1
Post by: Nic65535 on May 06, 2008, 15:18:03
Hi,

I am trying to evaluate QM with Trixbox 2.6.1. I have followed the instructions but dynamic agents do not appear to be able to login or logout using either by dialing 298 (your call cannot be completed as dialed) or through the web page.

Is there a problem with this version of trixbox or do I need updated instructions?

TIA

Nic
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: Wessel on May 06, 2008, 22:54:59
Looks like you did not include the context of the login/logout of the agents in your dial plan

Wessel
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on May 07, 2008, 10:13:03
Yes you're surely missing the implementing logic.
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: Nic65535 on May 07, 2008, 12:17:32
Wessel/QueueMetrics,

Unfortunately I have no idea what you are talking about. I am new to Trixbox and QM.

I have installed TB and QM following the QM_Trixbox_210.pdf from the Loway website.

I have created agents (although I didn't have an agents.conf file in the directory so have created it - maybe this is the issue?)

I have created a queue.

I have added all the lines to the configuration files as detailed:

#include extensions_queuemetrics.conf

[from-internal-custom]
exten => 298,1,AgentCallBackLogin(||@from-internal)

I copied the queuemetrics-extension.conf to the etc\asterisk directory and modified it so @sip reads @from-internal for extension 20.

I've made the changes to the queuemetrics.properties file as detailed.

 but agents cannot login or out through phone or website.

What else do I need to do to add the login/logout of agents to my dial plan - sorry you will have to give 'idiot' steps as I am a newbie and assumed (obviously my error) that the instructions would cover everything I needed.

I have no idea where to go from here so any help gratefully received.

Thanks again

Nic
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on May 08, 2008, 13:21:46
Looks like the correct procedure. Of course it it does not work, something is missing. You should try the following:

1.  Open the Asterisk CLI with high verbosity, eg asterisk -rvvvvvvv
2. Try and run the logoin form QM
3. Post here what happened on the CLI

Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: Nic65535 on May 08, 2008, 13:52:19
QM - here is what happened in the CLI:

  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
    -- Executing [20@queuemetrics:1] Answer("Local/20@queuemetrics-b2c3,2", "") in new stack
    -- Executing [20@queuemetrics:2] NoOp("Local/20@queuemetrics-b2c3,2", " "QM: Logging on Agent/5000 to extension 100@from-internal" ") in new stack
  == Spawn extension (queuemetrics, 20, 3) exited non-zero on 'Local/20@queuemetrics-b2c3,2'
       > Channel Local/20@queuemetrics-b2c3,1 was answered.
    -- Executing [10@queuemetrics:1] Answer("Local/20@queuemetrics-b2c3,1", "") in new stack
    -- Executing [10@queuemetrics:2] Wait("Local/20@queuemetrics-b2c3,1", "10") in new stack
  == Spawn extension (queuemetrics, 10, 2) exited non-zero on 'Local/20@queuemetrics-b2c3,1'
  == Manager 'admin' logged off from 127.0.0.1

The login page still said 'Agent/5000: Agent status cannot be determined' and dialing into the queue produced the 'no agents' message I had setup.

Thanks again

Nic
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on May 08, 2008, 18:00:35
    -- Executing [20@queuemetrics:2] NoOp("Local/20@queuemetrics-b2c3,2", " "QM: Logging on Agent/5000 to extension 100@from-internal" ") in new stack
  == Spawn extension (queuemetrics, 20, 3) exited non-zero on 'Local/20@queuemetrics-b2c3,2'

I see that it goes to step 3 and logs nothing. Can you post the modified queuemetrics-extension.conf?

Also please post the response of the CLI command show agents.
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: Nic65535 on May 09, 2008, 10:23:47
QM,

Ok ran the asterisk CLI (asterisk -r) and then typed 'show agents' - got the response 'No such command 'show agents'.  Is this what I was supposed to do (sorry as I said I'm a newbie at this).

queuemetrics-extension.conf looks like:

;
; ================================================================
; The following dialplan context is used by QueueMetrics
; through the manager API.
; - $Id: extensions_queuemetrics.conf,v 1.2 2007/07/30 15:43:55 lenz Exp $
;
; You should modify it to fit your system.
;
; To enable this file, copy it to /etc/asterisk
; and add the line:
;   #include extensions_queuemetrics.conf
; at the end of  your extensions.conf file.
; ================================================================
;


[queuemetrics]
; extension 0 is a dummy end point
exten => 10,1,Answer
exten => 10,2,Wait(10)
exten => 10,3,Hangup

; extension 11 makes remote monitoring possible
exten => 11,1,Answer
exten => 11,2,NoOp( "QM_AGENT_CODE: ${QM_AGENT_CODE}" )
exten => 11,3,NoOp( "QM_EXT_MONITOR: ${QM_EXT_MONITOR}" )
exten => 11,4,NoOp( "QM_AGENT_EXT: ${QM_AGENT_EXT}" )
exten => 11,5,ChanSpy(${QM_AGENT_CODE})
exten => 11,6,Hangup

; extension 12: set call status code
exten => 12,1,Answer
exten => 12,2,NoOp( "QM: Setting call status '${CALLSTATUS}' on call '${CALLID}' for agent '${AGENTCODE}'" )
exten => 12,3,System( echo "${EPOCH}|${CALLID}|NONE|Agent/${AGENTCODE}|CALLSTATUS|${CALLSTATUS}" >> /var/log/asterisk/queue_log )
exten => 12,4,Hangup

; extension 20: agent callback login
;               For this to work, there must be no password on the agent.
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

; extension 21: agent callback logoff
exten => 21,1,Answer
exten => 21,2,NoOp( "QM: Logging off Agent/${AGENTCODE}" )
exten => 21,3,System(asterisk -rx "agent logoff Agent/${AGENTCODE}")
exten => 21,4,Hangup

; extension 22: agent pause (with pause code)
exten => 22,1,Answer
exten => 22,2,NoOp( "QM: Pausing Agent/${AGENTCODE} with pause reason '${PAUSEREASON}' " )
exten => 22,3,PauseQueueMember(|Agent/${AGENTCODE})
exten => 22,4,System( echo "${EPOCH}|${UNIQUEID}|NONE|Agent/${AGENTCODE}|PAUSEREASON|${PAUSEREASON}" >> /var/log/asterisk/queue_log )
exten => 22,5,Hangup

; extension 23: agent unpause
exten => 23,1,Answer
exten => 23,2,NoOp( "QM: Unpausing Agent/${AGENTCODE} " )
exten => 23,3,UnpauseQueueMember(|Agent/${AGENTCODE})
exten => 23,4,Hangup


; --------------------------------------------------------------------
; $Log: extensions_queuemetrics.conf,v $
; Revision 1.2  2007/07/30 15:43:55  lenz
; Bug #173: default compatibili con TrixBox.
;
; Revision 1.1  2007/06/18 13:30:24  lenz
; Prima versione.
;
;
;


Thanks again

Nic
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on May 10, 2008, 09:00:28
Looks like your system is not default-loading Agent channels, so when it tries to login  Agent/5000 it crashes because it knows not of Agent/... channels.

Try this:

Code: [Select]
module unload chan_agent.so
module load chan_agent.so

and see if after that the commands agent show or show agents work.
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: Nic65535 on May 12, 2008, 11:34:28
I'm assuming you wanted me to do this from the asterisk CLI? If so then:

module unload chan_agent.so
  == Unregistered channel type 'Agent'

module load chan_agent.so
-bash: module: command not found

Nic
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on May 13, 2008, 10:55:31
Ok - can you restart and check if the AgentCallBackLogin command is present?
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: Nic65535 on May 13, 2008, 12:19:39
Ok   - so that seems to have fixed a lot of problems - I should have know to reboot !

So:

Now I can logon / logoff as an agent by dialing 298 and following the prompts.

I can logoff, pause and unpause through the website but I cannot logon?

Almost there ....

Nic
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on May 15, 2008, 11:15:15
Well you're almost there :)
Are you sure that the CONTEXT you specify in order to logon is correct? Try setting max verbose and logging on and post here what is shown on the CLI....
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: Nic65535 on May 29, 2008, 10:18:18
Loway,

Just wanted to report back that the login error was mine - I had not read the 'no password' instruction when creating agents. I have now removed my agent password(s) and it looks as if I have it working !!!!

Thanks for all your help - the magic was to reset Asterisk rather than to rely on the config reload.

Looking forward to getting this trial up and running and seeing how the rest of it pans out.

Thanks again for the help.

Nic
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on May 29, 2008, 11:11:47
That's good, thanks for letting us know the problems were solved!
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on May 29, 2008, 22:48:39
I had the same problem!!
I cant make a calls outbound the quemetrics
trixbox does not have the .conf files
agentes.conf
extensions_queuemetrics.conf
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on May 30, 2008, 10:16:38
You need to install them manually - see the tutorial at http://queuemetrics.com/download/QM_TrixBox_210.pdf
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on May 30, 2008, 20:40:45
the problem are serious

trixbox1*CLI> show agents
No such command 'show agents'

I think the agents module are not starting
how I do this?
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on May 31, 2008, 09:39:36
Try this:

Code: [Select]
aleph*CLI> module show like agent
Module                         Description                              Use Count
chan_agent.so                  Agent Proxy Channel                      0
1 modules loaded


If missing

Code: [Select]
module load chan_agent.so
and edit /etc/asterisk/modules.conf in order to have the moule loaded at startup.



Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 02, 2008, 16:41:50
the module is up

Module                         Description                              Use Count
chan_agent.so                  Agent Proxy Channel                      0
1 modules loaded

  ::)

But I cant dial to callback login

here is the config

extensions_custom.conf
; This file contains example extensions_custom.conf entries.
; extensions_custom.conf should be used to include customizations
; to AMP's Asterisk dialplan.

; All custom context should contain the string 'custom' in it's name

; Extensions in AMP have access to the 'from-internal' context.
; The context 'from-internal-custom' is included in 'from-internal' by default

#include extensions_hud.conf
#include extensions_queuemetrics.conf

[from-internal-custom]

exten => 400,1,AgentCallBackLogin(||@from-internal)

########################################
When I dial 400

 == Spawn extension (from-internal, 400, 1) exited non-zero on 'SIP/27-b7c01c88                    '
    -- Executing [h@from-internal:1] Macro("SIP/27-b7c01c88", "hangupcall") in n                    ew stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/27-b7c01c88", "w") in new                     stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/27-b7c01c88", "") in new stac                    k
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/27-b7c01c88", "1?skiprg") in                     new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/27-b7c01c88", "1?skipblkvm")                     in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/27-b7c01c88", "1?theend") in                     new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/27-b7c01c88", "") in new st                    ack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-b7c01c                    88' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-b7c01c                    88'

...and I got busy sinal
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 02, 2008, 17:50:37
I had change the callback login to defalult "298" e got a diferentt message?

Verbosity is at least 7
    -- Executing [298@from-internal:1] ResetCDR("SIP/27-b7c072f8", "") in new stack
    -- Executing [298@from-internal:2] NoCDR("SIP/27-b7c072f8", "") in new stack
    -- Executing [298@from-internal:3] Wait("SIP/27-b7c072f8", "1") in new stack
    -- Executing [298@from-internal:4] Playback("SIP/27-b7c072f8", "silence/1&cannot-complete-as-dialed&check-number-dial-again|noanswer") in new stack
    -- <SIP/27-b7c072f8> Playing 'silence/1' (language 'en')
    -- <SIP/27-b7c072f8> Playing 'cannot-complete-as-dialed' (language 'en')
    -- <SIP/27-b7c072f8> Playing 'check-number-dial-again' (language 'en')
  == Spawn extension (from-internal, 298, 4) exited non-zero on 'SIP/27-b7c072f8'
    -- Executing [h@from-internal:1] Macro("SIP/27-b7c072f8", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/27-b7c072f8", "w") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/27-b7c072f8", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/27-b7c072f8", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/27-b7c072f8", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/27-b7c072f8", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/27-b7c072f8", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-b7c072f8' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-b7c072f8'
 :-\
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 03, 2008, 10:38:24
the module is up

Module                         Description                              Use Count
chan_agent.so                  Agent Proxy Channel                      0
1 modules loaded

  ::)

But I cant dial to callback login

here is the config

extensions_custom.conf
; This file contains example extensions_custom.conf entries.
; extensions_custom.conf should be used to include customizations
; to AMP's Asterisk dialplan.

; All custom context should contain the string 'custom' in it's name

; Extensions in AMP have access to the 'from-internal' context.
; The context 'from-internal-custom' is included in 'from-internal' by default

#include extensions_hud.conf
#include extensions_queuemetrics.conf

[from-internal-custom]

exten => 400,1,AgentCallBackLogin(||@from-internal)


I have a feeling that somehow this extension no. matches something else in your config.

Try adding a line:

Code: [Select]
[from-internal-custom]
exten => 400,1,NoOp(Hello World)

and try changing 400 to 401, 500, 200 or any other number. At some point you should see "hello world" printed.


Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 03, 2008, 19:33:01
I guess I cant change the exensions
the freepbx has a option "extensiom customs" in the meu
maybe is working with other files

Verbosity is at least 3
    -- Executing [500@from-internal:1] ResetCDR("SIP/27-09b40368", "") in new stack
    -- Executing [500@from-internal:2] NoCDR("SIP/27-09b40368", "") in new stack
    -- Executing [500@from-internal:3] Wait("SIP/27-09b40368", "1") in new stack
    -- Executing [500@from-internal:4] Playback("SIP/27-09b40368", "silence/1&cannot-complete-as-dialed&check-number-dial-again|noanswer") in new stack
    -- <SIP/27-09b40368> Playing 'silence/1' (language 'en')
    -- <SIP/27-09b40368> Playing 'cannot-complete-as-dialed' (language 'en')
    -- <SIP/27-09b40368> Playing 'check-number-dial-again' (language 'en')
  == Spawn extension (from-internal, 500, 4) exited non-zero on 'SIP/27-09b40368'
    -- Executing [h@from-internal:1] Macro("SIP/27-09b40368", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/27-09b40368", "w") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/27-09b40368", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/27-09b40368", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/27-09b40368", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/27-09b40368", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/27-09b40368", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-09b40368' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-09b40368'
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 04, 2008, 10:36:01
No this does not make sense. There must be a way to add a custom extension to it.
Have you tried asking on the FreePBX forums as well?
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 04, 2008, 15:49:06
I will try this
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 04, 2008, 17:53:23
I did e they say to me:

"The call has been deprecated, you may want to revisit it. Also, do keep in mind that FreePBX Queue configurations don't use chan_agent type agents so you would need to do all your agents.conf and queue stuff somewhat manually and you will run into feature issues with things like subsequent call transfers being blocked from going to voicemail, and similar, if you use agents.conf agents."

 ??? ??? ???
What can I do now?
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 05, 2008, 10:31:02
If you run an ACD system, having things like features disabled is a bonanza.  ;D So dont worry about that. You just need to understand how to get a free hook in the dialplan so you have a number to call to login.
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 05, 2008, 20:09:52
But in the queue metrics manual, they say to use "298"... I try that and dont works :o

If I downgrade trixbox, I can fix this problem?
Wha version queue metrics recomend?
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 06, 2008, 09:25:21
You can try an older version of TB, like a 2.5.x.
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 06, 2008, 18:00:55
We just tried TrixBox 2.6.1.0 - I confirm there is no problem in changing the dialplan at [from-internal-custom] and adding the 298 extension (unless you use 298 for some other extension on the system).

There is instead an important problem with AgentCallBackLogin -> see http://forum.queuemetrics.com/index.php?topic=276.0 to fix it.
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 09, 2008, 20:57:12
I perform a new install of trixbox
update all modules

create two extensions... and one trunk

and now following the topic
http://forum.queuemetrics.com/index.php?topic=276.0

in this moment im downloading the queuemetrics...

lets try again  8)
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 09, 2008, 21:58:30
Now callbacklogin 299 is working fine
monitoring and recording incoming calls to queue 200 too  ::) ::) ::)

I will test outgoing now
thanks quemetrics
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 09, 2008, 22:10:13
the firs problem...

the QM manual says

"Enabling outgoing calls in TrixBox
First of all you edit the file /etc/asterisk/extension_custom.conf and append the
following piece of dial plan:
[queuedial]
exten => _XXX.,1,SetVar(MY_QUE=${EXTEN:0:3})
exten => _XXX.,2,SetVar(MY_NUM=${EXTEN:3})
exten => _XXX.,3,SetVar(MY_AGENT=${CALLERIDNUM})
exten => _XXX.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _XXX.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten =>
_XXX.,6,DeadAGI(queueDial.agi|${MY_NUM}|Zap/g0/${MY_NUM}|q-
${MY_QUE}|Agent/${MY_AGENT})
exten => _XXX.,7,Congestion"

I dont have the file /etc/asterisk/extension_custom.conf
just have the file /etc/asterisk/extensions_custom.conf

should I create  ??? ??? ????
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 10, 2008, 09:17:16
No it's a typo  ;D
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 10, 2008, 16:07:13
Do you mean a type error?

I have edited the extensions_custom.conf

But I dont have a Zaptel adpter... I have Sip provider trunk.

I have named the trunk sip.provider.net

[queuedial]
exten => _XXX.,1,SetVar(MY_QUE=${EXTEN:0:3})
exten => _XXX.,2,SetVar(MY_NUM=${EXTEN:3})
exten => _XXX.,3,SetVar(MY_AGENT=${CALLERIDNUM})
exten => _XXX.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _XXX.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten =>
_XXX.,6,DeadAGI(queueDial.agi|${MY_NUM}|SIP/sip.provider.net/${MY_NUM}|q-
${MY_QUE}|Agent/${MY_AGENT})
exten => _XXX.,7,Congestion

And create a custom like a manual.

But

I want to dial 0800 (yes, is a valid number)
dial 8 1 2 3 0 8 0 0

and this happens:

recordingcheck|20080610-100613|1213106773.100: Outbound recording not enabled
  == Spawn extension (queuedial, 1230800, 1) exited non-zero on 'Local/1230800@queuedial-f9e4,2'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-08474ef0' in macro 'outisbusy'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-08474ef0'
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 11, 2008, 16:31:47
I guess you created a trunk and everything else as per the config guide?

From your log nothing is visible.
Try set verbosity 100 and see what happens.
If nothing changes - try show dialplan queuemetrics and see what is preinted.


Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 11, 2008, 17:29:00
Yes I do.

Connected to Asterisk 1.4.19-1 RPM by vc-rpms@voipconsulting.nl currently running on trixbox1 (pid = 2526)
Verbosity is at least 10
    -- Executing [81230800@from-internal:1] Macro("SIP/27-0908abe0", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/27-0908abe0", "user-callerid: device 27") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/27-0908abe0", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/27-0908abe0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/27-0908abe0", "1|Set|REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/27-0908abe0", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/27-0908abe0", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/27-0908abe0", "AMPUSERCIDNAME=lincoln") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/27-0908abe0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/27-0908abe0", "AMPUSERCID=27") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/27-0908abe0", "CALLERID(all)="lincoln" <27>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/27-0908abe0", "REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/27-0908abe0", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/27-0908abe0", "TTL:  ARG1: SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/27-0908abe0", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/27-0908abe0", "Using CallerID "lincoln" <27>") in new stack
    -- Executing [81230800@from-internal:2] Set("SIP/27-0908abe0", "_NODEST=") in new stack
    -- Executing [81230800@from-internal:3] Macro("SIP/27-0908abe0", "record-enable|27|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/27-0908abe0", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/27-0908abe0", "recordingcheck|20080611-112650|1213198010.4") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20080611-112650|1213198010.4: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/27-0908abe0", "No recording needed") in new stack
    -- Executing [81230800@from-internal:4] Macro("SIP/27-0908abe0", "dialout-trunk|1|1230800||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/27-0908abe0", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/27-0908abe0", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/27-0908abe0", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/27-0908abe0", "DIAL_NUMBER=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/27-0908abe0", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/27-0908abe0", "GROUP()=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/27-0908abe0", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/27-0908abe0", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/27-0908abe0", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/27-0908abe0", "outbound-callerid|1") in new stack
    -- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/27-0908abe0", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/27-0908abe0", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/27-0908abe0", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/27-0908abe0", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/27-0908abe0", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/27-0908abe0", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/27-0908abe0", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/27-0908abe0", "1?usercid") in new stack
    -- Goto (macro-outbound-callerid,s,18)
    -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/27-0908abe0", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/27-0908abe0", "CallerID set to "lincoln" <27>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/27-0908abe0", "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/27-0908abe0", "OUTNUM=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/27-0908abe0", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/27-0908abe0", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/27-0908abe0", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/27-0908abe0", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/27-0908abe0", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/27-0908abe0", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/27-0908abe0", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/27-0908abe0", "post_num=@queuedial/n".") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/27-0908abe0", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/27-0908abe0", "the_num=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/27-0908abe0", "Local/1230800@queuedial/n.|300|") in new stack
    -- Called 1230800@queuedial/n.
  == Spawn extension (queuedial, 1230800, 1) exited non-zero on 'Local/1230800@queuedial-0666,2'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:28] Goto("SIP/27-0908abe0", "s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/27-0908abe0", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/27-0908abe0", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
    -- Executing [81230800@from-internal:5] Macro("SIP/27-0908abe0", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/27-0908abe0", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/27-0908abe0> Playing 'all-circuits-busy-now' (language 'en')
    -- Executing [s@macro-outisbusy:2] Playback("SIP/27-0908abe0", "pls-try-call-later|noanswer") in new stack
    -- <SIP/27-0908abe0> Playing 'pls-try-call-later' (language 'en')
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-0908abe0' in macro 'outisbusy'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-0908abe0'


##############################################

trixbox1*CLI> show dialplan queuemetrics
[ Context 'queuemetrics' created by 'pbx_config' ]
  '10' =>           1. Answer()                                   [pbx_config]
                    2. Wait(10)                                   [pbx_config]
                    3. Hangup()                                   [pbx_config]
  '11' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM_AGENT_CODE: ${QM_AGENT_CODE}" )  [pbx_config]
                    3. NoOp( "QM_EXT_MONITOR: ${QM_EXT_MONITOR}" ) [pbx_config]
                    4. NoOp( "QM_AGENT_EXT: ${QM_AGENT_EXT}" )    [pbx_config]
                    5. ChanSpy(${QM_AGENT_CODE})                  [pbx_config]
                    6. Hangup()                                   [pbx_config]
  '12' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM: Setting call status ${CALLSTATUS} on call ${CALLID} for agent ${AGENTCODE}" ) [pbx_config]
                    3. System( echo "${EPOCH}|${CALLID}|NONE|Agent/${AGENTCODE}|CALLSTATUS|${CALLSTATUS}" >> /var/log/asterisk/queue_log ) [pbx_config]
                    4. Hangup()                                   [pbx_config]
  '20' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM: Logging on Agent/${AGENTCODE} to extension ${AGENT_EXT}@from-internal" ) [pbx_config]
                    3. AgentCallBackLogin(${AGENTCODE}||${AGENT_EXT}@from-internal) [pbx_config]
                    4. Hangup()                                   [pbx_config]
  '21' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM: Logging off Agent/${AGENTCODE}" ) [pbx_config]
                    3. System(asterisk -rx "agent logoff Agent/${AGENTCODE}") [pbx_config]
                    4. Hangup()                                   [pbx_config]
  '22' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM: Pausing Agent/${AGENTCODE} with pause reason ${PAUSEREASON} " ) [pbx_config]
                    3. PauseQueueMember(|Agent/${AGENTCODE})      [pbx_config]
                    4. System( echo "${EPOCH}|${UNIQUEID}|NONE|Agent/${AGENTCODE}|PAUSEREASON|${PAUSEREASON}" >> /var/log/asterisk/queue_log ) [pbx_config]
                    5. Hangup()                                   [pbx_config]
  '23' =>           1. Answer()                                   [pbx_config]
                    2. NoOp( "QM: Unpausing Agent/${AGENTCODE} " ) [pbx_config]
                    3. UnpauseQueueMember(|Agent/${AGENTCODE})    [pbx_config]
                    4. Hangup()                                   [pbx_config]

-= 7 extensions (30 priorities) in 1 context. =-


Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 12, 2008, 08:46:17
Looks like it's not being executed at all - see:

    -- Called 1230800@queuedial/n.
  == Spawn extension (queuedial, 1230800, 1) exited non-zero on 'Local/1230800@queuedial-0666,2'
  == Everyone is busy/congested at this time (1:0/0/1)

Try a show dialplan queuedial - what do you get?
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 12, 2008, 16:17:29
-= 1 extension (6 priorities) in 1 context. =-
trixbox1*CLI> show dialplan queuedial
[ Context 'queuedial' created by 'pbx_config' ]
  '_XXX.' =>        1. SetVar(MY_QUE=${EXTEN:0:3})                [pbx_config]
                    2. SetVar(MY_NUM=${EXTEN:3})                  [pbx_config]
                    3. SetVar(MY_AGENT=${CALLERIDNUM})            [pbx_config]
                    4. NoOp(Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}) [pbx_config]
                    5. MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|) [pbx_config]
                    7. Congestion()                               [pbx_config]
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 13, 2008, 09:31:22
Aren't you missing line #6? :)
BTW, try changing the SetVar() to Set() and see if that changes anything.
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 16, 2008, 21:06:30
I have change the extensions_custom

and make a call

Verbosity was 3 and is now 100
    -- Executing [80800@from-internal:1] Macro("SIP/27-0a03b808", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/27-0a03b808", "user-callerid: device 27") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/27-0a03b808", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/27-0a03b808", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/27-0a03b808", "1|Set|REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/27-0a03b808", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/27-0a03b808", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/27-0a03b808", "AMPUSERCIDNAME=lincoln") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/27-0a03b808", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/27-0a03b808", "AMPUSERCID=27") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/27-0a03b808", "CALLERID(all)="lincoln" <27>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/27-0a03b808", "REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/27-0a03b808", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/27-0a03b808", "TTL:  ARG1: SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/27-0a03b808", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/27-0a03b808", "Using CallerID "lincoln" <27>") in new stack
    -- Executing [80800@from-internal:2] Set("SIP/27-0a03b808", "_NODEST=") in new stack
    -- Executing [80800@from-internal:3] Macro("SIP/27-0a03b808", "record-enable|27|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/27-0a03b808", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/27-0a03b808", "recordingcheck|20080616-153042|1213644642.22") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20080616-153042|1213644642.22: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/27-0a03b808", "No recording needed") in new stack
    -- Executing [80800@from-internal:4] Macro("SIP/27-0a03b808", "dialout-trunk|1|0800||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/27-0a03b808", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/27-0a03b808", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/27-0a03b808", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/27-0a03b808", "DIAL_NUMBER=0800") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/27-0a03b808", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/27-0a03b808", "GROUP()=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/27-0a03b808", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/27-0a03b808", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/27-0a03b808", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/27-0a03b808", "outbound-callerid|1") in new stack
    -- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/27-0a03b808", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/27-0a03b808", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/27-0a03b808", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/27-0a03b808", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/27-0a03b808", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/27-0a03b808", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/27-0a03b808", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/27-0a03b808", "1?usercid") in new stack
    -- Goto (macro-outbound-callerid,s,18)
    -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/27-0a03b808", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/27-0a03b808", "CallerID set to "lincoln" <27>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/27-0a03b808", "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/27-0a03b808", "OUTNUM=0800") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/27-0a03b808", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/27-0a03b808", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/27-0a03b808", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/27-0a03b808", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/27-0a03b808", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/27-0a03b808", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/27-0a03b808", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/27-0a03b808", "post_num=@queuedial/n".") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/27-0a03b808", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/27-0a03b808", "the_num=0800") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/27-0a03b808", "Local/0800@queuedial/n.|300|") in new stack
    -- Called 0800@queuedial/n.
  == Spawn extension (queuedial, 0800, 1) exited non-zero on 'Local/0800@queuedial-df31,2'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:28] Goto("SIP/27-0a03b808", "s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/27-0a03b808", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/27-0a03b808", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
    -- Executing [80800@from-internal:5] Macro("SIP/27-0a03b808", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/27-0a03b808", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/27-0a03b808> Playing 'all-circuits-busy-now' (language 'en')
    -- Executing [s@macro-outisbusy:2] Playback("SIP/27-0a03b808", "pls-try-call-later|noanswer") in new stack
    -- <SIP/27-0a03b808> Playing 'pls-try-call-later' (language 'en')
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-0a03b808' in macro 'outisbusy'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-0a03b808'
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 17, 2008, 10:49:10
Code: [Select]
Called 0800@queuedial/n.
  == Spawn extension (queuedial, 0800, 1) exited non-zero on 'Local/0800@queuedial-df31,2'


It should be 1230800 not 0800.

I find it strange that you have NO log at all from the queuedial...
Try also changing the SetVar() to Set() in the queuedial context.
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 18, 2008, 19:07:05
here is

[queuedial]
exten => _XXX.,1,Set(MY_QUE=${EXTEN:0:3})
exten => _XXX.,2,Set(MY_NUM=${EXTEN:3})
exten => _XXX.,3,Set(MY_AGENT=${CALLERIDNUM})
exten => _XXX.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _XXX.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten =>
_XXX.,6,DeadAGI(queueDial.agi|${MY_NUM}|SIP/user.provider.net/${MY_NUM}|q-
${MY_QUE}|Agent/${MY_AGENT})
exten => _XXX.,7,Congestion

I have dial "81230800"  :-\

8 is the prefix like a manual...

Verbosity was 7 and is now 10
    -- Executing [81230800@from-internal:1] Macro("SIP/27-0831f968", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/27-0831f968", "user-callerid: device 27") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/27-0831f968", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/27-0831f968", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/27-0831f968", "1|Set|REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/27-0831f968", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/27-0831f968", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/27-0831f968", "AMPUSERCIDNAME=lincoln") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/27-0831f968", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/27-0831f968", "AMPUSERCID=27") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/27-0831f968", "CALLERID(all)="lincoln" <27>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/27-0831f968", "REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/27-0831f968", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/27-0831f968", "TTL:  ARG1: SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/27-0831f968", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/27-0831f968", "Using CallerID "lincoln" <27>") in new stack
    -- Executing [81230800@from-internal:2] Set("SIP/27-0831f968", "_NODEST=") in new stack
    -- Executing [81230800@from-internal:3] Macro("SIP/27-0831f968", "record-enable|27|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/27-0831f968", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/27-0831f968", "recordingcheck|20080618-130552|1213808752.12") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20080618-130552|1213808752.12: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/27-0831f968", "No recording needed") in new stack
    -- Executing [81230800@from-internal:4] Macro("SIP/27-0831f968", "dialout-trunk|1|1230800||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/27-0831f968", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/27-0831f968", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/27-0831f968", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/27-0831f968", "DIAL_NUMBER=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/27-0831f968", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/27-0831f968", "GROUP()=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/27-0831f968", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/27-0831f968", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/27-0831f968", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/27-0831f968", "outbound-callerid|1") in new stack
    -- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/27-0831f968", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/27-0831f968", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/27-0831f968", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/27-0831f968", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/27-0831f968", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/27-0831f968", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/27-0831f968", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/27-0831f968", "1?usercid") in new stack
    -- Goto (macro-outbound-callerid,s,18)
    -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/27-0831f968", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/27-0831f968", "CallerID set to "lincoln" <27>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/27-0831f968", "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/27-0831f968", "OUTNUM=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/27-0831f968", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/27-0831f968", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/27-0831f968", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/27-0831f968", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/27-0831f968", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/27-0831f968", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/27-0831f968", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/27-0831f968", "post_num=@queuedial/n".") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/27-0831f968", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/27-0831f968", "the_num=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/27-0831f968", "Local/1230800@queuedial/n.|300|") in new stack
    -- Called 1230800@queuedial/n.
    -- Executing [1230800@queuedial:1] Set("Local/1230800@queuedial-e3b2,2", "MY_QUE=123") in new stack
    -- Executing [1230800@queuedial:2] Set("Local/1230800@queuedial-e3b2,2", "MY_NUM=0800") in new stack
    -- Executing [1230800@queuedial:3] Set("Local/1230800@queuedial-e3b2,2", "MY_AGENT=") in new stack
    -- Executing [1230800@queuedial:4] NoOp("Local/1230800@queuedial-e3b2,2", "Ag:  N: 0800 Q: 123") in new stack
    -- Executing [1230800@queuedial:5] MixMonitor("Local/1230800@queuedial-e3b2,2", "Q-123-1213808752.14.wav|b|") in new stack
  == Auto fallthrough, channel 'Local/1230800@queuedial-e3b2,2' status is 'UNKNOWN'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:28] Goto("SIP/27-0831f968", "s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/27-0831f968", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/27-0831f968", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
    -- Executing [81230800@from-internal:5] Macro("SIP/27-0831f968", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/27-0831f968", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/27-0831f968> Playing 'all-circuits-busy-now' (language 'en')
  == Begin MixMonitor Recording Local/1230800@queuedial-e3b2,2
  == End MixMonitor Recording Local/1230800@queuedial-e3b2,2
    -- Executing [s@macro-outisbusy:2] Playback("SIP/27-0831f968", "pls-try-call-later|noanswer") in new stack
    -- <SIP/27-0831f968> Playing 'pls-try-call-later' (language 'en')
    -- Executing [s@macro-outisbusy:3] Macro("SIP/27-0831f968", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/27-0831f968", "w") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/27-0831f968", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/27-0831f968", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/27-0831f968", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/27-0831f968", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/27-0831f968", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-0831f968' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-0831f968' in macro 'outisbusy'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-0831f968'
trixbox1*CLI>

Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 20, 2008, 09:10:35
Getting better now:

Code: [Select]
-- Called 1230800@queuedial/n.
    -- Executing [1230800@queuedial:1] Set("Local/1230800@queuedial-e3b2,2", "MY_QUE=123") in new stack
    -- Executing [1230800@queuedial:2] Set("Local/1230800@queuedial-e3b2,2", "MY_NUM=0800") in new stack
    -- Executing [1230800@queuedial:3] Set("Local/1230800@queuedial-e3b2,2", "MY_AGENT=") in new stack
    -- Executing [1230800@queuedial:4] NoOp("Local/1230800@queuedial-e3b2,2", "Ag:  N: 0800 Q: 123") in new stack
    -- Executing [1230800@queuedial:5] MixMonitor("Local/1230800@queuedial-e3b2,2", "Q-123-1213808752.14.wav|b|") in new stack
  == Auto fallthrough, channel 'Local/1230800@queuedial-e3b2,2' status is 'UNKNOWN'

Now it looks like DeadAGI is not executing. Have you checked you have the AGI file in place, and it's executable?
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 23, 2008, 20:11:03
No
I dont know how do this

but I read this
http://forum.queuemetrics.com/index.php?topic=261.0

And I have got this:

-- Executing [81230800@from-internal:1] Macro("SIP/27-093b8758", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/27-093b8758", "user-callerid: device 27") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/27-093b8758", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/27-093b8758", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/27-093b8758", "1|Set|REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/27-093b8758", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/27-093b8758", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/27-093b8758", "AMPUSERCIDNAME=lincoln") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/27-093b8758", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/27-093b8758", "AMPUSERCID=27") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/27-093b8758", "CALLERID(all)="lincoln" <27>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/27-093b8758", "REALCALLERIDNUM=27") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/27-093b8758", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/27-093b8758", "TTL:  ARG1: SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/27-093b8758", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/27-093b8758", "Using CallerID "lincoln" <27>") in new stack
    -- Executing [81230800@from-internal:2] Set("SIP/27-093b8758", "_NODEST=") in new stack
    -- Executing [81230800@from-internal:3] Macro("SIP/27-093b8758", "record-enable|27|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/27-093b8758", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/27-093b8758", "recordingcheck|20080623-141004|1214244604.81") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20080623-141004|1214244604.81: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/27-093b8758", "No recording needed") in new stack
    -- Executing [81230800@from-internal:4] Macro("SIP/27-093b8758", "dialout-trunk|3|1230800||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/27-093b8758", "DIAL_TRUNK=3") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/27-093b8758", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/27-093b8758", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/27-093b8758", "DIAL_NUMBER=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/27-093b8758", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/27-093b8758", "GROUP()=OUT_3") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/27-093b8758", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/27-093b8758", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/27-093b8758", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/27-093b8758", "outbound-callerid|3") in new stack
    -- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/27-093b8758", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/27-093b8758", "REALCALLERIDNUM is 27") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/27-093b8758", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/27-093b8758", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/27-093b8758", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/27-093b8758", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/27-093b8758", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/27-093b8758", "1?usercid") in new stack
    -- Goto (macro-outbound-callerid,s,18)
    -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/27-093b8758", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/27-093b8758", "CallerID set to "lincoln" <27>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/27-093b8758", "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/27-093b8758", "OUTNUM=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/27-093b8758", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/27-093b8758", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/27-093b8758", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/27-093b8758", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/27-093b8758", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/27-093b8758", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/27-093b8758", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/27-093b8758", "post_num=@queuedial/n") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/27-093b8758", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/27-093b8758", "the_num=1230800") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/27-093b8758", "Local/1230800@queuedial/n|300|") in new stack
    -- Called 1230800@queuedial/n
  == Spawn extension (queuedial, 1230800, 1) exited non-zero on 'Local/1230800@queuedial-bd07,2'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:28] Goto("SIP/27-093b8758", "s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/27-093b8758", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/27-093b8758", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
    -- Executing [81230800@from-internal:5] Macro("SIP/27-093b8758", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/27-093b8758", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/27-093b8758> Playing 'all-circuits-busy-now' (language 'en')
    -- Executing [s@macro-outisbusy:2] Playback("SIP/27-093b8758", "pls-try-call-later|noanswer") in new stack
    -- <SIP/27-093b8758> Playing 'pls-try-call-later' (language 'en')
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-093b8758' in macro 'outisbusy'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/27-093b8758'
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 24, 2008, 12:46:30
I do not even see the MY_QUE=.... entries that were in te previous log. Did you use Set() as specified above?
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 24, 2008, 22:25:19
here is queuedial

[queuedial]
exten => _XXX.,1,Set(MY_QUE=${EXTEN:0:3})
exten => _XXX.,2,Set(MY_NUM=${EXTEN:3})
exten => _XXX.,3,Set(MY_AGENT=${CALLERIDNUM})
exten => _XXX.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _XXX.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten => _XXX.,6,DeadAGI(queueDial.agi|${MY_NUM}|SIP/user.provider.ent/${MY_NUM}|q-
${MY_QUE}|Agent/${MY_AGENT})
exten => _XXX.,7,Congestion

And there is what happens:

Verbosity was 3 and is now 10
    -- Executing [81230800@from-internal:1] Macro("SIP/27-09dfc990", "user-callerid|SKIPTTL|")              in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/27-09dfc990", "user-callerid: device 27")              in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/27-09dfc990", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/27-09dfc990", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/27-09dfc990", "1|Set|REALCALLERIDNUM=27"             ) in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/27-09dfc990", "REALCALLERIDNUM is 27") in              new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/27-09dfc990", "AMPUSER=27") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/27-09dfc990", "AMPUSERCIDNAME=lincoln") in              new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/27-09dfc990", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/27-09dfc990", "AMPUSERCID=27") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/27-09dfc990", "CALLERID(all)="lincoln" <27             >") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/27-09dfc990", "REALCALLERIDNUM=27") in new              stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/27-09dfc990", "0|Set|CHANNEL(language)=             ") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/27-09dfc990", "TTL:  ARG1: SKIPTTL") in n             ew stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/27-09dfc990", "1?continue") in new stac             k
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/27-09dfc990", "Using CallerID "lincoln" <             27>") in new stack
    -- Executing [81230800@from-internal:2] Set("SIP/27-09dfc990", "_NODEST=") in new stack
    -- Executing [81230800@from-internal:3] Macro("SIP/27-09dfc990", "record-enable|27|OUT|") i             n new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/27-09dfc990", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/27-09dfc990", "recordingcheck|20080624-1622             04|1214338924.13") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20080624-162204|1214338924.13: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/27-09dfc990", "No recording needed") in ne             w stack
    -- Executing [81230800@from-internal:4] Macro("SIP/27-09dfc990", "dialout-trunk|3|1230800||             ") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/27-09dfc990", "DIAL_TRUNK=3") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/27-09dfc990", "0|Authenticate|") in new              stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/27-09dfc990", "0?disabletrunk|1") in new              stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/27-09dfc990", "DIAL_NUMBER=1230800") in new              stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/27-09dfc990", "DIAL_TRUNK_OPTIONS=tr") in n             ew stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/27-09dfc990", "GROUP()=OUT_3") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/27-09dfc990", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/27-09dfc990", "0?skipoutcid") in new sta             ck
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/27-09dfc990", "DIAL_TRUNK_OPTIONS=") in ne             w stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/27-09dfc990", "outbound-callerid|3") in              new stack
    -- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/27-09dfc990", "1?start") in new stac             k
    -- Goto (macro-outbound-callerid,s,3)
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/27-09dfc990", "REALCALLERIDNUM is 27")              in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/27-09dfc990", "1?normcid") in new st             ack
    -- Goto (macro-outbound-callerid,s,9)
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/27-09dfc990", "USEROUTCID=") in new sta             ck
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/27-09dfc990", "EMERGENCYCID=") in new              stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/27-09dfc990", "TRUNKOUTCID=") in new s             tack
    -- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/27-09dfc990", "1?trunkcid") in new              stack
    -- Goto (macro-outbound-callerid,s,16)
    -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/27-09dfc990", "1?usercid") in new s             tack
    -- Goto (macro-outbound-callerid,s,18)
    -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/27-09dfc990", "1?report") in new st             ack
    -- Goto (macro-outbound-callerid,s,22)
    -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/27-09dfc990", "CallerID set to "linco             ln" <27>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/27-09dfc990", "fixlocalprefix") in new sta             ck
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/27-09dfc990", "OUTNUM=1230800") in new sta             ck
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/27-09dfc990", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/27-09dfc990", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/27-09dfc990", "dialout-trunk-predial-hoo             k|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/27-09dfc990", "0?bypass|1") in new stac             k
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/27-09dfc990", "1?customtrunk") in new s             tack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/27-09dfc990", "pre_num=AMP:Local/") in new              stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/27-09dfc990", "the_num=OUTNUM") in new sta             ck
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/27-09dfc990", "post_num=@queuedial/n") in              new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/27-09dfc990", "1?outnum:skipoutnum") in              new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/27-09dfc990", "the_num=1230800") in new st             ack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/27-09dfc990", "Local/1230800@queuedial/n|             300|") in new stack
    -- Called 1230800@queuedial/n
    -- Executing [1230800@queuedial:1] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_QUEUE=q-1             23") in new stack
    -- Executing [1230800@queuedial:2] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_NUMBER=08             00") in new stack
    -- Executing [1230800@queuedial:3] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_AGENT=Age             nt/27") in new stack
    -- Executing [1230800@queuedial:4] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_CHANNEL=S             IP/0800") in new stack
    -- Executing [1230800@queuedial:5] Set("Local/1230800@queuedial-f7bd,2", "QueueName=q-123")              in new stack
    -- Executing [1230800@queuedial:6] MixMonitor("Local/1230800@queuedial-f7bd,2", "Q-q-123-12             14338925.15.WAV|b|") in new stack
    -- Executing [1230800@queuedial:7] Goto("Local/1230800@queuedial-f7bd,2", "qm-queuedial|s|1             ") in new stack
    -- Goto (qm-queuedial,s,1)
    -- Executing [s@qm-queuedial:1] NoOp("Local/1230800@queuedial-f7bd,2", "Outbound call -> A:             Agent/27 N:0800 Q:q-123 Ch:SIP/0800") in new stack
    -- Executing [s@qm-queuedial:2] Set("Local/1230800@queuedial-f7bd,2", "CDR(accountcode)=QDI             ALAGI") in new stack
    -- Executing [s@qm-queuedial:3] Set("Local/1230800@queuedial-f7bd,2", "ST=1214338925") in n             ew stack
    -- Executing [s@qm-queuedial:4] Set("Local/1230800@queuedial-f7bd,2", "GM=QDV-Agent/27") in              new stack
    -- Executing [s@qm-queuedial:5] Set("Local/1230800@queuedial-f7bd,2", "GLOBAL(QDV-Agent/27)             =U") in new stack
  == Setting global variable 'QDV-Agent/27' to 'U'
    -- Executing [s@qm-queuedial:6] Set("Local/1230800@queuedial-f7bd,2", "GLOBAL(QDV-Agent/27a             ns)=0") in new stack
  == Setting global variable 'QDV-Agent/27ans' to '0'
    -- Executing [s@qm-queuedial:7] Macro("Local/1230800@queuedial-f7bd,2", "queuelog|121433892             5|1214338925.15|q-123|Agent/27|ENTERQUEUE|-|0800") in new stack
    -- Executing [s@macro-queuelog:1] QueueLog("Local/1230800@queuedial-f7bd,2", "q-123|1214338             925.15|Agent/27|ENTERQUEUE|-|0800|") in new stack
    -- Executing [s@qm-queuedial:8] Dial("Local/1230800@queuedial-f7bd,2", "SIP/0800|30|gM(queu             edial-answer^1214338925.15^QDV-Agent/27^q-123^Agent/27^1214338925)") in new stack
  == Begin MixMonitor Recording Local/1230800@queuedial-f7bd,2
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@qm-queuedial:9] Set("Local/1230800@queuedial-f7bd,2", "CAUSECOMPLETE=") in              new stack
  == Auto fallthrough, channel 'Local/1230800@queuedial-f7bd,2' status is 'CHANUNAVAIL'
    -- Local/1230800@queuedial-f7bd,1 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:28] Goto("SIP/27-09dfc990", "s-CONGESTION|1") in new st             ack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/27-09dfc990", "1?noreport") i             n new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,3)
    -- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/27-09dfc990", "TRUNK Dial faile             d due to CONGESTION - failing through to other trunks") in new stack
    -- Executing [81230800@from-internal:5] Macro("SIP/27-09dfc990", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/27-09dfc990", "all-circuits-busy-now|noans             wer") in new stack
    -- <SIP/27-09dfc990> Playing 'all-circuits-busy-now' (language 'en')
    -- Executing [h@qm-queuedial:1] NoOp("Local/1230800@queuedial-f7bd,2", " "Call exiting: sta             tus U answered at: 0 DS: CHANUNAVAIL"  ") in new stack
    -- Executing [h@qm-queuedial:2] Goto("Local/1230800@queuedial-f7bd,2", "case-U") in new sta             ck
    -- Goto (qm-queuedial,h,4)
    -- Executing [h@qm-queuedial:4] Set("Local/1230800@queuedial-f7bd,2", "WT=0") in new stack
    -- Executing [h@qm-queuedial:5] Macro("Local/1230800@queuedial-f7bd,2", "queuelog|121433892             5|1214338925.15|q-123|Agent/27|ABANDON|1|1|0") in new stack
    -- Executing [s@macro-queuelog:1] QueueLog("Local/1230800@queuedial-f7bd,2", "q-123|1214338             925.15|Agent/27|ABANDON|1|1|0") in new stack
    -- Executing [s@qm-queuedial:6] Set("Local/1230800@queuedial-f7bd,2", "GLOBAL(QDV-Agent/27a             ns)=0") in new stack
  == Setting global variable 'QDV-Agent/27ans' to '0'
    -- Executing [s@qm-queuedial:7] Macro("Local/1230800@queuedial-f7bd,2", "queuelog|121433892             5|1214338925.15|q-123|Agent/27|ENTERQUEUE|-|0800") in new stack
    -- Executing [s@macro-queuelog:1] QueueLog("Local/1230800@queuedial-f7bd,2", "q-123|1214338             925.15|Agent/27|ENTERQUEUE|-|0800|") in new stack
    -- Executing [s@qm-queuedial:8] Dial("Local/1230800@queuedial-f7bd,2", "SIP/0800|30|gM(queu             edial-answer^1214338925.15^QDV-Agent/27^q-123^Agent/27^1214338925)") in new stack
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@qm-queuedial:9] Set("Local/1230800@queuedial-f7bd,2", "CAUSECOMPLETE=") in              new stack
  == End MixMonitor Recording Local/1230800@queuedial-f7bd,2
    -- Executing [s@macro-outisbusy:2] Playback("SIP/27-09dfc990", "pls-try-call-later|noanswer             ") in new stack
    -- <SIP/27-09dfc990> Playing 'pls-try-call-later' (language 'en')
    -- Executing [s@macro-outisbusy:3] Macro("SIP/27-09dfc990", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/27-09dfc990", "w") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/27-09dfc990", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/27-09dfc990", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/27-09dfc990", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/27-09dfc990", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/27-09dfc990", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-09dfc990' in macro 'h             angupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-09dfc990' in macro 'o             utisbusy'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/27-09dfc990'
 
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: QueueMetrics on June 25, 2008, 11:34:54
I see you already have the new technology dial-out. It was not previously there.

here is queuedial
-- Called 1230800@queuedial/n
    -- Executing [1230800@queuedial:1] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_QUEUE=q-1 23") in new stack
    -- Executing [1230800@queuedial:2] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_NUMBER=0800") in new stack
    -- Executing [1230800@queuedial:3] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_AGENT=Agent/27") in new stack
    -- Executing [1230800@queuedial:4] Set("Local/1230800@queuedial-f7bd,2", "QDIALER_CHANNEL=SIP/0800") in new stack
    -- Executing [1230800@queuedial:5] Set("Local/1230800@queuedial-f7bd,2", "QueueName=q-123")              in new stack
    -- Executing [1230800@queuedial:6] MixMonitor ("Local/1230800@queuedial-f7bd,2", "Q-q-123-12             14338925.15.WAV|b|") in new stack
    -- Executing [1230800@queuedial:7] Goto("Local/1230800@queuedial-f7bd,2", "qm-queuedial|s|1             ") in new stack
    -- Goto (qm-queuedial,s,1)


This is correct, save for the SIP/0800 that should likely be SIP/myprovider/0800 or whatever. Find the line where QDIALER_CHANNEL is set and edit that.

Please note that you DO NOT have the dialplan below

[queuedial]
exten => _XXX.,1,Set(MY_QUE=${EXTEN:0:3})
exten => _XXX.,2,Set(MY_NUM=${EXTEN:3})
exten => _XXX.,3,Set(MY_AGENT=${CALLERIDNUM})
exten => _XXX.,4,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _XXX.,5,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten => _XXX.,6,DeadAGI(queueDial.agi|${MY_NUM}|SIP/user.provider.ent/${MY_NUM}|q-
${MY_QUE}|Agent/${MY_AGENT})
exten => _XXX.,7,Congestion


So make sure what files are you importing.  ;D You do not need it as you have the new one, but beware because the log you posted does not match the dialplan you reported here.
Title: Re: QM 1.4 and Trixbox 2.6.1
Post by: alien on June 25, 2008, 21:27:40
how I change that?

Changin the custom dial string?

I have try this and does not work
Local/$SIP$/$OUTNUM$@queuedial/n