error while creating single action

  • Guten Tag.


    Ich weiss nicht warum aber von Heute kann ich kein Anruf machen.
    Problemmen mit Taster sind noch immer das gleiche aber jetzt kann ich leider auch kein call machen.
    Ich habe nichts im doorpi.ini Datei geaendert und am start bekomme ich eine Error Nachricht.


    btw. Linphone version is 3.9.0-c27.
    Trace und doorpi.ini sind im Anhang.


    MFG.


    //--------------------------------------------------------------------------------------------
    2016-11-28 09:05:31,336 [TRACE] [doorpi.conf.config_object] get_string for key 10 in section EVENT_OnStartup (default: ) returns sleep:1
    2016-11-28 09:05:31,337 [TRACE] [doorpi.action.handler] action SleepAction with args (1.0,) and kwargs {} was added to new evententry OnStartup
    2016-11-28 09:05:31,338 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnKeyDown_onboardpins.40' in configfile
    2016-11-28 09:05:31,338 [TRACE] [doorpi.conf.config_object] get_keys for section EVENT_OnKeyDown_onboardpins.40 returns ['10']
    2016-11-28 09:05:31,339 [INFO] [doorpi.doorpi] registering action '10' for event 'OnKeyDown_onboardpins.40'
    2016-11-28 09:05:31,339 [TRACE] [doorpi.conf.config_object] get_string for key 10 in section EVENT_OnKeyDown_onboardpins.40 (default: ) returns call:1000
    2016-11-28 09:05:31,340 [TRACE] [doorpi.action.handler] action CallAction with args () and kwargs {'number': '1000'} was added to new evententry OnKeyDown_onboardpins.40
    2016-11-28 09:05:31,341 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnSipPhoneCallTimeoutNoResponse' in configfile
    2016-11-28 09:05:31,341 [TRACE] [doorpi.conf.config_object] get_keys for section EVENT_OnSipPhoneCallTimeoutNoResponse returns []
    2016-11-28 09:05:31,342 [TRACE] [doorpi.conf.config_object] get_string for key 40 in section onboardpins_InputPins (default: ) returns 40
    2016-11-28 09:05:31,343 [ERROR] [doorpi.action.base] error while creating SingleAction from config string: 40
    Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/DoorPi-2.5.1-py2.7.egg/doorpi/action/base.py", line 64, in from_string
    return importlib.import_module('doorpi.action.SingleActions.'+action_name).get(
    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
    ImportError: No module named 40
    2016-11-28 09:05:31,344 [ERROR] [doorpi.action.handler] action_object is None
    2016-11-28 09:05:31,345 [WARNING] [root] section DTMF not found in configfile
    2016-11-28 09:05:53,501 [TRACE] [doorpi.action.handler] fire Event OnKeyDown from doorpi.keyboard.from_gpio asyncron
    2016-11-28 09:05:53,503 [TRACE] [doorpi.action.handler] fire Event OnKeyDown_40 from doorpi.keyboard.from_gpio asyncron
    2016-11-28 09:05:53,507 [TRACE] [doorpi.action.handler] fire Event OnKeyDown_onboardpins.40 from doorpi.keyboard.from_gpio asyncron
    2016-11-28 09:05:53,511 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed from doorpi.keyboard.from_gpio asyncron
    2016-11-28 09:05:53,513 [TRACE] [doorpi.action.handler] [41ATS6] try to fire action CallAction with args () and kwargs {'number': '1000'}
    2016-11-28 09:05:53,514 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed_40 from doorpi.keyboard.from_gpio asyncron
    2016-11-28 09:05:53,515 [TRACE] [doorpi.action.base] run CallAction with args () and kwargs {'number': '1000'}

    2016-11-28 09:05:53,517 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed_onboardpins.40 from doorpi.keyboard.from_gpio asyncron
    2016-11-28 09:05:53,518 [TRACE] [doorpi.action.handler] fire Event BeforeSipPhoneMakeCall from doorpi.sipphone.from_linphone asyncron
    2016-11-28 09:05:53,532 [TRACE] [doorpi.action.handler] fire Event OnCallStateChange from doorpi.sipphone.linphone_lib.CallBacks asyncron
    2016-11-28 09:05:53,535 [TRACE] [doorpi.action.handler] fire Event OnMediaRequired from doorpi.sipphone.linphone_lib.CallBacks asyncron
    2016-11-28 09:05:53,544 [TRACE] [doorpi.action.handler] fire Event OnCallStateChange from doorpi.sipphone.linphone_lib.CallBacks asyncron
    2016-11-28 09:05:53,548 [TRACE] [doorpi.action.handler] fire Event OnSipPhoneMakeCall from doorpi.sipphone.from_linphone asyncron
    2016-11-28 09:05:53,551 [TRACE] [doorpi.action.handler] fire Event AfterSipPhoneMakeCall from doorpi.sipphone.from_linphone asyncron
    2016-11-28 09:05:53,570 [TRACE] [doorpi.action.handler] [J6UO4P] try to fire action <bound method LinphonePlayer.start of <doorpi.sipphone.linphone_lib.Player.LinphonePlayer object at 0x72a971d0>> with args () and kwargs {}
    2016-11-28 09:05:53,576 [TRACE] [doorpi.action.base] run SingleAction with args () and kwargs {}
    2016-11-28 09:05:53,578 [TRACE] [doorpi.action.handler] fire Event OnPlayerStarted from doorpi.sipphone.linphone_lib.Player asyncron


    2016-11-28 09:06:23,997 [TRACE] [doorpi.action.handler] unregister Event OnKeyPressed_onboardpins.40 from doorpi.keyboard.from_gpio
    2016-11-28 09:06:23,997 [TRACE] [doorpi.action.handler] event_source doorpi.keyboard.from_gpio was removed for event OnKeyPressed_onboardpins.40
    2016-11-28 09:06:23,998 [TRACE] [doorpi.action.handler] event_source doorpi.keyboard.from_gpio was removed
    2016-11-28 09:06:23,999 [TRACE] [doorpi.action.handler] [MLV92Y] try to fire action <bound method LinPhone.destroy of <doorpi.sipphone.from_linphone.LinPhone object at 0x7651e4f0>> with args () and kwargs {}
    2016-11-28 09:06:24,000 [TRACE] [doorpi.action.base] run SingleAction with args () and kwargs {}
    2016-11-28 09:06:24,002 [TRACE] [doorpi.action.handler] [755SJF] try to fire action <bound method LinphoneCallbacks.destroy of <doorpi.sipphone.linphone_lib.CallBacks.LinphoneCallbacks instance at 0x72a8cc88>> with args () and kwargs {}


    2016-11-28 09:06:24,026 [TRACE] [doorpi.action.handler] unregister Event AfterCallIncoming from doorpi.sipphone.linphone_lib.CallBacks
    2016-11-28 09:06:24,027 [TRACE] [doorpi.action.handler] event_source doorpi.sipphone.linphone_lib.CallBacks was removed for event AfterCallIncoming
    2016-11-28 09:06:24,027 [TRACE] [doorpi.action.handler] unregister Event OnCallReconnect from doorpi.sipphone.linphone_lib.CallBacks
    2016-11-28 09:06:24,027 [TRACE] [doorpi.action.handler] event_source doorpi.sipphone.linphone_lib.CallBacks was removed for event OnCallReconnect
    2016-11-28 09:06:24,028 [TRACE] [doorpi.action.handler] event_source doorpi.sipphone.linphone_lib.CallBacks was removed
    2016-11-28 09:06:24,029 [TRACE] [doorpi.action.handler] [755SJF] try to fire action <bound method LinphonePlayer.destroy of <doorpi.sipphone.linphone_lib.Player.LinphonePlayer object at 0x72a971d0>> with args () and kwargs {}
    2016-11-28 09:06:24,029 [TRACE] [doorpi.action.base] run SingleAction with args () and kwargs {}
    2016-11-28 09:06:24,030 [TRACE] [doorpi.action.handler] fire Event OnPlayerStopped from doorpi.sipphone.linphone_lib.Player asyncron

    2016-11-28 09:06:24,031 [TRACE] [doorpi.action.handler] unregister Eventsource doorpi.sipphone.linphone_lib.Player and force_unregister is True
    2016-11-28 09:06:24,032 [TRACE] [doorpi.action.handler] unregister Event OnPlayerCreated from doorpi.sipphone.linphone_lib.Player
    2016-11-28 09:06:24,032 [TRACE] [doorpi.action.handler] event_source doorpi.sipphone.linphone_lib.Player was removed for event OnPlayerCreated
    2016-11-28 09:06:24,033 [TRACE] [doorpi.action.handler] unregister Event OnPlayerStarted from doorpi.sipphone.linphone_lib.Player
    2016-11-28 09:06:24,033 [TRACE] [doorpi.action.handler] event_source doorpi.sipphone.linphone_lib.Player was removed for event OnPlayerStarted
    2016-11-28 09:06:24,034 [TRACE] [doorpi.action.handler] unregister Event OnPlayerStopped from doorpi.sipphone.linphone_lib.Player
    2016-11-28 09:06:24,034 [TRACE] [doorpi.action.handler] event_source doorpi.sipphone.linphone_lib.Player was removed for event OnPlayerStopped
    2016-11-28 09:06:24,035 [TRACE] [doorpi.action.handler] event_source doorpi.sipphone.linphone_lib.Player was removed
    2016-11-28 09:06:24,036 [TRACE] [doorpi.action.handler] [755SJF] try to fire action <bound method LinphoneRecorder.destroy of <doorpi.sipphone.linphone_lib.Recorder.LinphoneRecorder object at 0x72a97310>> with args () and kwargs {}
    2016-11-28 09:06:24,036 [TRACE] [doorpi.action.base] run SingleAction with args () and kwargs {}

    2016-11-28 09:06:24,037 [TRACE] [doorpi.action.handler] unregister Eventsource doorpi.sipphone.linphone_lib.Recorder and force_unregister is True
    2016-11-28 09:06:24,037 [TRACE] [doorpi.action.handler] unregister Event OnRecorderCreated from doorpi.sipphone.linphone_lib.Recorder
    2016-11-28 09:06:24,038 [TRACE] [doorpi.action.handler] event_source doorpi.sipphone.linphone_lib.Recorder was removed for event OnRecorderCreated
    2016-11-28 09:06:24,038 [TRACE] [doorpi.action.handler] unregister Event OnRecorderStarted from doorpi.sipphone.linphone_lib.Recorder
    2016-11-28 09:06:24,038 [TRACE] [doorpi.action.handler] event_source doorpi.sipphone.linphone_lib.Recorder was removed for event OnRecorderStarted
    2016-11-28 09:06:24,039 [TRACE] [doorpi.action.handler] unregister Event OnRecorderStopped from doorpi.sipphone.linphone_lib.Recorder
    2016-11-28 09:06:24,039 [TRACE] [doorpi.action.handler] event_source doorpi.sipphone.linphone_lib.Recorder was removed for event OnRecorderStopped
    2016-11-28 09:06:24,039 [TRACE] [doorpi.action.handler] event_source doorpi.sipphone.linphone_lib.Recorder was removed
    2016-11-28 09:06:24,040 [TRACE] [doorpi.action.handler] [755SJF] finished fire_event for event_name OnSipPhoneDestroy

  • Ich kenne jetzt deine hardwareseitige Anbindung der Taster nicht, aber der Eintrag


    Code
    1. [onboardpins_InputPins]
    2. 40 = 40

    kann so imho nicht funktionieren.


    Hier mal der WIKI Auszug:


    [Keyboardalias_InputPins]

    SchlüsselPin
    WertAktion
    Vorgabe
    Führt bei der Auslösung von Pin die gewählte Aktion aus.
    Für mögliche Aktionen s.u.
    Anmerkung: Bei gpio bezieht sich die Nummierung der Pins auf die Stiftleiste.



    Der Eintrag müsste also so aussehen:


    <Pin> = <Aktion>:<Parameter>


    Aktionen gibt es folgende:


    Was genau soll DoorPi also tun, wenn der Taster am PIN 40 gedrückt wir?

  • Danke fuer dein Antwort.


    Letzten Tagen habe ich so viele anderungen gemacht aber "at the end " bin ich wieder am gleichen Problem ( wie z. B. Tasterdruck).


    Mein Taster ist durch pullup "setup" an pin 40 gelotet.


    Wie sollte das gehen:
    - Tastedruck ---> call android tablet ( 1000 )
    - ob kein Antwort -->
    - call : 2000 ( android Handy )


    Teil fuer zweites softphone ist zurzeit nicht eingebaut.


    40=40
    -dieses Teil habe ich auch veraendert um 40 = call : 1000


    -------------
    EDIT
    -------------
    --->Hab vergesen zu schreiben aber error Nachricht gibts nicht mehr nachdem ich dein Vorschlag implementiert habe
    Danke !
    ------------


    Leider, die Sache mit CALL ist noch immer diselbe.
    D.h , diese Error Nachricht hat nichts mit linphone.player und CALL zu tun...
    Ich denke, es ist besser diese Diskussion in der ursprünglichen post fortzusetzen.


    Danke nocheinmall fuer deine Hilfe !


    MFG !