[asterisk-users] If caller id is null set to a specific number

Jon Weisman jweisman at ibell.net
Thu Nov 8 19:35:08 CST 2007


I get the same response with or w/o ANI... :(


----- Original Message ----- 
From: "Doug Lytle" <support at drdos.info>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
<asterisk-users at lists.digium.com>
Sent: Thursday, November 08, 2007 8:14 PM
Subject: Re: [asterisk-users] If caller id is null set to a specific number


> 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()
>
> Doug
>
> -- 
> Ben Franklin quote:
>
> "Those who would give up Essential Liberty to purchase a little Temporary 
> Safety, deserve neither Liberty nor Safety."
>
>
>
> _______________________________________________
> --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
> 





More information about the asterisk-users mailing list