<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Anahi Ludueña escribió:
<blockquote cite="mid:COL124-W20D4519664A5E1F47F605F93E30@phx.gbl"
type="cite">
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>Hi people, I have the following context in my dialplan:<br>
<br>
[macro-meetme-part]<br>
exten => s,1,Set(PART_OPT=${ARG1})<br>
exten => s,n,Set(CONFNRO=${ARG2})<br>
exten => s,n,GotoIf($[${ISNULL(${ARG3})}]?start:rec)<br>
exten => s,n(rec),Set(MEETME_RECORDINGFILE=${ARG3}-${CONFNRO})<br>
exten => s,n(start),MeetMe(${CONFNRO},${PART_OPT})<br>
exten => s,n,Noop(Next Line)<br>
<br>
The problem I have is that after the user hangs up the phone, the dial
plan doesn't go to the next line, but it shows the message: <br>
<i>" Spawn extension (macro-meetme-part, s, 5) exited non-zero on
'SIP/2001-083238e8' in macro 'meetme-part'"</i><br>
<br>
Why does it happen? Is it right? Or I'm wrong?<br>
<br>
Thanks a lot...<br>
</blockquote>
No, when a hangup occurs, going to the next line is not the default
behavior on the dialplan. If there's a hangup that's where the channel
ends just like the message reads and the CDR is proof of that. The only
exception is when you define the special 'h' extension, which is
executed after the channel is hungup, but I'm not sure if the 'h'
extension works within a Macro. On that case I would play it safe and
define it in a normal context. It is known that some special
extensions, like the 'i' one, doesn't work within a Macro. That's one
of the many reasons why the use of Gosub() as a replacement for Macro()
is encouraged.<br>
<br>
Cheers,<br>
<br>
<pre class="moz-signature" cols="72">--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center
PBX: (+57 1)6500800 ext. 1201
Fax: (+57 1)6500816
Móvil: (+57)3138873587
</pre>
</body>
</html>