<div>I'm playing around with Asterisk 1.6 some more. I'm looking forward to using some of the new features, but I'm stuck on some of the old ones. I've got an application that works as a Click-2-Dial web interface. It will call the person and then call two other phone numbers at the same time, passing the first to be answered to the user. This works just fine when executed from the dialplan, but my AGI program is having problems with the same command.
</div>
<div> </div>
<div>So the first log shows a normal dialplan executing a dial on two lines. Everything works out just fine and I get connected to the remote party. Very neatly done.</div>
<div> </div>
<div>Second log is harder to understand because it's AGI. But the end event is that after dialing the same (minus the 30 second timeout and "r" option) dial string, Asterisk will kick me off the `asterisk -r` logs AND disconnect the AGI program from Asterisk as well. Logs show me nothing either, and I'm looking at FULL logs. These problems happen the moment the channel is answered. I'm using this system at the moment to call myself, so I've noticed that it's having the problem the exact moment the lines would normally be bridged together. The first example doesn't have any problems, but AGI does with a very similar dial structure. I have some AGI debugging there, but it doesn't seem to be an issue with my AGI application as I orgirnally thought.
</div>
<div> </div>
<div>Someone have an idea?</div>
<div> </div>
<div>---------- FIRST LOG (good) ----------------</div>
<div> </div>
<div> -- Called trunk0/14083950000<br> -- SIP/trunk0-0915da30 is making progress passing it to <a href="mailto:Local/4083950000@outgoing-3556;2">Local/4083950000@outgoing-3556;2</a><br> -- <a href="mailto:Local/4083950000@outgoing-3556;1">
Local/4083950000@outgoing-3556;1</a> is making progress passing it to <a href="mailto:Local/josh@realtimedb-b6a0;2">Local/josh@realtimedb-b6a0;2</a><br>--- set_address_from_contact host '<a href="http://216.246.88.122">
216.246.88.122</a>'<br> -- SIP/trunk0-0915da30 answered <a href="mailto:Local/4083950000@outgoing-3556;2">Local/4083950000@outgoing-3556;2</a><br> -- <a href="mailto:Local/4083950000@outgoing-3556;1">Local/4083950000@outgoing-3556;1
</a> answered <a href="mailto:Local/josh@realtimedb-b6a0;2">Local/josh@realtimedb-b6a0;2</a><br> -- Executing [500@internal:1] Dial("<a href="mailto:Local/josh@realtimedb-b6a0;1">Local/josh@realtimedb-b6a0;1</a>", "Local/4084970000&Local/9168470000") in new stack
<br><br clear="all">---------- SECOND LOG (bad) --------------</div>
<div> </div>
<div> -- Called trunk0/14083952110<br> -- SIP/trunk0-09004080 answered <a href="mailto:Local/4083950000@outgoing-49dc;2">Local/4083950000@outgoing-49dc;2</a><br> -- <a href="mailto:Local/4083950000@outgoing-49dc;1">
Local/4083950000@outgoing-49dc;1</a> answered <a href="mailto:Local/josh@realtimedb-e775;2">Local/josh@realtimedb-e775;2</a><br> -- Executing [s@ajax:1] Wait("<a href="mailto:Local/josh@realtimedb-e775;1">Local/josh@realtimedb-e775;1
</a>", "1") in new stack<br> == Spawn extension (macro-which-line, s, 10) exited non-zero on <a href="mailto:'Local/4083950000@outgoing-49dc;2'">'Local/4083950000@outgoing-49dc;2'</a> in macro 'which-line'
<br> == Spawn extension (macro-which-line, s, 10) exited non-zero on <a href="mailto:'Local/4083950000@outgoing-49dc;2'">'Local/4083950000@outgoing-49dc;2'</a><br> == Spawn extension (realtimedb, josh, 3) exited non-zero on
<a href="mailto:'Local/josh@realtimedb-e775;2'">'Local/josh@realtimedb-e775;2'</a><br> -- Executing [s@ajax:2] AGI("SIP/trunk0-09004080", "ajax.agi") in new stack<br> -- Launched AGI Script /var/lib/asterisk/agi-bin/ajax.agi
<br> -- AGI Script Executing Application: (Dial) Options: (Local/4084970000&Local/9168470000,30,r)<br> -- Called 4084970000<br> -- Called 9168470000</div>
<div> -- SIP/trunk0-b7d7a858 is making progress passing it to <a href="mailto:Local/4084970000@default-752d;2">Local/4084970000@default-752d;2</a><br> -- <a href="mailto:Local/4084970000@default-752d;1">Local/4084970000@default-752d;1
</a> is making progress passing it to SIP/trunk0-09004080<br>--- set_address_from_contact host '<a href="http://216.246.88.122">216.246.88.122</a>'<br>localhost*CLI><br>Disconnected from Asterisk server<br><br>
-- <br>/Nick </div>