I upgraded from 1.0.9, to 1.2.1. I was using this line exten => s,1,gotoif($[${CALLERIDNUM::3} = 066]?mycity,1:other,1) it selecting calls if callerid begins with some number pattern (from some city) But, it's not working anymore in Asterisk 1.2.1 when I test this with noop(${CALLERIDNUM::3}) I get full callerid, not just first 3 numbers like it use to be on 1.0.9 Why?
On 01/14/06 11:09 Pisac said the following:> But, it's not working anymore in Asterisk 1.2.1 > when I test this with > noop(${CALLERIDNUM::3}) > I get full callerid, not just first 3 numbers like it use to be on 1.0.9i believe the syntax is ${CALLERIDNUM:3} and not as you're using it with double colons. also, the present accepted method is to use the CALLERID() function rather than the variable which may be deprecated in future releases. -- 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 | +=========================================================================+