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
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