Use queue with a .call file

HEllo,I’m pretty new to the forum and to asterisk.
I working on a project to “sell” asterisk in the company and I4m trying to devellop a proof-of-concept about asterisk.
I’ve interconnected nagios and asterisk, when I’ve an alarm it call the guy defined without problem(I’ve added the svox TTS core with success).

But I’m unable to create a call file that will call a queue and not a direct SIP exten connected ?

In my case, I would like that a support guy on duty log himself on the pabx which make him available in different “queue” (as support of different application) and that an alarm call a queue (where our support guys is registered).

I was thinking about priority on a queue for the registering of the user and create a .call file toward that queue but it doesn’t accept to make a .call file if it’s not towards an SIP/user

Is there any way of dong it in asterisk or freeswitch will suit this need better?

Hi

You just use a local channel

Local/callout@callout

then you have a context

[callout]

exten => callout,1,Queue(…

Ian

First thank you for your tile and your help,
I’m surelly do a bad thing but it doesn’t seem to work here’s my config:

ubuntu+asterisk 1.6
here’s the extentions.conf section

[testcallfile]
exten => start,1,Answer()
exten => start,2,SayPhonetic("hello mister bond") 
exten => start,3,Queue(support-asterisk)
;exten => start,3,Swift(I suck for 30$)
exten => start,4,Wait(1)
exten => start,5,Hangup()

here’s the section in the queues.conf

[support-asterisk]
strategy = linear
announce = queue-markq
timeout = 15
retry = 5
member => SIP/1001,0, Phil1
member => SIP/1000,10, Phil2
member => SIP/1003,20, Phil3
;

Here’s the callfile(with the first try of call):

local/testcallfile@start
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: testpico2
Extension: start

StartRetry: 18145 1 (1323785034)

in the cli I got those errors messages:

laptop*CLI> laptop*CLI> [Dec 13 15:03:54] WARNING[18175]: pbx_spool.c:267 safe_append: Unable to set utime on /var/spool/asterisk/outgoing/testfile.call: Operation not permitted [Dec 13 15:03:54] NOTICE[19621]: chan_local.c:534 local_call: No such extension/context testcallfile@start while calling Local channel [Dec 13 15:03:54] NOTICE[19621]: channel.c:4042 __ast_request_and_dial: Unable to call channel local/testcallfile@start [Dec 13 15:03:54] NOTICE[19621]: pbx_spool.c:339 attempt_thread: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?) [Dec 13 15:03:54] ERROR[18148]: pbx.c:9301 device_state_cb: Received invalid event that had no device IE [Dec 13 15:03:54] ERROR[18148]: app_queue.c:1099 device_state_cb: Received invalid event that had no device IE [Dec 13 15:03:54] WARNING[19621]: pbx_spool.c:267 safe_append: Unable to set utime on /var/spool/asterisk/outgoing/testfile.call: Operation not permitted [Dec 13 15:04:54] WARNING[18175]: pbx_spool.c:267 safe_append: Unable to set utime on /var/spool/asterisk/outgoing/testfile.call: Operation not permitted [Dec 13 15:04:54] NOTICE[19685]: chan_local.c:534 local_call: No such extension/context testcallfile@start while calling Local channel [Dec 13 15:04:54] NOTICE[19685]: channel.c:4042 __ast_request_and_dial: Unable to call channel local/testcallfile@start [Dec 13 15:04:54] NOTICE[19685]: pbx_spool.c:339 attempt_thread: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?) [Dec 13 15:04:54] ERROR[18148]: pbx.c:9301 device_state_cb: Received invalid event that had no device IE [Dec 13 15:04:54] ERROR[18148]: app_queue.c:1099 device_state_cb: Received invalid event that had no device IE laptop*CLI>

i’ve try with a local/start@testcallfille

no more erro but it doesn’t ring

[Dec 13 15:16:40] WARNING[18175]: pbx_spool.c:267 safe_append: Unable to set utime on /var/spool/asterisk/outgoing/testfile.call: Operation not permitted
[Dec 13 15:16:46] NOTICE[20430]: pbx_spool.c:349 attempt_thread: Call completed to local/start@testcallfile

Local extensions are defined as

Local/extension@context

you have context at extension.

see
books.google.co.uk/books?id=kcrd … ls&f=false

Looks like you are trying to run non-root. That is not a good idea unless you are good at debugging Unix permission problems.

no problem with that I’ve created a perl listener that run under asterisk user to create the call file.

Here it was some rough test(using cp and not mv which produce teh erro message) regarding the possibility to send to a queue.

Yes ianplain, I saw my error but in my next message as you can see I’ve adjusted it but now no more error message but it doesn’t ring and the call goes to complete

Hi

You have to make sure the queue is set to ring and not music

This does work work as we use on many systems for customers

I’ve tried by calling from a softfone to start@testcallfile and it ring in the right order on the others but the callfile just don’t work, what could be the call file content regarding the config file provide up?

Thank for your help