| |
| News & Reviews |
Welcome to the Voxilla VoIP Forum.
Voxilla has been a trusted source for accurate, up-to-date information on the IP Communications industry since 2002. A dedicated staff of reporters and engineers produce feature articles and product reviews to keep industry watchers abreast of the people, companies, and trends driving a fast moving market.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
Voxilla VoIP Forum |
Asteridex CLID lookupTechnical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX. |
| | LinkBack | Thread Tools | Rate Thread | Display Modes |
| |||
| Hello, I'm trying to integrate this http://nerdvittles.com/index.php?p=82 into this http://nerdvittles.com/index.php?p=88 Basically, I would like to have asterisk look up the name for any callers in my Asteridex database and allow me to use the nvfaxdetect method for receiving faxes. Where/how would the line exten => s,4,AGI(calleridname.agi) be best inserted into the following?: Code: [from-pstn-reghours]
exten => s,1,GotoIf($[${FAX_RX} = disabled]?from-pstn-reghours-nofax,s,1:2) ; if fax detection is disabled, then jump to from-pstn-nofax - else continue
exten => s,2,Answer
exten => s,3,Playtones(ring) ; play fake ring so caller doesn't wonder what's going on
exten => s,4,NVFaxDetect(10) ; detect faxes while playing ring sound - goes to "fax" extension if detected
exten => s,5,SetVar(intype=${INCOMING})
exten => s,6,Cut(intype=intype,-,1)
exten => s,7,GotoIf($[${intype} = EXT]?8:9) ; If INCOMING starts with EXT, then assume its an extension
exten => s,8,Goto(ext-local,${INCOMING:4},1)
exten => s,9,GotoIf($[${intype} = GRP]?10:11) ; If INCOMING starts with GRP, then assume its a ring group
exten => s,10,Goto(ext-group,${INCOMING:4},1)
exten => s,11,GotoIf($[${intype} = QUE]?12:13)
exten => s,12,Goto(ext-queues,${INCOMING:4},1)
exten => s,13,Goto(${INCOMING},s,1) ; not EXT or GR1 - it's an auto attendant
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => h,1,Hangup |
| |||
| i tend to avoid changing the main config files directly, since i'm using AAH, and that's a recipe to get screwed. you could put both changes into extensions_custom.conf (if you're running AAH), and have your custom code jump back into from-pstn-timecheck (or somesuch - I'm not at home, so I can't post my config...) i do something similar to this... |
| |||
| I would put the line at the beggining of your providers stanza, as soon as you receive the call, from there you can forward the call to from-pstn if you like. for example: ;Telasip exten => NXXXXXXXXX,1,AGI(calleridname.agi) exten => NXXXXXXXXX,3,Goto(from-pstn,s,1) |
| |||
| here's what i did: ; ; Special tweaks we do for incoming calls. AAH doesn't allow invocation ; of privacy manager for PSTN calls, or invocation of zapateller, so we ; "roll our own" here. Also, for inbound PSTN calls, wait 3 seconds in ; case it's a fax call (to allow nv_detect_background) to redirect the ; call to fax context if so. Also, asterisk providers seem to send odd ; strings like 'asterisk' or 'UNKNOWN' when CID is blocked - check for ; that and null out both strings if so... ; [custom-exgn] exten => s,1,Answer exten => s,n,NoOp(${CALLERID(num)}); exten => s,n,GotoIf($["${CALLERID(num)}" = "UNKNOWN"]?fixup_cid) exten => s,n,GotoIf($["${CALLERID(num)}" = "UNAVAILABLE"]?fixup_cid) exten => s,n,GotoIf($["${CALLERID(num)}" != "asterisk"]?check_cid) exten => s,n(fixup_cid),SetCallerID(,) exten => s,n(check_cid),Zapateller(nocallerid) exten => s,n(goaway),PrivacyManager exten => s,n,GotoIf($["${CALLERID(name)}" = "Privacy Manager"]?timeconditions,3,1) exten => s,n,LookupCIDName exten => s,n,AGI(calleridname.agi) exten => s,n,Goto(timeconditions,3,1) exten => s,goaway+101,MusicOnHold [from-pstn-custom] exten => s,1,Answer exten => s,n,Wait(3) exten => s,n,Zapateller(nocallerid) exten => s,n(goaway),PrivacyManager exten => s,n,Goto(timeconditions,3,1) exten => s,goaway+101,MusicOnHold |
| |||
| Thanks for the replies. What does the +101 do? |
| | |
| |||
| if you are at priority X, if privacy manager fails, it will automatically jump to X+101 (if X+101 exists). so, this is where a caller goes if they did not enter a valid phone number in 3 tries... |
| Thread Tools | |
| Display Modes | Rate This Thread |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 486 CLID | huggons | Grandstream Support Forum | 1 | June 12th, 2006 09:55 PM |
| Caller ID with AsteriDex on A@H | keefe007 | Asterisk Support Forum | 1 | April 7th, 2006 04:30 PM |
| Authenticate DISA with CLID (A@H1.3) | jmattwood | Asterisk Support Forum | 56 | March 6th, 2006 07:51 PM |
| Nerd Vittles' Asteridex | jmattwood | Asterisk Support Forum | 7 | January 8th, 2006 01:36 PM |
| SPA 3000 and UK CLID | Dirky | Linksys (Sipura) VoIP Support Forum | 3 | March 28th, 2005 11:53 PM |