Send call from file python

Get help with installing and running AsteriskNOW.

Moderators: Moderator, Support

Send call from file python

Postby sabatiello » Mon Dec 29, 2014 12:55 pm

Sorry for my english
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: Send call from file python

Postby navaismo » Mon Dec 29, 2014 4:46 pm

Yes its possible, google for an AMI python library or use basic AMI commands.
navaismo
Salt of the Asterisk
 
Posts: 1610
Joined: Mon Dec 07, 2009 1:30 pm
Location: Mexico City, Mexico

Re: Send call from file python

Postby sabatiello » Tue Dec 30, 2014 4:58 am

I tried but I don't understand how. Can you help me??
sabatiello
Newsterisk
 
Posts: 3
Joined: Mon Dec 29, 2014 12:40 pm

Re: Send call from file python

Postby david55 » Tue Dec 30, 2014 6:44 am

For that level of support you need to use the Biz and Jobs forum, to hire a consultant.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am


Return to AsteriskNOW Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron