Carlo Dimaggio
2010-May-11 15:32 UTC
[asterisk-users] Problem with callerid(dnid) and queue
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. Do you know if there is a way to obtain the newdnid? Thanks! Carlo
Carlo Dimaggio
2010-May-11 18:44 UTC
[asterisk-users] Problem with callerid(dnid) and queue
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. Do you know if there is a way to obtain the newdnid? Thanks! Carlo
David Backeberg
2010-May-12 00:59 UTC
[asterisk-users] Problem with callerid(dnid) and queue
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?
Lenz Emilitri
2010-May-12 09:30 UTC
[asterisk-users] Problem with callerid(dnid) and queue
You sure it's not using the URL OPEN parameter for the very queue? l. 2010/5/11 Carlo Dimaggio <jaasmailing at gmail.com>> 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. > > Do you know if there is a way to obtain the newdnid? > > > Thanks! > Carlo > > -- > _____________________________________________________________________ > -- 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 >-- Loway - home of QueueMetrics - http://queuemetrics.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100512/db67b944/attachment.htm