It’s basically a continuation ofhttps://community.freepbx.org/t/originate-via-cli-how-to-avoid-private-number-appearing-on-caller-id-on-phone/69159 this thread but I never have any joy asking for threads to be reopened so starting anew!
I want to send paging extension 50 to the context ‘assistance’ with a CLI command but having no joy.
Have tried:-
asterisk -rx 'channel originate local/[email protected] extension [email protected]'
and
asterisk -rx 'channel originate local/[email protected] extension [email protected] assistance'
etc
but in the logs it just says variations on
[2021-01-24 18:37:19] WARNING[27869][C-00008aa1] pbx.c: Channel 'Local/[email protected];1' sent to invalid extension but no invalid handler: context,exten,priority=assistance,31,1
[2021-01-24 18:37:17] WARNING[27870][C-00008aa0] chan_sip.c: This function can only be used on SIP channels.
[2021-01-24 18:37:17] ERROR[27870][C-00008aa0] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
Would welcome some tips.
(I just want to be able to play an announcement to all phones with one command.)
Thank you!