|
@@ -246,7 +246,7 @@ class MyCall(pj.Call):
|
|
|
player_id = murmur3_32(self.cur_player_file)
|
|
|
return self.player_complete_dict.get(player_id)
|
|
|
def onDtmfDigit(self, prm):
|
|
|
- # 判断是否播放完成 否则不记录用户说的内容
|
|
|
+ # 判断是否播放完成 否则不记录用户说的内容
|
|
|
if not self.is_play_complete():
|
|
|
return
|
|
|
digit = prm.digit
|
|
@@ -265,7 +265,7 @@ class MyCall(pj.Call):
|
|
|
def onCallState(self, prm):
|
|
|
call_info = self.getInfo()
|
|
|
print("Call state: %s, call id: %s, callcallIdString: %s ", call_info.state, call_info.id, call_info.callIdString)
|
|
|
-f
|
|
|
+
|
|
|
# pj.PJSIP_INV_STATE_NULL
|
|
|
# pj.PJSIP_INV_STATE_CALLING
|
|
|
# pj.PJSIP_INV_STATE_INCOMING
|