[Freeswitch-users] call transfer problem
Михаил Салтанов
melkybes at mail.ru
Mon Nov 29 01:39:49 PST 2010
Hello
I have some problem with freeswitch call transfer by python script.
-----------------------------------------------
import os
from freeswitch import *
import psycopg2
import socket
def handler(session, args):
print 'ready to transfer'
number_to_transfer = session.getVariable('number_')
print number_to_transfer
session.setAutoHangup('false')
session.execute('set', 'hangup_after_bridge=false')
session.execute('set', 'continue_on_fail=true')
session.transfer( number_to_transfer, "XML", "default")
Description of my problem
Phone # 1 call to Phone #2
Phone #2 input some digits for transfer incoming call to phone #3 [phone #1-->phone#3]
Phone #1 hangup, Phone 2 connect to phone # 3
where the my mistake?
When I make transfer by xml extensions all works fine
С уважением
Михаил Салтанов
С уважением
Михаил Салтанов
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101129/355b088f/attachment-0001.html
More information about the FreeSWITCH-users
mailing list