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

2010-05-12 Thread Carlo Dimaggio

Il giorno 12/mag/10, alle ore 02:59, David Backeberg ha scritto:

 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?


Following some posts and the user guide of Zoiper, DNID is the number  
that the caller has dialed to reach the inbound extension. For  
outgoing calls there is no DNID...
However, my purpose is to find a way to pass the modified DNID to the  
softphone Zoiper in order to open the right URL.
I think the Dial cmd uses the type/identifier to send the call (the  
caller-id should be only an additional header, shouldn't it?).

Thanks


-- 
_
-- 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


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

2010-05-12 Thread Lenz Emilitri
You sure it's not using the URL OPEN parameter for the very queue?
l.


2010/5/11 Carlo Dimaggio jaasmail...@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
-- 
_
-- 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

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

2010-05-11 Thread David Backeberg
On Tue, May 11, 2010 at 11:32 AM, Carlo Dimaggio jaasmail...@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?

-- 
_
-- 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