[asterisk-users] "Call me now" outbound calls in a queue
Mitch Claborn
mitch_ml at claborn.net
Fri Oct 5 09:48:26 CDT 2012
This is mostly working. See below. My only problem is being able to
set the caller ID on the outbound call to the customer. I've tried both
a queue connected macro and gosub (see below), and those both execute,
but the caller ID is not showing up correctly for the customer. I
assume this is because the caller ID is being set on the agent's channel
not the customers.
Any ideas on that?
Action: Originate
Channel: Local/s at callmenow/n
Application: Dial
Data: SIP/voipms/customer_number
Async: true
Callerid: Call Me Now <777>
Timeout: 999999
[callmenow]
exten => s,1,NoOp(callmenow: Queue without answer)
same
=>n,Queue(sales,tc,,,,,CallMeNowQueueConnected,CallMeNowQueueConnectedGosub)
[CallMeNowQueueConnectedGosub]
exten =>s,1,NoOp(CallMeNowQueueConnectedGosub)
same =>n,Set(CALLERID(num)=${OUTBOUND_CALLERID_NUM})
same =>n,Set(CALLERID(name)=${OUTBOUND_CALLERID_NAME})
same =>n,Verbose(2,end of gosub)
same =>n,Return()
[macro-CallMeNowQueueConnected]
; this runs on the agent/member's channel
exten =>s,1,NoOp(CallMeNowQueueConnected)
same =>n,Set(CALLERID(num)=${OUTBOUND_CALLERID_NUM})
same =>n,Set(CALLERID(name)=${OUTBOUND_CALLERID_NAME})
same =>n,Playback(custom/callmenow-announce)
same =>n,Verbose(2,end of macro)
Mitch
On 10/04/2012 02:30 PM, Ioan Indreias wrote:
> Hello Mitch,
>
> Hoping that the Queue application is not automatically Answering the
> line (till an agent will do this) my suggestion is to switch between
> "who have to answer" in order to progress to the second call leg. This
> means that the Queue will be called through a Local Channel and the call
> to your customer will be made through a Dial application.
>
> Below is something to start with - in case it will work you could modify
> to your needs.
>
> [demo]
> exten => s,1,NoOp(Queue without answer)
> exten => s,2,Queue(sales)
>
> Action: Originate
> Channel: Local/s at demo/n
> Application: Dial
> Data: SIP/voipms/customer_number
>
> HTH,
> Ioan Indreias
> Modulo Consulting // www.modulo.ro <http://www.modulo.ro>
More information about the asterisk-users
mailing list