if self.call.info().state == pj.CallState.CONFIRMED:
print "CONFIRMED"
self.sHelper.play_music()
self.call.hangup()
#self.call.hold()
This code is playing music when call is confirmed ( play_music is a method I implemented ) and hanging up after the music is played using hangup() ( inbuilt function in call class ) . But, if I comment out those two lines and uncomment self.call.hold(), it is not putting the call on hold ( hold is inbuilt in call class ) after the call is answered. Pls help me how to make hold work
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org