On Mon, Aug 18, 2008 at 12:27 PM, Sa?l Ibarra <saghul at gmail.com> wrote: > > I can't reproduce it with > > call.transfer("sip:localhost:5080") > > > > Are you supplying non-None value for the second argument? > > > > I've figured out how to get it working, but I really don't know why: > > My code was like this: > > dsturi = "sip:%s@%s" % (destination, domain) > call.transfer(dsturi) > > And it wasn't working. So I tried a hardcoded string and it did work! > :-O So I tried this: > > dsturi = "sip:%s@%s" % (destination, domain) > call.transfer(str(dsturi)) > > And it's working now... Would you mind telling me where I was wrong? > > Frankly, I have no idea! Your snippet looks okay, but probably what happen is for some reason dsturi is interpreted as tupple instead of string, hence the second of element of the tuple is treated as the second argument of the function, causing the error. > BTW: When we do a call transfer, does the call hangup by itself or do > we have to hang it up after transferring it? > > You have to disconnect the call yourself. Cheers Benny > Thank you very much benny!! > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080818/4240e6f3/attachment.html