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>&lt;?php</div><div>        require_once(&quot;HTTP/Client.php&quot;);</div><div>        $client = new HTTP_Client();</div><div><br></div><div>        $res = $client-&gt;get(&quot;<a href="http://localhost:8088/asterisk/manager?action=login&amp;username=tap&amp;secret=tap">http://localhost:8088/asterisk/manager?action=login&amp;username=tap&amp;secret=tap</a>&quot;);</div>
<div>        if (is_a($res, &#39;Pear_Error&#39;)) {</div><div>                die(&quot;Fehler...&quot;);</div><div>        } else if ($res==&quot;200&quot;) {</div><div>                echo &quot;Connected&quot;;</div><div>
        } else {</div><div>                die(&quot;Anmeldung fehlgeschlagen&quot;);</div><div>        }</div><div>        $res = $client-&gt;get(&quot;<a href="http://localhost:8088/asterisk/mxml?action=Redirect&amp;channel=">http://localhost:8088/asterisk/mxml?action=Redirect&amp;channel=</a>&quot;.urlencode(&quot;IAX2/tel01ass3-861&quot;).&quot;&amp;context=redirect&amp;exten=s&amp;priority=1&quot;);</div>
<div>        $response = $client-&gt;currentResponse();</div><div>        $result = new SimpleXMLElement($response[&#39;body&#39;]);</div><div>        print_r($result);</div><div>?&gt;</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>