i can make a call using asterisk but i cannot make a call with this script:
Python
GNU nano 2.2.6 File: call2.py
import logging
logger = logging.getLogger (__ name__)
logger.debug ( "% s loaded", __name__)
from doorpi.action.base import Single Action
import doorpi
GNU nano 2.2.6 File: call2.py
import logging
logger = logging.getLogger (__ name__)
logger.debug ( "% s loaded", __name__)
from doorpi.action.base import Single Action
import doorpi
#number = "sip: daveyman123@sip.linphone.org"
def call (number):
doorpi.DoorPi (). sipphone.call (number)
def get (parameters):
parameter_list = parameters.split ( ',')
if len (parameter_list) is not 1: return None
number = 0624
#number = 13145265687
return CallAction (call, number = number)
class CallAction (Single Action):
passport
^ G Get Help ^ O ^ R WriteOut ReadFile ^ Y ^ Prev Page K Cut text ^ C Cur Pos
^ X ^ Exit J Justify ^ W Where Is ^ V Next Page ^ U UnCut Southwestern ^ T To Spell
Alles anzeigen
here is my doorpi.ini
Code
[DoorPi]
base_path = /usr/local/etc/DoorPi
eventlog = !BASEPATH!/conf/eventlog.db
is_alive_led =
last_snapshot =
[DoorPiWeb]
indexfile = index.html
ip =
loginfile = login.html
online_fallback = http://motom001.github.io/DoorPiWeb
port = 80
public = AREA_public
www = !BASEPATH!/../DoorPiWeb
[EVENT_OnStartup]
10 = sleep:1
[SIP-Phone]
firewallpolicy = PolicyNoFirewall
audio_codecs = PCMA,PCMU
call_timeout = 40
playback_device = C-Media USB Headphone Set Sound Device
capture_device = ALSA: USB PnP Sound Device
dialtone = !BASEPATH!/media/ShortDialTone.wav
dialtone_renew_every_start = False
dialtone_volume = 35
echo_cancellation_enabled = False
identity = DoorPi
local_port = 5060
max_call_time = 120
playback_device = ALSA: default device
record_while_dialing = False
records = !BASEPATH!/records/%Y-%m-%d_%H-%M-%S.wav
sipphonetyp = linphone
sipserver_password = dJGTT901
sipserver_realm = asterisk
sipserver_server = 192.168.1.113
sipserver_username = Daveyman123
stun_server =
ua.max_calls = 2
video_codecs = VP8
video_device = V4L2: /dev/video0
video_display_enabled = False
video_size = vga
call: [Phone Number]
**0624@asterisk
**0624 at asterisk
0624
0624@default
call:**0624
[AdminNumbers]
**0624 = active
Alles anzeigen
thank you for any help
-daveyman123