I need help about pbx


(Iboo) #1

Can i mack call from ssh ip ? And how ?!


#2

what do you mean by ‘ssh ip’ ?


(Iboo) #3

I meen by ( vps ) root , mack call inside root


#4

It depends on is what is installed on ‘ip’ . But if asterisk is installed and working , start with

https://community.freepbx.org/t/how-to-originate-call-from-cli/48406


(Iboo) #5

Can I communicate with you extensively via WhatsApp?


#6

Sorry, but no.


(Iboo) #7

After logging in via putty to my IP address by my user, how can I make a connection directly through the window, do I use a specific code or script? Sorry for the inconvenience


#8

Follow (and read) the link, it discusses that exactly.


(Iboo) #9

I hope that , thank you


(Iboo) #10

I have read and did not understand well, but can I get a script in Python ready to be put into my root path to make calls via the command window ?!


#11

With respect , you have a lot to learn but this forum is not the places to expect anyone to teach you, spend a few hours with a basic linux ‘bash’ tutorial then you will better understand users and ssh, then a few with the wiki here

https://wiki.freepbx.org/

and you will better understand Asterisk, FreePBX and how to script them, then a few more with a good python tutorial so you know how to write python scripts, having done all that here are several asterisk python AGI libraries available with a quick google search.


#12

I am assuming that you have a working FreePBX system and you want to programmatically connect your extension to an external number.

If your extension number is 1234 and you execute from a root shell prompt:
asterisk -rx "channel originate local/1234@from-internal extension 18004377950@from-internal"
your phone will ring. When you answer Asterisk will call 18004377950 and connect you.

If you want to automate this with Python, your script should compute the required channel originate command and call os.system to execute it.