Hello,
I installed the cmcheck and cmadd scripts to whitelist users, unfortunately I’m getting an error when using the cmadd feature.
I set it as the following:
Inbound goes to dynamic route: AGI Lookup: lgaetz-cmcheck.php,${CALLERID(number)}
If whitelist is true it goes to an extension
If false it goes to the IVR asking to press a specific number
If number is pressed it is redirected to custom destination add-cid-to-whitelist,s,1
And after return it goes to an extension.
The number is correctly added but there’s something failing after that when it has to go to the extension and the call is dropped, in the logs it shows:
1318
[2021-05-11 02:46:09] VERBOSE[2003603][C-00000012] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/lgaetz-cmadd.php1319
[2021-05-11 02:46:09] VERBOSE[2003603][C-00000012] res_agi.c: lgaetz-cmadd.php,06XXXXXXX,+336XXXXXXX: Success, 06XXXXXXX added to Contact Mgr group whitelist1320
[2021-05-11 02:46:09] VERBOSE[2003603][C-00000012] res_agi.c: <PJSIP/OVH-04XXXXXXXXX-00000011>AGI Script lgaetz-cmadd.php completed, returning 01321
[2021-05-11 02:46:09] VERBOSE[2003603][C-00000012] pbx.c: Executing [[email protected]:4] Return(“PJSIP/OVH-04XXXXXXXXX-00000011”, “”) in new stack1322
[2021-05-11 02:46:09] ERROR[2003603][C-00000012] app_stack.c: Return without Gosub: stack is empty1323
[2021-05-11 02:46:09] VERBOSE[2003603][C-00000012] pbx.c: Spawn extension (add-cid-to-whitelist, s, 4) exited non-zero on ‘PJSIP/OVH-XXXXXXXXX-00000011’
I also tried to send the call to the talking clock but it always fails.
Did I miss something in the configuration ?
Thank you.