[Asterisk-Users] Caller ID Matching in extensions.conf

Wildheart asterisk-users at php-systems.com
Fri Jun 23 12:40:36 MST 2006


Hi Doug,

 Shouldn't you really be using ${CALLERID(number)}?

Also, if the channel you are using to get the caller ID from is analog (FXO
or FXS), I believe you may have to answer the channel, then wait 1 sec to
get the correct caller id info.

    Tim
----- Original Message ----- 
From: "Douglas Garstang" <dgarstang at oneeighty.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Friday, June 23, 2006 8:28 PM
Subject: [Asterisk-Users] Caller ID Matching in extensions.conf


> I'm running 1.2.9.1, and I can't get caller id dialplan matching to work.
>
> When calling from 9220370 to 1234, the following does not match.
>
> exten => 9220370/1234,1,NoOp(${CALLERIDNUM})
> exten => 9220370/1234,2,Answer
> exten => 9220370/1234,3,Playback(tt-weasels)
>
> However, when calling from 9220370 to 1234, this DOES match.
>
> exten => 1234,1,NoOp(${CALLERIDNUM})
> exten => 1234,2,Answer
> exten => 1234,3,Playback(tt-weasels)
>
> You can also see from the console output that the caller id IS 9220370.
>
>     -- Executing NoOp("SIP/9220370-7a11", "9220370") in new stack
>     -- Executing Answer("SIP/9220370-7a11", "") in new stack
>     -- Executing Playback("SIP/9220370-7a11", "tt-weasels") in new stack
>     -- Playing 'tt-weasels' (language 'en')
>
> What am I missing here?
>
> Oh, this also doesn't match EVER... so I am wondering if there's a problem
with dialplan caller id matching in 1.2.9.1?
>
> exten => _X./1234,1,NoOp(${CALLERIDNUM})
> exten => _X./1234,2,Answer
> exten => _x./1234,3,Playback(tt-weasels)
>
> Doug.
>
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.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