<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">Can't we use pattern matching inside a macro?<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">Because when I am trying to do so call is terminating even for a very simple dummy dialplan.<br><br>[demo3]<br>exten=>98,1,NoOp()<br>exten=>98,2,Macro(testme)<br>exten=>h,1,NoOp(terminating call);<br><br>[macro-testme]<br>exten=>s,1,Playback(Digits/2)<br>exten=>s,2,WaitExten(15)<br>exten=>s,3,NoOp()<br><br>exten=>_X,1,NoOp(${EXTEN})<br>exten=>_X,2,Goto(s,3)<br><br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">Even for this code when execution reaches the line 2 in macro 'testme' it terminates as soon as I input some number.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,0)">Error :<br><br>WARNING[9984][C-0000000d]: pbx.c:6696 __ast_pbx_run: Invalid extension '5', but no rule 'i' or 'e' in context 'demo3'<br> -- Executing [h@demo3:1] NoOp("SIP/101-0000000d", "terminating call") in new stack<br>[Sep 9 02:11:14] NOTICE[9984]: pbx_spool.c:402 attempt_thread: Call completed to SIP/101/009871888729<br><br clear="all"></div><div><div dir="ltr"><span style="background-color:rgb(255,255,255)"><font style="font-family:georgia,serif" face="garamond,serif"><font size="4"><font size="4"><font face="verdana,sans-serif"><font>Anurag Rana <br><font size="1"><span style="color:rgb(56,118,29)"><a href="http://newbie42.blogspot.in/" target="_blank">http://newbie42.blogspot.in/</a></span><br></font><br></font><br></font></font></font></font></span><div><span style="background-color:rgb(255,255,255)"><font style="font-family:georgia,serif" face="garamond,serif"><br></font></span></div></div></div>
</div>