[python] SystemError when trying to do a transfer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

BTW: When we do a call transfer, does the call hangup by itself or do
we have to hang it up after transferring it?

Thank you very much benny!!



-- 
Sa?l -- "Nunca subestimes el ancho de banda de un cami?n lleno de disketes."
----------------------------------------------------------------
http://www.saghul.net/



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux