Make call from file python

Commercial and business-oriented Asterisk discussion.

Moderator: Moderator

Make call from file python

Postby sabatiello » Wed Dec 31, 2014 2:42 am

Hi, I would like to know if is it possible to send a call from file python. I have a raspberry pi with Rapbx and in asterisk I have:
sip.conf
Code: Select all
    [1234]
    type=friend
    username=1234
    secret=password
    host=dynamic
    context=internal
    qualify=yes
    nat=yes

    [1000]
    type=friend
    username=1000
    secret=password
    host=dynamic
    context=internal
    qualify=yes
    nat=yes

extensions.conf
Code: Select all
[internal]
exten => 1234,1,Dial(SIP/1234)
exten => 1234,2,Hangup()
exten => 1000,1,Dial(SIP/1000)
exten => 1000,2,Hangup()


In this moment the user 1000 can call the user 1234 and 1234 can call the user 1000 by the software linphone but now I would like to make a call from script python, to create a file call.py and call the user 1000 or 1234 from this file

Is it possible???
sabatiello
Newsterisk
 
Posts: 3
Joined: Mon Dec 29, 2014 12:40 pm

Re: Make call from file python

Postby malcolmd » Wed Dec 31, 2014 7:55 am

Asterisk does not, in it self, come with a Python interpreter for setting up calls. Google shows something here:
http://sourceforge.net/projects/pyst/

but I can offer no input about it.
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US


Return to Asterisk Biz & Jobs

Who is online

Users browsing this forum: No registered users and 0 guests