Hi all,<br><br>I think i'm missing something very very basic! I want my calls with DID 48XX (From pstn E1 TE110P) to be answered then playback a file and hangup.<br><br>Part of my extensions.conf where from-pstn is the context for all calls from pstn line is:
<br><br>[from-pstn]<br>include =&gt; from-pstn-custom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; create this context in extensions_custom.conf to include customizations<br>include =&gt; ext-did-custom<br>include =&gt; from-pstn-timecheck&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; this has to be included otherwise it overrides ext-did
<br>exten =&gt; fax,1,Goto(ext-fax,in_fax,1)<br><br><br>[ext-did-custom]<br clear="all">exten =&gt; _48XX,1,Answer<br>exten =&gt; _48XX,n,SetVar(FROM_DID=${EXTEN})<br>exten =&gt; _48XX,n,Playback(vm-goodbye)<br>exten =&gt; _48XX,n,Hangup
<br><br>[from-pstn-timecheck]<br>exten =&gt; _.,1,Goto(s,1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; catch-all matching for calls that have DID info (if a DID route hasn't matched them)<br>exten =&gt; s,1,GotoIf($[${IN_OVERRIDE} = forcereghours]?from-pstn-reghours,s,1:)
<br>exten =&gt; s,2,GotoIf($[${IN_OVERRIDE} = forceafthours]?from-pstn-afthours,s,1:)<br>exten =&gt; s,3,GotoIfTime(${REGTIME}|${REGDAYS}|*|*?from-pstn-reghours,s,1:)<br>exten =&gt; s,4,Goto(from-pstn-afthours,s,1)<br><br>
<br>Problem, look my Asterisk CLI :<br><br>&nbsp; -- Accepting call from '2132' to '4888' on channel 0/1, span 1<br>&nbsp;&nbsp;&nbsp; -- Executing Answer(&quot;Zap/1-1&quot;, &quot;&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing SetVar(&quot;Zap/1-1&quot;, &quot;FROM_DID=4888&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Playback(&quot;Zap/1-1&quot;, &quot;vm-goodbye&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Playing 'vm-goodbye' (language 'pt')<br>&nbsp;&nbsp;&nbsp; -- Executing Hangup(&quot;Zap/1-1&quot;, &quot;&quot;) in new stack<br>&nbsp; == Spawn extension (from-pstn, 4888, 4) exited non-zero on 'Zap/1-1'
<br>&nbsp;&nbsp;&nbsp; -- Executing Goto(&quot;Zap/1-1&quot;, &quot;s|1&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Goto (from-pstn,s,1)<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf(&quot;Zap/1-1&quot;, &quot;1?from-pstn-reghours|s|1:&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Goto (from-pstn-reghours,s,1)
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf(&quot;Zap/1-1&quot;, &quot;0?from-pstn-reghours-nofax|s|1:2&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Goto (from-pstn-reghours,s,2)<br>&nbsp;&nbsp;&nbsp; -- Executing Answer(&quot;Zap/1-1&quot;, &quot;&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing PlayTones(&quot;Zap/1-1&quot;, &quot;ring&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing NVFaxDetect(&quot;Zap/1-1&quot;, &quot;8&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Channel 0/1, span 1 got hangup request<br><br>After the hangup the call seems to keep executing Dialplan.... why?? Does this is related with autofallback option in globals???
<br><br>Why Hangup didn't exit dialplan?<br><br>Hope some one can help me.<br><br>-- <br>Com os melhores cumprimentos,<br><br>Marco Mouta