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

2006-06-23 Thread Douglas Garstang
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


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

2006-06-23 Thread Kevin Collins
 
Callerid should be the second argument based on what works for me

Kevin 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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


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

2006-06-23 Thread Wildheart
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 [EMAIL PROTECTED]
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


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


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

2006-06-23 Thread Wildheart
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

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


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

2006-06-23 Thread Peter Bowyer

On 23/06/06, Douglas Garstang [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
___
--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


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

2006-06-23 Thread Douglas Garstang
Oops. You are correct. My bad.

 -Original Message-
 From: Kevin Collins [mailto:[EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 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
 
___
--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


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

2006-06-23 Thread Andrew Kohlsmith
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.
___
--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