Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension does not exist #62

Open
uribes78 opened this issue Sep 22, 2023 · 0 comments
Open

Extension does not exist #62

uribes78 opened this issue Sep 22, 2023 · 0 comments

Comments

@uribes78
Copy link

uribes78 commented Sep 22, 2023

when the originate execute a dialstring on _cb_Originate callback if the result is Error and the message is Extension does not exists, the callback fails when try to save at call_progress_log with the message Column 'new_status' cannot be null as shown in the next image:

imagen

This is happening because on the method marcarLlamada at line 546 you are hardcoding the status 'Placing' inside the array to save the initial status, but the property status is set to 'null'. To fix the issue I added the next line:

$this->status = 'Placing';
// Notificar el progreso de la llamada
$paramProgreso = array(
    'datetime_entry'                    =>  date('Y-m-d H:i:s', $timestamp),
    'new_status'                        =>  $this->status,
    'retry'                             =>  $retry,
    'trunk'                             =>  $trunk,
    'id_call_'.$this->tipo_llamada      =>  $this->id_llamada,
    'extra_events'                      =>  $precall_events,
);

because on _cb_Originate there is a condition when $bExito is false if ($this->status == 'Placing') $this->status = 'Failure';, but status property is not defined so the value is set to null and failed.

Hope this can help some else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant