Folks,
Our VOIP provider gives us a file that defines a context called [outgoing]. Here is a sample:
[outgoing]
…
exten => _1NXXNXXXXXX,n,Dial(SIP/+${EXTEN}@${VOICEPULSE_GATEWAY_OUT_A})
exten => _1NXXNXXXXXX,n,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?${EXTEN}|GatewayB)
exten => _1NXXNXXXXXX,n(GatewayB),Dial(SIP/+${EXTEN}@${VOICEPULSE_GATEWAY_OUT_B})
…
The context used for our internal Cisco phones is FromCiscoPhone.
[FromCiscoPhone]
exten => 101, blah
exten => 102, blah…
At the end of our internal extensions, if the number starts with 9, indicating it is an external phone number, I would simply like to invoke [outgoing]. I also need to strip the first digit (9) before invoking [outgoing].
Can someone please tell me how I can achieve this?
Thank you in advance for your help.
Regards,
Peter