Changes between Version 2 and Version 3 of Python_SIP/Hello_World
- Timestamp:
- Jul 23, 2008 12:16:39 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Python_SIP/Hello_World
v2 v3 33 33 # Notification when call's media state has changed. 34 34 def on_media_state(self): 35 global lib 35 36 if self.call.info().media_state == pj.MediaState.ACTIVE: 36 37 # Connect the call to sound device 37 38 call_slot = self.call.info().conf_slot 38 pj.Lib.instance().conf_connect(call_slot, 0)39 pj.Lib.instance().conf_connect(0, call_slot)39 lib.conf_connect(call_slot, 0) 40 lib.conf_connect(0, call_slot) 40 41 print "Hello world, I can talk!" 41 42