Louis Carreiro
2011-Apr-08 13:56 UTC
[asterisk-users] Maniuplate callerID based off of callerID
Hey all! I'm trying to figure out a way to manipulate a call's caller ID based off of the caller's caller ID. Basically, I've got a situation where anything that goes through an Nortel Opt11's IVR comes out with the caller ID 400 (the Opt11's IVR's ext). When the call goes out the trunk that the call is destined for, I'd like to grab the 400 caller ID and delete it so it comes through as "Unknown". The "Unknown" part doesn't have to be the literal string, just a blank CallerID would be fine. Would it be something like: Exten => ExecIf($["${CALLERID(number)}" = "400"]?SetCallerID()) Thanks all! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110408/967eca81/attachment.htm>
Michel Verbraak
2011-Apr-08 14:16 UTC
[asterisk-users] Maniuplate callerID based off of callerID
Almost, If you use Asterisk version 1.6 or higher use Exten => ExecIf($["${CALLERID(number)}" = "400"]?Set(CALLERID(num)="") Or Exten => ExecIf($["${CALLERID(number)}" = "400"]?Set(CALLERID(all)="") Michel Verbraak ** <http://www.intercommit.nl/> On 08-04-11 15:56, Louis Carreiro wrote:> > Hey all! > > > > I'm trying to figure out a way to manipulate a call's caller ID based > off of the caller's caller ID. Basically, I've got a situation where > anything that goes through an Nortel Opt11's IVR comes out with the > caller ID 400 (the Opt11's IVR's ext). When the call goes out the > trunk that the call is destined for, I'd like to grab the 400 caller > ID and delete it so it comes through as "Unknown". The "Unknown" part > doesn't have to be the literal string, just a blank CallerID would be > fine. > > > > Would it be something like: > > > > Exten => ExecIf($["${CALLERID(number)}" = "400"]?SetCallerID()) > > > > Thanks all! > > > -- > _____________________________________________________________________ > -- 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-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110408/5fb63bbb/attachment.htm>