Microsoft
Software
Hardware
Network
Question : Asterisk DialPlan issue
Hello Experts,
In my Asterisk dialplan, I have:
exten => h,1,Gotoif(${TYPE}=FAX?fax
tomail:hng
)
exten => h,n(faxtomail),System(/usr
/local/bin
/sendEmail
........
exten => h,n(hng),Hangup
When any call being hung with TYPE=PHONE, I am getting this in the CLI and the faxtomail system script is being executed:
-- Executing [h@menu:1] GotoIf("DAHDI/8-1", "PHONE=FAX?faxtomail:hng")
in new stack
-- Goto (menu,h,2)
-- Executing [h@menu:2] System("DAHDI/8-1", "/usr/local/bin/sendEmai
Can you tell me why it's going to label (faxtomail) instead of (hng) ?
Answer : Asterisk DialPlan issue
Try to replace:
exten => h,1,Gotoif(${TYPE}=FAX?fax
tomail:hng
)
By:
exten => h,1,Gotoif($["${TYPE}" = "FAX"]?faxtomail:hng)
Works ?
Random Solutions
Thunderbird EMail
Attrubute 'width' is considered outdated. A newer construct is recommended
Exchange 2010 Email policy
How to convert non ansi outer join =* to ansi outer join
How do I avoid double quotation marks by using comma in Acrobat Acrobat v.9.x
bootable usb
Can I use a sql query file (.sql) with bcp.exe?
How do I embed ajax calendar extender in asp.net gridview correctly?
GPO to ensure no users are able to bypass the Proxy when browsing the Internet (IE:7 and IE:8)
Capture Linkbutton click event in Master page from Content page