add a lil bit of logging

This commit is contained in:
Matthew Connelly 2019-05-06 13:40:26 +01:00
parent f5e5f710d4
commit 0e8e5b5be5
1 changed files with 4 additions and 0 deletions

View File

@ -96,19 +96,23 @@ class CallCb(pj.CallCallback):
self.instmedia=state.lib.create_playlist(
loop=True, filelist=self.playlist, label="trashtalklist")
self.slotmedia=state.lib.playlist_get_slot(self.instmedia)
Log(4, "call-media-create", "created playlist for current call")
def connect_media(self):
global state
self.slotcall=self.call.info().conf_slot
state.lib.conf_connect(self.slotmedia, self.slotcall)
Log(4, "call-media-connect", "connected playlist media endpoint to call")
def disconnect_media(self):
global state
state.lib.conf_disconnect(self.slotmedia, self.slotcall)
Log(4, "call-media-disconnect", "disconnected playlist media endpoint from call")
def destroy_media(self):
global state
state.lib.playlist_destroy(self.instmedia)
self.instmedia=None
self.slotmedia=None
self.playlist=None
Log(4, "call-media-destroy", "destroyed playlist endpoint and object")
def on_state(self):
global state