Re: [Asterisk-Users] pattern matching based on callerid, not working

2005-07-02 Thread Dinesh Nair



On 07/02/05 02:15 Matthew Boehm said the following:

according to the wiki, I should be able to do this:

exten = _9./3003,1,Set(CALLERID(number)=281443)
exten = _9./3004,n,Set(CALLERID(number)=281444)
exten = _9./3005,n,Set(CALLERID(number)=281445)
exten = _9./3006,n,Set(CALLERID(number)=281446)


i believe these four should be on the same priority. asterisk dialplans 
will bork if the next priority doesnt match.


--
Regards,   /\_/\   All dogs go to heaven.
[EMAIL PROTECTED](0 0)http://www.alphaque.com/
+==oOO--(_)--OOo==+
| for a in past present future; do|
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo The opinions here in no way reflect the opinions of my $a $b.  |
| done; done  |
+=+
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] pattern matching based on callerid, not working

2005-07-02 Thread tim panton


On 2 Jul 2005, at 08:48, Dinesh Nair wrote:




On 07/02/05 02:15 Matthew Boehm said the following:


according to the wiki, I should be able to do this:
exten = _9./3003,1,Set(CALLERID(number)=281443)
exten = _9./3004,n,Set(CALLERID(number)=281444)
exten = _9./3005,n,Set(CALLERID(number)=281445)
exten = _9./3006,n,Set(CALLERID(number)=281446)



i believe these four should be on the same priority. asterisk  
dialplans will bork if the next priority doesnt match.




Or better yet, fold them into a single line - like:

exten = _9./300[3456],1,Set(CallerID(number)=28144${CALLERIDNUM}:1)

Tim.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] pattern matching based on callerid, not working

2005-07-01 Thread Matthew Boehm

according to the wiki, I should be able to do this:

exten = _9./3003,1,Set(CALLERID(number)=281443)
exten = _9./3004,n,Set(CALLERID(number)=281444)
exten = _9./3005,n,Set(CALLERID(number)=281445)
exten = _9./3006,n,Set(CALLERID(number)=281446)
exten = _9.,n,Dial(SIP/${EXTEN:[EMAIL PROTECTED],30,wt)

and have the correct calleridnum's set for each extension based on their 
current calleridnum.


Basically, priority 1 will execute only if callerid is currently 3003. 
pri2 will only execute if callerid is 3004, etc..


however, attempts to do this all fail with auto-fallthru BUSY.

Im using most recent CVS-HEAD.

Any ideas?

-Matthew

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] pattern matching based on callerid, not working

2005-07-01 Thread Christopher Stephens
I'm not sure it's the source of your problem, but I'm sure it could wind
up being the source of others:
I think that should be:

exten = _9./3003,1,Set(CALLERID(number)=281443)
exten = _9./3004,1,Set(CALLERID(number)=281444) ; these should
exten = _9./3005,1,Set(CALLERID(number)=281445) ; all be priority
exten = _9./3006,1,Set(CALLERID(number)=281446) ; 1, not n
exten = _9.,n,Dial(SIP/${EXTEN:[EMAIL PROTECTED],30,wt)

On Fri, 01 Jul 2005 13:15:08 -0500, Matthew Boehm
[EMAIL PROTECTED] said:
 according to the wiki, I should be able to do this:
 
 exten = _9./3003,1,Set(CALLERID(number)=281443)
 exten = _9./3004,n,Set(CALLERID(number)=281444)
 exten = _9./3005,n,Set(CALLERID(number)=281445)
 exten = _9./3006,n,Set(CALLERID(number)=281446)
 exten = _9.,n,Dial(SIP/${EXTEN:[EMAIL PROTECTED],30,wt)
 
 and have the correct calleridnum's set for each extension based on their 
 current calleridnum.
 
 Basically, priority 1 will execute only if callerid is currently 3003. 
 pri2 will only execute if callerid is 3004, etc..
 
 however, attempts to do this all fail with auto-fallthru BUSY.
 
 Im using most recent CVS-HEAD.
 
 Any ideas?
 
 -Matthew
 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

I'm not sure it's the source of your problem, but I'm sure it could wind
up being the source of others:
I think that should be:

exten = _9./3003,1,Set(CALLERID(number)=281443)
exten = _9./3004,1,Set(CALLERID(number)=281444) ; these should
exten = _9./3005,1,Set(CALLERID(number)=281445) ; all be priority
exten = _9./3006,1,Set(CALLERID(number)=281446) ; 1, not n
exten = _9.,n,Dial(SIP/${EXTEN:[EMAIL PROTECTED],30,wt)
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users