New Event Queue Log (When i apply command Redirect via AMI)

Dear Guys. I have some events about exit call one Queue.
https://wiki.asterisk.org/wiki/display/AST/Queue+Logs
So, when i execute the command Redirect one call into the Queue to another Queue, Asterisk log print ABANDON.
Bellow i use Redirect one call and log print Abandon.
1684179777|1684179715.94459|sac|NONE|ENTERQUEUE||21985395900|12
1684179790|1684179715.94459|sac|NONE|ABANDON|12|12|13
1684179790|1684179715.94459|suporte|NONE|ENTERQUEUE||21985395900|7

So, my client request to change it. In this case, i would like change to print REDIRECT_CHANNEL and not ABANDON because i need distinct ABANDON to REDIRECT_CHANNEL.

Question: Is it possible ? I can to do it in queue.c ? Or another Archive ?

Please, Help-Me !!!

fputs($socket, “Action: Login\r\n”);
fputs($socket, “UserName: $username\r\n”);
fputs($socket, “Secret: $secret\r\n”);
fputs($socket, “Event: Off\r\n\r\n”);

    fputs($socket, "Action: Redirect\r\n");
    fputs($socket, "Exten: $goto\r\n");
    fputs($socket, "Context: ramais-externos\r\n");
    fputs($socket, "Priority: 1\r\n");
    fputs($socket, "Channel: $channel\r\n\r\n");

    fputs($socket, "Action: Logoff\r\n\r\n");
    while (!feof($socket)) {
        $wrets .= fread($socket,8192 );
    }
    fclose($socket);

I doubt it. Although there have been big changes in terms of what happens when channels get dragged out of applications, since I was deep into this, I’m pretty sure that Queue still only knows that the channel has gone away, not why.

Thanks for the Answer @david551 . So, my problem is when the channel has gone via redirect_channel. In this case asterisk print the log event ABANDON.

I would like to differentiate it in this case. I would that the Asterisk print log REDIRECT_CHANNEL or REDIRECT…
I test with Asterisk 18 and the same happens. I believe I would have to change the source code for change it.
Is it possible ?

maybe in your dialplan you can add a custom queue log for this Application_QueueLog

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.