[asterisk-dev] cdr entry does not get written after redirect

Wolfgang Pichler wpichler at yosd.at
Wed Nov 25 08:14:51 CST 2009


Hi all,

i have discovered the following bug in asterisk 1.6.0.17 (the digium centos
repository version)

Following the callflow to reproduce it

Call enters dialplan - does wait in a WaitMusicOnHold(1000) Call (something
like my own call parking solution).
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.

After that - no cdr entry will get writen for that call !

I have found this bug report
https://issues.asterisk.org/view.php?id=14660

It is not the same - but could it be that that fix has broken something else
?

here is the context the call comes in

[from-iax]
exten = 11862,1,Answer()
exten = 11862,n,WaitMusicOnHold(1000)


here is the redirect target i used for testing
[redirect]
exten = s,1,Dial(SIP/100,10,mig)

here is the php code i have used to do the redirect (test code - needs pear
HTTP_Client)
<?php
        require_once("HTTP/Client.php");
        $client = new HTTP_Client();

        $res = $client->get("
http://localhost:8088/asterisk/manager?action=login&username=tap&secret=tap
");
        if (is_a($res, 'Pear_Error')) {
                die("Fehler...");
        } else if ($res=="200") {
                echo "Connected";
        } else {
                die("Anmeldung fehlgeschlagen");
        }
        $res = $client->get("
http://localhost:8088/asterisk/mxml?action=Redirect&channel=
".urlencode("IAX2/tel01ass3-861")."&context=redirect&exten=s&priority=1");
        $response = $client->currentResponse();
        $result = new SimpleXMLElement($response['body']);
        print_r($result);
?>


Any ideas about that ?

best regards,
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20091125/adea1404/attachment-0001.htm 


More information about the asterisk-dev mailing list