[asterisk-users] remote Asterisk console

Khalil Khamlichi khamlichi.khalil at gmail.com
Tue Jan 16 05:00:07 CST 2018


Hi,

The easiest way would be to use asterisk manager interface (some
simple steps to activate it on asterisk are easily found in the docs)
https://wiki.asterisk.org/wiki/display/AST/AMI+Examples

Now you will need a good python library to make it even easier
https://pypi.python.org/pypi/asterisk-ami/0.1.0

example :

# 1- import
from asterisk.ami import AMIClient
from asterisk.ami import SimpleAction

# 2- connect
client = AMIClient(address='192.168.1.100',port=5038)
client.login(username='username',secret='password')

# 3- use
action = SimpleAction(
    'Originate',
    Channel='SIP/2010',
    Exten='2010',
    Priority=1,
    Context='default',
    CallerID='python',
)
client.send_action(action)

# 4- take a break your work is done

REMARQUE: opening up your server to external access need to be done
with a lot of care.


On Tue, Jan 16, 2018 at 10:05 AM, Paul Neuwirth <mail at paul-neuwirth.nl> wrote:
> Hello group,
>
> what is the preferred method to connect to asterisk cli over network? I
> need to run asterisk cli commands remotely.
> Sharing the unix socket through NFS, if that's working?
> Or any other approaches, despite using SSH or rlogin, rsh.
>
> Thank you
>
> Paul
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list