[asterisk-users] Problem with callerid(dnid) and queue

David Backeberg dbackeberg at gmail.com
Tue May 11 19:59:11 CDT 2010


On Tue, May 11, 2010 at 11:32 AM, Carlo Dimaggio <jaasmailing at gmail.com> wrote:
> Hi all,
>
> In order to use the "open url" function of zoiper (it opens an url
> based on the asterisk $callerid(dnid)), I need rewriting of the dnid.
> In my dialplan I have:
>
> exten => 1000,3,Set(CALLERID(dnid)=newdnid)
> exten => 1000,4,Noop(${CALLERID(dnid)})
> exten => 1000,5,Queue(test-queue)
>
> but the callerid(dnid) shows the extension called (the member of the
> test-queue) and not the "newdid". I have tried also with the option
> "o" in cmd Dial but without success.

I thought setting CallerID like that was for setting callerID on OUTBOUND calls.

Why on earth would you want to override what's happening on an inbound call?

What happens if you hairpin it to a local channel, using Dial(),
after you override the callerID?



More information about the asterisk-users mailing list