Changes between Version 2 and Version 3 of Python_SIP/Hello_World


Ignore:
Timestamp:
Jul 23, 2008 12:16:39 PM (11 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python_SIP/Hello_World

    v2 v3  
    3333    # Notification when call's media state has changed. 
    3434    def on_media_state(self): 
     35        global lib 
    3536        if self.call.info().media_state == pj.MediaState.ACTIVE: 
    3637            # Connect the call to sound device 
    3738            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) 
    4041            print "Hello world, I can talk!" 
    4142