Matthew Boehm
2005-Jul-01 11:15 UTC
[Asterisk-Users] pattern matching based on callerid, not working
according to the wiki, I should be able to do this: exten => _9./3003,1,Set(CALLERID(number)=2814444443) exten => _9./3004,n,Set(CALLERID(number)=2814444444) exten => _9./3005,n,Set(CALLERID(number)=2814444445) exten => _9./3006,n,Set(CALLERID(number)=2814444446) exten => _9.,n,Dial(SIP/${EXTEN:1}@mycarrier,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
Christopher Stephens
2005-Jul-01 11:43 UTC
[Asterisk-Users] pattern matching based on callerid, not working
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)=2814444443) exten => _9./3004,1,Set(CALLERID(number)=2814444444) ; these should exten => _9./3005,1,Set(CALLERID(number)=2814444445) ; all be priority exten => _9./3006,1,Set(CALLERID(number)=2814444446) ; 1, not n exten => _9.,n,Dial(SIP/${EXTEN:1}@mycarrier,30,wt) On Fri, 01 Jul 2005 13:15:08 -0500, "Matthew Boehm" <mboehm@cytelcom.com> said:> according to the wiki, I should be able to do this: > > exten => _9./3003,1,Set(CALLERID(number)=2814444443) > exten => _9./3004,n,Set(CALLERID(number)=2814444444) > exten => _9./3005,n,Set(CALLERID(number)=2814444445) > exten => _9./3006,n,Set(CALLERID(number)=2814444446) > exten => _9.,n,Dial(SIP/${EXTEN:1}@mycarrier,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-usersI'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)=2814444443) exten => _9./3004,1,Set(CALLERID(number)=2814444444) ; these should exten => _9./3005,1,Set(CALLERID(number)=2814444445) ; all be priority exten => _9./3006,1,Set(CALLERID(number)=2814444446) ; 1, not n exten => _9.,n,Dial(SIP/${EXTEN:1}@mycarrier,30,wt)
Dinesh Nair
2005-Jul-02 00:48 UTC
[Asterisk-Users] pattern matching based on callerid, not working
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)=2814444443) > exten => _9./3004,n,Set(CALLERID(number)=2814444444) > exten => _9./3005,n,Set(CALLERID(number)=2814444445) > exten => _9./3006,n,Set(CALLERID(number)=2814444446)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." dinesh@alphaque.com (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 | +=========================================================================+
tim panton
2005-Jul-02 01:23 UTC
[Asterisk-Users] pattern matching based on callerid, not working
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)=2814444443) >> exten => _9./3004,n,Set(CALLERID(number)=2814444444) >> exten => _9./3005,n,Set(CALLERID(number)=2814444445) >> exten => _9./3006,n,Set(CALLERID(number)=2814444446) >> > > 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)=281444444${CALLERIDNUM}:1) Tim.