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@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@demo/n
Application: Dial
Data: SIP/voipms/customer_number

HTH,
Ioan Indreias
Modulo Consulting // www.modulo.ro <http://www.modulo.ro>

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to