[asterisk-users] Specifying DID for outbound calls
Stephen Reese
rsreese at gmail.com
Sun Dec 19 21:11:34 UTC 2010
>On Sun, Dec 19, 2010 at 1:52 PM, William Stillwell <william at 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${EXTEN}@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.
More information about the asterisk-users
mailing list