Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

possible to overide the DID context ?

Status
Not open for further replies.

bithead9

MIS
Jan 27, 2003
183
US
I have an extension under inbound DID. It routes to extension as such:
[ext-did-0002]
include => ext-did-0002-custom
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => 2155551212,1,Set(__FROM_DID=${EXTEN})
exten => 2155551212,n,Gosub(app-blacklist-check,s,1)
exten => 2155551212,n,ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)}))
exten => 2155551212,n,Set(__CALLINGPRES_SV=${CALLERPRES()})
exten => 2155551212,n,Set(CALLERPRES()=allowed_not_screened)
exten => 2155551212,n,Goto(from-did-direct,222,1)
If I add the extension to :
[from-internal-custom]
exten => 222,1,Answer()
enten => 222,2,VoiceMailMain()
exten => 222,3,Hangup()
It works fine for getting me to VM from any extension on *
If I dial from outside (via the DID) it rings 222 and then goes to VM for just the 222 extension.
I tried using [ext-did-0002-custom] as the header for override, but no luck. I also tried:from-did-direct-custom,
from-trunk-custom, and from-pstn-custom. all to no avail. Do I need to hack the Goto(from-did-direct,222,1)
to somehow force this to from-internal context ???
Some of this scripting is new to me, anyone point me in the right direction. I've googled this quite a bit and there are LOTS of ways to access VM, I want to only customize what is necessary to get it working. Not install 3rd party software or extensions to make this work. Native Asterisk would be best.
 
OK was able to get this working but only by updating /etc/asterisk/extensions_additional.conf - this of course will get overlaid by FreePBX when I change something. How can I override an IVR that was built. I tried adding to extension_custom.conf but it does not take. Is there a special file to use for custom-ivr ? Instead of fiddling with the extensions.conf I opted to build a simple IVR and have it do TWO things. 1) announce a message and if not button presses, disconnects. 2) if a "hidden" number button is pressed it will send you to the *98 built in VM main menu. Where the end user can then enter an extension and password to check their VM from anywhere. I just need to know how to make the custom IVR permanent. I've googled this and also read the Asterisk 2.6 manual with not luck in an answer to how to override the IVR with my own tweaks. Hopefully someone here has done this before. I don't want to have to remember to put the tweaks back every time I update the /etc/asterisk/extensions_additional.conf via the GUI.
 
Setup a miscellaneous destination, something like Voicemail Access, dialing *98.

Point a DID or IVR option toward the miscellaneous destination.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top