send http command or start a script with dial code

Status
Not open for further replies.

stepbx

New User
Joined
Oct 21, 2022
Messages
4
Reaction score
0
hi 3cx forum

is it possible to send a http command (http://192.168.0.2:80/status.xml?pl1=1) with using a dial code like *77 in call?
or starting a python script will also help me.

thanks and kind regards
ste
 
DURING a call, not really unless dialing a second line.

The CFD could be used to send that request, but it wouldn't be "during a call", but rather aside of it.
 
thank you for your response.

yes i mean a normal call like the following.

1 calls 5.
5 answer the call, talk, and then press *77 as example.
http command 1 sent or script 1 start.
call end

2 calls 5.
5 answer the call, talk, and then press *77 as example.
http command 2 sent or script 2 start.
call end

in freepbx i can self define it in the custom.conf files, and check the CALLERID for starting the right script.
is this also possible in 3cx?
i am new with 3cx.
are there some custome files for config?
and i cant find any documentation about starting scripts or sending http commands, do you have an idea what i can search for?
 
3CX isn't built on Asterisk, so there's no custom configs like this.

What does the script do and why should it drop the call? If that's what you need, a CFD would work as you could simply transfer the call to it.
 
on the freepbx i use a python script to send a http command to an other lan device.

and the call end was only to fulfill the example, its not a part of the script.

the questions is about self defined dial code
and send a http command or start a script if someone press the dial code.
 
Then, no, there's do way to trigger anything with custom dial codes.

I do, however, encourage you to take a look at the CFD because your users could simply open a second line to call the CFD and trigger the script (CFD can send web requests.)
 
thank you, i will try it.
 
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,081
Members
164,899
Latest member
mazet