Run shell script when extension calls out

Hi! I’m almost new at freebpx.

My version is FreePBX15, uses a pjsip.

I have a doorbell module with sip features, and it’s working already, but i want execute script (curl) to send message to Telegram, when doorbell extension is trying to call any other.

As i googled, i need to make a custom context and place something like:

same => n,set(output=${SHELL(curl https://)} )


Or this is the wrong way?

This is probably a helpful resource that you can reference to do what you’d like to do.

thanks! find an example, will try

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