Douglas Garstang
2006-Jun-23 12:28 UTC
[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.
Kevin Collins
2006-Jun-23 12:35 UTC
[Asterisk-Users] Caller ID Matching in extensions.conf
Callerid should be the second argument based on what works for me
Kevin
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Douglas
Garstang
Sent: Friday, June 23, 2006 3:28 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
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
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@oneeighty.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users@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
>
D'oh... Might have just answered the wrong question here...> 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
On 23/06/06, Douglas Garstang <dgarstang@oneeighty.com> wrote:> 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)You have it backwards. The callerid to match goes after the extension, not before. -- Peter Bowyer Email: peter@bowyer.org
Douglas Garstang
2006-Jun-23 12:58 UTC
[Asterisk-Users] Caller ID Matching in extensions.conf
Oops. You are correct. My bad.> -----Original Message----- > From: Kevin Collins [mailto:kcollins@itcc.com] > Sent: Friday, June 23, 2006 1:35 PM > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > Subject: RE: [Asterisk-Users] Caller ID Matching in extensions.conf > > > > Callerid should be the second argument based on what works for me > > Kevin > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Douglas > Garstang > Sent: Friday, June 23, 2006 3:28 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > 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 > > > _______________________________________________ > --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 >
Andrew Kohlsmith
2006-Jun-23 12:59 UTC
[Asterisk-Users] Caller ID Matching in extensions.conf
On Friday 23 June 2006 15:28, Douglas Garstang wrote:> 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)Of course it does not match. The extension match is for 9220370. You must *call* 9220370 *from* 1234 in order to make this match. the format for an extension line is exten => extension_to_match/optional_caller_id_match,priority,command> 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)Yes, because you are dialing '1234' and this matches the extension. -A.