>On Sun, Dec 19, 2010 at 1:52 PM, William Stillwell <will...@stillwellsoft.com> 
>wrote:
> You can also just use an agi script to look up their current caller-id in a
> database, and set it to the correct caller-id needed.
>
> exten => _NXXNXXXXXX,1,AGI(getcid.pl,${CALLERID(NUM)},1)
> exten => _NXXNXXXXXX,n,Dial(SIP/+1${ext...@providerx,60)
> exten => _NXXNXXXXXX,n,congestion()
>
> my getcid.pl expects two values, extension callerid, and a type.
>
> 911 gets 0, inhouse gets 1, outside 2 etc. (as I ust the getcid for
> different Dial() options.
>
> The script then looks up there "station" callerid, and set it to an
> apporiate value, 911 always gets local in house direct number, regular stuff
> gets a toll number, inhouse gets there extension number, and if there
> callerid is not found in the database it returns a 'default' value.
>
> This way every user can have multiple caller id's .

William, I'm not familiar with AGI scripts, it might be a little
overkill for what I am trying to accomplish.

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

Reply via email to