<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
There is something which I could do to execute priority 2? It's
possible my agi have programming error?<br>
<br>
Eduardo wrote:
<blockquote cite="mid457ED258.5040506@gmail.com" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<font face="Verdana">Hi all. I've written a AGI in C language. It
receive the asterisk variables to identify the caller. After, it dial
to destination. When caller or the called hangup the phone, asterisk
returns me '200 result=-1'. For this, asterisk never execute next step,
priority 2. This is very important to me, because priority 2 do the
billing. Below I give you the debug message:<br>
<br>
-- Executing agi("SIP/provale-7473", "dialer|551236337388")<br>
-- Launched AGI Script /usr/local/share/asterisk/agi-bin/dialer<br>
AGI Tx >> agi_request: dialer<br>
AGI Tx >> agi_channel: SIP/provale-7473<br>
AGI Tx >> agi_language: br<br>
AGI Tx >> agi_type: SIP<br>
AGI Tx >> agi_uniqueid: 1165939032.131<br>
AGI Tx >> agi_callerid: provale<br>
AGI Tx >> agi_calleridname: Provale<br>
AGI Tx >> agi_callingpres: 0<br>
AGI Tx >> agi_callingani2: 0<br>
AGI Tx >> agi_callington: 0<br>
AGI Tx >> agi_callingtns: 0<br>
AGI Tx >> agi_dnid: 01236337388<br>
AGI Tx >> agi_rdnis: unknown<br>
AGI Tx >> agi_context: default<br>
AGI Tx >> agi_extension: 01236337388<br>
AGI Tx >> agi_priority: 1<br>
AGI Tx >> agi_enhanced: 0.0<br>
AGI Tx >> agi_accountcode: <br>
AGI Tx >> <br>
AGI Rx << exec dial "sip/go2call/551236337388|60|TtS(3600)"<br>
-- AGI Script Executing Application: (dial) Options:
(sip/go2call/551236337388|60|TtS(3600))<br>
-- Setting call duration limit to 3600 seconds.<br>
-- Called go2call/551236337388<br>
-- SIP/go2call-3fd0 is making progress passing it to
SIP/provale-7473<br>
-- SIP/go2call-3fd0 answered SIP/provale-7473<br>
-- Attempting native bridge of SIP/provale-7473 and SIP/go2call-3fd0<br>
AGI Tx >> 200 result=-1<br>
-- AGI Script dialer completed, returning 0<br>
</font>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<br>
</body>
</html>