Pastebin the debug output so we can see what is happening.
-MC

2010/11/26 íÉÈÁÉÌ óÁÌÔÁÎÏ× <melkybes@mail.ru>


HelloI 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

ó Õ×ÁÖÅÎÉÅÍ
íÉÈÁÉÌ óÁÌÔÁÎÏ×



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org