Hi,
I am trying to enable recording automatically and have created the below custom destination
[custom-app]
exten => 572,1,NoOp(Welcome to the customer application)
exten => 572,n,Macro(one-touch-record)
exten => 572,n,Dial(SIP/300,15,trwWbxX)
But i’m getting the below error:
– Executing [572@custom-app:1] NoOp(“SIP/pureip-00000000”, “Welcome to the customer application”) in new stack
– Executing [572@custom-app:2] Macro(“SIP/pureip-00000000”, “one-touch-record”) in new stack
– Executing [s@macro-one-touch-record:1] ExecIf(“SIP/pureip-00000000”, “0?Set(THISEXTEN=)”) in new stack
– Executing [s@macro-one-touch-record:2] ExecIf(“SIP/pureip-00000000”, “1?Set(THISEXTEN=)”) in new stack
[2013-09-17 10:38:09] WARNING[20428]: ast_expr2.fl:468 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected ‘’, expecting $end; Input:
""""=“exten” & “”!=“enabled”
^
[2013-09-17 10:38:09] WARNING[20428]: ast_expr2.fl:472 ast_yyerror: If you have questions, please refer to wiki.asterisk.org/wiki/display/ … +Variables
– Executing [s@macro-one-touch-record:3] ExecIf(“SIP/pureip-00000000”, “”"?MacroExit()") in new stack
– Executing [572@custom-app:3] Dial(“SIP/pureip-00000000”, “SIP/300,15,trwWbxX”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/300
– SIP/300-00000001 is ringing
Any ideas please? When i use one-touch-recording without this custom-app it works fine.