missing {

merk

Guru
Joined
Sep 5, 2008
Messages
66
Reaction score
1
I have a system with many DID's and the user wants to see the caller ID, DID dialed and general location of the caller. I setup a custom destination for _X. inbound route to:

Code:
[didequalscallerid]
exten => _X.,1,Set(DID=${EXTEN})
exten =>_214.,2,Set(CALLERID(name)=Dallas TX-${EXTEN}${CALLERID(name)}
exten =>_216.,2,Set(CALLERID(name)=Cleveland OH-${EXTEN}${CALLERID(name)}
exten =>_217.,2,Set(CALLERID(name)=Springfield Ill-${EXTEN}${CALLERID(name)}
exten =>_218.,2,Set(CALLERID(name)=Duluth MN-${EXTEN}${CALLERID(name)}
exten =>_219.,2,Set(CALLERID(name)=Gary IN-${EXTEN}${CALLERID(name)}
exten =>_224.,2,Set(CALLERID(name)=Northbrook Ill-${EXTEN}${CALLERID(name)}
exten =>_225.,2,Set(CALLERID(name)=Baton Rouge LA-${EXTEN}${CALLERID(name)}
exten =>_228.,2,Set(CALLERID(name)=Biloxi MS-${EXTEN}${CALLERID(name)}
exten =>_229.,2,Set(CALLERID(name)=Georgia-${EXTEN}${CALLERID(name)}
exten =>_231.,2,Set(CALLERID(name)=Peninsula MI-${EXTEN}${CALLERID(name)}
exten =>_234.,2,Set(CALLERID(name)=Canton OH-${EXTEN}${CALLERID(name)}
exten =>_236.,2,Set(CALLERID(name)=Virginia-${EXTEN}${CALLERID(name)}
exten =>_239.,2,Set(CALLERID(name)=Lee FL-${EXTEN}${CALLERID(name)}
exten =>_240.,2,Set(CALLERID(name)=Silver Spring MD-${EXTEN}${CALLERID(name)}
exten =>_248.,2,Set(CALLERID(name)=Pontiac MI-${EXTEN}${CALLERID(name)}
exten =>_251.,2,Set(CALLERID(name)=Jackson AL-${EXTEN}${CALLERID(name)}
exten =>_252.,2,Set(CALLERID(name)=Rocky Mount NC-${EXTEN}${CALLERID(name)}
exten =>_253.,2,Set(CALLERID(name)=Tacoma WA-${EXTEN}${CALLERID(name)}
......<snipped>.....
exten => _X.,3,Goto(app-daynight,0,1)
exten=> _X.,4,hangup

Everything works fine but I have the following errors in my log.

[2010-08-15 01:42:07] NOTICE[2521] pbx.c: Error in extension logic (missing '}')
[2010-08-15 01:42:07] WARNING[2521] pbx.c: Can't find trailing parenthesis?
[2010-08-15 01:42:07] ERROR[2521] func_callerid.c: Unknown callerid data type 'nam'.

Any insight what the errors could be for?


Not sure if this is related but this system has it going to an IVR. The ivr is working perfectly fine, no changes were made and 3 days later the ivr would play (according to putty) pressing 1 would work but there would be no audio playback. A kill of amportal and restart worked only after restarting zaptel.

System is running PBXINAFLASH 1.5 32bit Asterisk 1.4 without any zaptel cards.


EDIT: I fixed the error by adding a ")" to the end of each context. Now I just have the audio problem
 
I see you have: (as an example)
exten =>_214.,2,Set(CALLERID(name)=Dallas TX-${EXTEN}${CALLERID(name)}
whose brackets are:
( () {} { () }
Looks like you may be missing a trailer. Should it be?:
( () {} { () } )
Perhaps it should be:
exten =>_214.,2,Set(CALLERID(name)=Dallas TX-${EXTEN}${CALLERID(name)})

Not very familiar with this stuff. I usually figure it out via trial and error. Anyone care to chime in or give it a shot?
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top