I am working on call transfer. Follwing is the code from extensions.conf file.
exten => s,1,Flash()
exten => s,2,SendDTMF(*72)
exten => s,3,wait(5)
exten => s,4,SendDTMF(4694327742#)
exten => s,5, wait(5)
exten => s,6,Hangup()
My service provider enables call forwarding if I press *72 followed by 4694327742# to the number 4694327742.
I am using digium card with Asterisk. When the above context is invoked from an FXO channel, things are working fine, my call forwarding gets enabled.
But I want to invoke the same context from my Asterisk CLI or from an internal extension(FXS channel). I am not able to get this done, I see the error: "DAHDI/4-1 not an FXO channel ".
Do I need to give any arguments to flash command to get this done. Is there any other way to achive the same?.
Any help will be highly appreciated.
PS: My line is a PSTN.