Make a call transfer from Python

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

 



Hi

I am trying to transfer a received call with a Python script. I am able to
receive in Python, the call, then to transfer it, but the SI serrver
replies with '603 declined'.
Here is my 'on_incoming_call()' method:

    def on_incoming_call(self, call):
     global g_entryPoint
     entryPoint = re.search('sip:(\d+)@\d', call.info().uri).group(1)
     if entryPoint == str(g_entryPoint):
      call.transfer('sip:109 at 192.168.1.151')
      print 'Call transferred'
      return
     print 'No callback for the entry point', entryPoint
        call.hangup(501, "Sorry, not ready to accept calls yet")

Could you tell me what I am doing wrong for the call transfer ?

thanks
-- 
Bogdan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140722/befb72f2/attachment.html>


[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