Yes Eric, they are not the same. I should have worded it differently. I'm a little confused because the issue seems to me this particular DID provider is not sending me the ANI if the caller's number is private. On all our other carriers we still get the ANI even if its a private number. Any suggestions how to handle this? Is there a way to set the ANI if its missing?
Thanks, Jon ----- Original Message ----- From: "Eric "ManxPower" Wieling" <[EMAIL PROTECTED]> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Friday, November 09, 2007 12:06 AM Subject: Re: [asterisk-users] If caller id is null set to a specific number > Doug Lytle wrote: >> Jon Weisman wrote: >>> All, >>> >>> If someone calls into my asterisk box and has a private number I would >>> like to set the callers id to a specific telephone number, only when >>> the ANI is missing, otherwise if present just pass it along. Any ideas? >> >> [incoming] >> >> exten => s,1,Gosubif($["${CALLERID(number)}" = "" ]?set-cid,s,1:2) >> >> [set-cid] >> >> exten => s,1,Set(CALLERID(number)=5551212) >> exten => s,n,Return() > > ANI is not Caller*ID. A caller can block their Caller*ID, but not their > ANI. > > It is CALLERID(num), not CALLERID(number) > > In 1.2+ you can do it as (all one line): > > exten => s,1,ExecIf($["${CALLERID(num)}" = > ""],Set,CALLERID(num)=4055551212) > > OR > > exten => s,1,ExecIf($[${LEN(${CALLERID(num)})} = > 0],Set,CALLERID(num)=4055551212) > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users