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.
[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.