[Asterisk-Users] CallerID/variable setting.

2006-04-24 Thread Ken D'Ambrosio
Hey, all. I'm trying to set my CID such that, internally, I see a four-digit extension (which is also handy when checking VM), but externally, I see the full 10-digit number. So I plugged these lines into my extensions.conf: exten = _XXX,1,GotoIf($[ ${CALLERIDNUM} != 1625]?4:2) exten =

Re: [Asterisk-Users] CallerID/variable setting.

2006-04-24 Thread Anthony Rodgers
Hi Ken, Here is what we do, if it helps: For incoming calls (we use some Centrex lines, but want to make them look like 4-digit locals): ; If it looks like one of ours, only show the last 4 digits exten = s,40,GotoIf($[${CALLERIDNUM:0:8} = 60498131]?50:) exten =

[Asterisk-Users] CallerID/variable setting.

2006-04-24 Thread Brent Torrenga
Ken, Try using the CALLERID function, instead of setting the variable. As in: exten = _XXX,2,Set(CALLERID(number)=6031234${CALLERIDNUM:1}) Or maybe you need the greater/less than 6031234${CALLERIDNUM:1} dealies. See: http://www.voip-info.org/wiki/index.php?page=Asterisk+func+callerid