Hi,
ich habe jetzt mal die 5.2 installiert und war ziemlich „scharf“ auf die VoIP Funktionalität.
Habs auch schon soweit hingekriegt, dass ich über ein Testskript mein Handy anrufen kann. Ich wollte nun auch mal was abpspielen.
Das Skript ist wie folgt:
// Skript für ausgehende Anrufe
$id = VoIP_Connect(51928, "016xxxxxxxxx");
//Maximal 10 Sekunden warten, dass einer abnimmt
for($i = 0; $i < 20; $i++) {
IPS_Sleep(1000);
$c = VoIP_GetConnection(51928, $id);
if($c['Connected']) {
IPS_Sleep(2000);
if(!VoIP_PlayWave(51928, $id, "/home/xxxxx/squee.wav")) echo "PlayFail
";
IPS_Sleep(2000);
//TTS
//return;
break;
}
}
//Auflegen, falls keiner abnimmt
VoIP_Disconnect(51928, $id);
Es kommen keine Fehler uns das Log sieht eigentlich auch ganz gut aus:
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | call: alloc with params laddr=192.168.178.53, af=AF_INET, use_rtp=1
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | call: use_video=0
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | call: connecting to 'sip:016xxxxxxxxx@fritz.box'..
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | call: SIP Progress: 100 Trying (/)
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | call: SIP Progress: 183 Session Progress (application/sdp)
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | call: stream start (active=0)
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | audio: Set audio encoder: PCMU 8000Hz 1ch
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | audio: start
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | aubridge: created device 'pseudo0'
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | audio: source started with sample format S16LE
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | audio: Set audio decoder: PCMU 8000Hz 1ch
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | audio: start
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | audio: player started with sample format S16LE
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | aubridge: thread start: 8000 Hz, 1 channels, format=S16LE
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | audio tx pipeline: aubridge ---> PCMU
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | audio rx pipeline: aubridge <--- PCMU
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | audio: start
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | symcon-voip@fritz.box: Call in-progress: sip:016xxxxxxxxx@fritz.box
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | call: update media
22.09.2019 14:42:42 | 00000 | DEBUG | VoIP | stream: incoming rtp for 'audio' established, receiving from 192.168.178.1:7078
22.09.2019 14:42:47 | 00000 | DEBUG | VoIP | call: got SDP answer (237 bytes)
22.09.2019 14:42:47 | 00000 | DEBUG | VoIP | call: update media
22.09.2019 14:42:47 | 00000 | DEBUG | VoIP | call: stream start (active=1)
22.09.2019 14:42:47 | 00000 | DEBUG | VoIP | audio: start
22.09.2019 14:42:47 | 00000 | DEBUG | VoIP | symcon-voip@fritz.box: Call established: sip:016xxxxxxxxx@fritz.box
22.09.2019 14:42:53 | 00000 | DEBUG | VoIP | sip:016xxxxxxxxx@fritz.box: session closed: Die Verbindung wurde vom Kommunikationspartner zurückgesetzt
22.09.2019 14:42:53 | 00000 | DEBUG | VoIP | sip:symcon-voip@fritz.box: Call with sip:016xxxxxxx@fritz.box terminated (duration: 6 secs)
22.09.2019 14:42:53 | 00000 | DEBUG | VoIP | audio: destroyed (started=1)
Aber irgendwie kommt nichts aus der Leitung, nur ein komisches Geräusch. Ich finde ich die Reihenfolge der Logmeldungen komisch wenn erst die Audio-Datei geladen wird und dann die Verbindung steht.
Oder liegts daran dass das auf einem Raspberry läuft ?
Vielen Dank im Voraus.
Freundliche Grüße
Vielen Dank im Voraus.