Also, so wie es aussieht hat er es ausgeführt, aber leider kein Ton ausgegeben.
2020-05-28 20:58:08,494 [DEBUG] [doorpi.action.handler] [NIZ983] fire for event OnDTMF_"96" this actions [<doorpi.action.SingleActions.out.OutAction instance at 0xb27866e8>, <doorpi.action.SingleActions.playaudio.PlayAudioAction instance at 0xb278d030>, <doorpi.action.SingleActions.sleep.SleepAction instance at 0xb278d080>]
2020-05-28 20:58:08,532 [TRACE] [doorpi.action.handler] [NIZ983] try to fire action OutAction with args () and kwargs {'log_output': True, 'value': '1', 'pin': 'eingangopen'}
2020-05-28 20:58:08,536 [INFO] [doorpi.sipphone.from_linphone] Linphone core [0x1febbf0] notifying [dtmf_received]
2020-05-28 20:58:08,570 [INFO] [doorpi.sipphone.from_linphone] Changing [server] [INFO] transaction [0x200e6e0], from state [TRYING] to [COMPLETED]
2020-05-28 20:58:08,552 [TRACE] [doorpi.action.base] run OutAction with args () and kwargs {'log_output': True, 'value': '1', 'pin': 'eingangopen'}
2020-05-28 20:58:08,609 [INFO] [doorpi.sipphone.from_linphone] channel [0x233ea90]: message sent to [UDP://192.168.178.1:5060], size: [288] bytes
SIP/2.0 200 Ok
Via: SIP/2.0/UDP 192.168.178.1:5060;branch=z9hG4bK7D0C4B443155CD67
From: <sip:**610@192.168.178.1>;tag=D0C919B03A3FDEA7
To: "Klingel" <sip:Hausdoorpi@192.168.178.1>;tag=cYP0r99eF
Call-ID: OcgYZee8ak
CSeq: 23 INFO
User-Agent: (belle-sip/1.4.2)
Supported: outbound
2020-05-28 20:58:08,641 [INFO] [doorpi.sipphone.from_linphone] Dialog [0x2059fe0]: now updated by transaction [0x200e6e0].
2020-05-28 20:58:08,664 [DEBUG] [doorpi.keyboard.from_udp] out(pin = dooropen, value = 1, log_output = True)
2020-05-28 20:58:08,671 [INFO] [doorpi.sipphone.from_linphone] MSAudio_stream_iterate[0xb4c03d40], local statistics available:
Local current jitter buffer size: 60,0ms
2020-05-28 20:58:08,702 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_Core_callback_call_stats_updated(0x1febbf0, 0xb5660dd0, 0xb5661290)
2020-05-28 20:58:08,685 [DEBUG] [doorpi.keyboard.from_udp] Send Message dooropen
2020-05-28 20:58:08,726 [DEBUG] [doorpi.keyboard.from_udp] Message Send done
2020-05-28 20:58:08,734 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_Core_callback_call_stats_updated
2020-05-28 20:58:08,765 [INFO] [doorpi.sipphone.from_linphone] Linphone core [0x1febbf0] notifying [call_stats_updated]
2020-05-28 20:58:08,746 [TRACE] [doorpi.action.handler] [NIZ983] try to fire action PlayAudioAction with args () and kwargs {'filename': 'test.mp3'}
2020-05-28 20:58:08,792 [TRACE] [doorpi.action.base] run PlayAudioAction with args () and kwargs {'filename': 'test.mp3'}
2020-05-28 20:58:08,803 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_Call_get_state(0xaeab2290 [0xb5660dd0])
2020-05-28 20:58:09,311 [DEBUG] [doorpi.keyboard.from_udp] UDP Botschaft:alive Adressport: ('192.168.176.164', 8989)
2020-05-28 20:58:09,342 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_Call_get_state -> 0x1cf7718
2020-05-28 20:58:09,336 [DEBUG] [doorpi.keyboard.from_udp] Alive Message bekannt: alive
2020-05-28 20:58:09,352 [TRACE] [doorpi.conf.config_object] get_string for key path in section Audio (default: /tmp/) returns /usr/local/etc/DoorPi/media/
2020-05-28 20:58:09,387 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_Core_get_in_call_timeout(0xb275d6b0 [0x1febbf0])
2020-05-28 20:58:09,405 [DEBUG] [doorpi.keyboard.from_udp] UDP thread ended
2020-05-28 20:58:09,442 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_Core_get_in_call_timeout -> 0x1cf7e6c
2020-05-28 20:58:09,505 [DEBUG] [doorpi.conf.config_object] parse string "/usr/local/etc/DoorPi/media/" to "/usr/local/etc/DoorPi/media/"
2020-05-28 20:58:09,525 [TRACE] [doorpi.conf.config_object] get_integer for key volume in section Audio (default: 1.0) returns 1.0
2020-05-28 20:58:09,549 [INFO] [doorpi.sipphone.from_linphone] sound/wall clock skew is average=17,957990 ms
2020-05-28 20:58:09,573 [TRACE] [doorpi.action.handler] [NIZ983] try to fire action SleepAction with args (0.0,) and kwargs {}
2020-05-28 20:58:09,581 [INFO] [doorpi.sipphone.from_linphone] channel [0x233ea90]: received [558] new bytes from [UDP://192.168.178.1:5060]:
INFO sip:Hausdoorpi@192.168.176.6 SIP/2.0
Via: SIP/2.0/UDP 192.168.178.1:5060;branch=z9hG4bK7D0C4B443155CD67
From: <sip:**610@192.168.178.1>;tag=D0C919B03A3FDEA7
To: "Klingel" <sip:Hausdoorpi@192.168.178.1>;tag=cYP0r99eF
Call-ID: OcgYZee8ak
CSeq: 23 INFO
Contact: <sip:6380B05E7F4BA2875FA18DE13EF36@192.168.178.1>
Max-Forwards: 70
User-Agent: AVM FRITZ!Box 7490 (UI) 113.07.12 (Jul 3 2019)
Supported: 100rel,replaces,timer
Allow-Events: telephone-event,refer
Content-Type: application/dtmf-relay
Content-Length: 24
Signal=6
Duration=100
2020-05-28 20:58:09,602 [TRACE] [doorpi.action.base] run SleepAction with args (0.0,) and kwargs {}
2020-05-28 20:58:09,784 [INFO] [doorpi.sipphone.from_linphone] channel [0x233ea90] [534] bytes parsed
2020-05-28 20:58:09,812 [TRACE] [doorpi.action.handler] [NIZ983] finished fire_event for event_name OnDTMF_"96"
Alles anzeigen
Ich habe auch ein python script mit pygame geschrieben, da kam leider auch kein ton aus meiner USB soundkarte. Ähnliche Probleme konnte ich auch im Web lesen
Erfolg hatte ich mit audio treiber sox, hier kann man die Soundkarte einstellen, leider wenn sipphone aktive ist geht auch hier die sound ausgabe nicht mehr
root@Doorpi:/usr/local/etc/DoorPi/media# AUDIODEV=hw:1 play test.mp3
play FAIL sox: Sorry, there is no default audio device configured