<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div><br></div><blockquote type="cite"><div><div dir="ltr">Hi, thanks.<br><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">.Did that include 'agi set debug on?'<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<b><span style="color:rgb(11,83,148)">Yes, that include this command</span></b>.<br></blockquote><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Can you 'cut-n-paste' the relevant 'sanitized' console output?<br>
<b><span style="color:rgb(11,83,148)">Ok. This is</span></b>:<br></div></blockquote><div><span style="color:rgb(11,83,148)"><font size="1"><span style="font-family:courier new,monospace">&nbsp;trixbox146002*CLI&gt; <br>&nbsp;&nbsp;&nbsp; -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test.agi<br>
trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_request: agi-test.agi<br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_channel: SIP/INCONCERT-000035d2<br>trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_language: en<br>
trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_type: SIP<br>trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_uniqueid: 1362669295.35561<br>trixbox146002*CLI&gt; <br>
&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_version: 1.6.0.28-samy-r100<br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_callerid: 1044<br>trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_calleridname: 1044<br>
trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_callingpres: 0<br>trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_callingani2: 0<br>trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_callington: 0<br>
trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_callingtns: 0<br>trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_dnid: 701820101044<br>trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_rdnis: unknown<br>
trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_context: ModernaDesv_E1<br>trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_extension: s<br>trixbox146002*CLI&gt; <br>
&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_priority: 3<br>trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_enhanced: 0.0<br>trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_accountcode: <br>
trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; agi_threadid: 29367216<br>trixbox146002*CLI&gt; <br>&lt;SIP/INCONCERT-000035d2&gt;AGI Tx &gt;&gt; <br>trixbox146002*CLI&gt; <br>[Mar&nbsp; 7 10:14:55] NOTICE[32548]: channel.c:3051 __ast_read: Dropping incompatible voice frame on SIP/INCONCERT-000035d2 of format ulaw since our native format has changed to 0x8 (alaw)<br>
trixbox146002*CLI&gt; <br>&nbsp;&nbsp;&nbsp; -- &lt;SIP/INCONCERT-000035d2&gt;AGI Script agi-test.agi completed, returning 0</span></font></span><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
I looked through my AGIs and find I always set channel variables and let the dialplan do the actual dial().<br>
<br>
1) Is your AGI exiting before the dial() completes?<br>
<span style="color:rgb(11,83,148)"><b>Yes.</b></span><br></div></blockquote><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
2) If you execute the same dial() command from the 'AGI debug output' (which should show the expanded variables) in your dialplan, does that yield andy clues?<br></div></blockquote><div><span style="color:rgb(11,83,148)"><b>How I do that? I just use the AMI command <u><i>originate</i></u>. Executing this with the protocol already works, but not ring.</b></span><br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<br>
3) If you use another technology like SIP can you enable SIP debugging and observe the SIP dialog?<div class=""><div class="h5"><span style="color:rgb(11,83,148)"><b>I can not use SIP because the call goes out to E1.</b></span><br>
</div><div class="h5">
<br></div></div></div></blockquote><div>&nbsp;</div><div>Regards,<br><br></div><div>Gustavo <br></div></div></div></div></div></div>
</div></blockquote></body></html>