I changed the import but the audio still isn't transmitted. It registers correctly, then it makes the call, the call is accepted in the other end but the audio isn't transmitted. This is the class that I'm creating for this purpose: class SimplePhone: def __init__(self): self.acc = None self.acc_cb = None self.current_call = None self.server = None self.lib = pj.Lib() self.lib.init(log_cfg = pj.LogConfig(level=0, callback=log_cb)) self.lib.create_transport(pj.TransportType.UDP, pj.TransportConfig(5080)) self.lib.start() def register(self, server, extension_name, password): self.server = server self.acc = self.lib.create_account(pj.AccountConfig(server, extension_name, password)) self.acc_cb = LockUntilRegistrationAccountCallback(self.acc) self.acc.set_callback(self.acc_cb) self.acc_cb.wait() def unregister(self): self.acc.delete() self.acc = None self.acc_cb = None def call(self, phone_number): lck = self.lib.auto_lock() self.current_call = self.acc.make_call('sip:' + phone_number + '@' + self.server, intInfoCallCallback()) del lck def hangup(self): self.current_call.hangup() def dial_dtmf(self, digits): self.current_call.dial_dtmf(digits) def send_audio(self): player = self.lib.create_player("/tmp/ring.wav", True) self.lib.conf_connect(self.lib.player_get_slot(player), 0) -----Mensagem original----- De: pjsip-bounces at lists.pjsip.org [mailto:pjsip-bounces at lists.pjsip.org] Em nome de Sa?l Ibarra Enviada: sexta-feira, 14 de Agosto de 2009 13:53 Para: pjsip list Assunto: Re: [pjsip] a few questions On Fri, Aug 14, 2009 at 2:39 PM, Tiago Ferreira<maiaboy at hotmail.com> wrote: > I simply use import pjsua, do i need to use import pjsua as pj? > Yes, if you later do pj.Something else yo should do pjsua.Something -- /Sa?l http://www.saghul.net | http://www.sipdoc.net _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip at lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org