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
creating image using coldfusion
VMware ESXI help
DFS on Windows Server 2003
Validate month and year fields based on current date
CRON JOB - using cpanel for direct_mail extension for typo3
How to store user pictures in Active Directory (2008 R2 forest functional level)
asp.net: How to determine if a when a user login. is an Admin Account, * the menu is selected to show admin pages & reports.
Use .NET or SSIS to download Exhange email and process attachments
Create linked server from MS Sql to oracle server
what is most cost effective way to backup windows 2008 sbs