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
Code was working in Android 2.1 SDK but not on 2.2
Iphone Can't get Exchange mail on LAN but ok on 3G.
Dell M6300 Will Not Boot Even With 130W Power Supply
Running RMI on Tomcat Servlet - How do I set up RMISecurityManager?
why avoid system tables?
Email sent to Tiscali email addresses bouncing with No PTR record error
Why don't Lotus Notes document links work when sent to MS Outlook emails.
Replacing SAN-added UCC SSL Cert
Link to PDF files from DVD Menu
SBS 2008 strange issue