[Asterisk-Users] CallerID info needed
Doug Lytle
support at drdos.info
Wed Dec 28 09:08:10 MST 2005
Hey everybody,
I'm trying to figure out a problem with Caller-ID info coming in from
one of our facilities. The Caller-ID name is all that comes across. I
figured out that I probably could do a database lookup against the name
and set the Caller-ID number to their extension. I'm using Asterisk
SVN-trunk-r7230 on a PRI connected to a Definity PBX.
When testing, my Polycom IP501 still shows unknown. A bit from the log
below:
-- Accepting call from '' to '4288' on channel 0/2, span 1
-- Executing DBget("Zap/2-1", "CIDINFO=name/Ballard, Lance") in new
stack
-- DBget: varname=CIDINFO, family=name, key=Ballard, Lance
-- DBget: set variable CIDINFO to 4300
-- Executing NoOp("Zap/2-1", "Setting CallerID Number to: 4300") in
new stack
-- Executing Set("Zap/2-1", "CALLERID(Name)=Ballard, Lance") in new
stack
-- Executing Set("Zap/2-1", "CALLERID(Number)=4300") in new stack
-- Executing SetGroup("Zap/2-1", "Max_Calls") in new stack
-- Executing NoOp("Zap/2-1", "Active Calls: 1") in new stack
-- Executing GotoIf("Zap/2-1", "0?103") in new stack
-- Executing Dial("Zap/2-1",
"IAX2/bc.asterisk:12345 at 192.168.102.15/4288||t") in new stack
-- Called bc.asterisk:xxxxxx at 192.168.102.15/4288
-- Call accepted by 192.168.102.15 (format gsm)
-- Format for call is gsm
-- IAX2/liv.asterisk-2 is ringing
And my code snip:
exten => _42XX,1,Dbget(CIDINFO=name/${CALLERIDNAME})
exten => _42XX,2,NoOp(Setting CallerID Number to: ${CIDINFO})
exten => _42XX,3,Set(CALLERID(Name)=${CALLERIDNAME})
exten => _42XX,4,Set(CALLERID(Number)=${CALLERIDNUM}${CIDINFO})
; Both variables with never have data at the same
time
exten => _42XX,5,SetGroup(Max_Calls)
exten => _42XX,6,NoOP(Active Calls: ${GROUP_COUNT(Max_Calls)})
exten => _42XX,7,GotoIf($[ ${GROUP_COUNT(Max_Calls)} > 4 ]?103)
exten =>
_42XX,8,Dial(IAX2/bc.asterisk:xxxxxx at 192.168.102.15/${EXTEN},,t)
exten => _42XX,103,Congestion()
Any suggestions on a fix (if it's possible)?
Thanks!
Doug
More information about the asterisk-users
mailing list