Hi all,
<div><br></div><div>i have discovered the following bug in asterisk 1.6.0.17 (the digium centos repository version)</div><div><br></div><div>Following the callflow to reproduce it</div><div><br></div><div>Call enters dialplan - does wait in a WaitMusicOnHold(1000) Call (something like my own call parking solution).</div>
<div>If now a redirect request does come over the manager / ajam api - the call does get redirected into an other context - there a phone will get called - and the caller will take the call.</div><div><br></div><div>After that - no cdr entry will get writen for that call !</div>
<div><br></div><div>I have found this bug report</div><div><a href="https://issues.asterisk.org/view.php?id=14660">https://issues.asterisk.org/view.php?id=14660</a></div><div><br></div><div>It is not the same - but could it be that that fix has broken something else ?</div>
<div><br></div><div>here is the context the call comes in </div><div><div><br></div><div>[from-iax]</div><div>exten = 11862,1,Answer()</div><div>exten = 11862,n,WaitMusicOnHold(1000)</div><div><br></div><div><br></div><div>
here is the redirect target i used for testing</div><div><div>[redirect]</div><div>exten = s,1,Dial(SIP/100,10,mig)</div><div><br></div><div>here is the php code i have used to do the redirect (test code - needs pear HTTP_Client)</div>
<div><div><?php</div><div> require_once("HTTP/Client.php");</div><div> $client = new HTTP_Client();</div><div><br></div><div> $res = $client->get("<a href="http://localhost:8088/asterisk/manager?action=login&username=tap&secret=tap">http://localhost:8088/asterisk/manager?action=login&username=tap&secret=tap</a>");</div>
<div> if (is_a($res, 'Pear_Error')) {</div><div> die("Fehler...");</div><div> } else if ($res=="200") {</div><div> echo "Connected";</div><div>
} else {</div><div> die("Anmeldung fehlgeschlagen");</div><div> }</div><div> $res = $client->get("<a href="http://localhost:8088/asterisk/mxml?action=Redirect&channel=">http://localhost:8088/asterisk/mxml?action=Redirect&channel=</a>".urlencode("IAX2/tel01ass3-861")."&context=redirect&exten=s&priority=1");</div>
<div> $response = $client->currentResponse();</div><div> $result = new SimpleXMLElement($response['body']);</div><div> print_r($result);</div><div>?></div><div><br></div><div><br></div><div>
Any ideas about that ?</div><div><br></div><div>best regards,</div><div>Wolfgang</div></div></div></div>