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

Christopher Stephens asterisk at chuljin.com
Fri Jul 1 11:43:36 MST 2005


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 at 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 at 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)=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)



More information about the asterisk-users mailing list