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

Dear Guys. I have some events about exit call one Queue.
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.

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 );

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.