<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=big5" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.23588">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>To whom it may concern,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I just hit the wall when I test the atended
transfer.</FONT></DIV>
<DIV><FONT size=2>Here's my simple dialplan:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT color=#ff0000 size=2><STRONG>test.xml:</STRONG></FONT></DIV>
<DIV><STRONG><FONT color=#ff0000 size=2></FONT></STRONG> </DIV>
<DIV><FONT size=2> <extension
name="DID-Call"><BR> <condition
field="destination_number"
expression="^(382)$"> <BR>
<action application="bind_meta_app" data="1 b s
execute_extension::att_xfer XML features"/><BR>
<action application="bridge"
data="freetdm/myFXS/1"/><BR> </condition><BR> </extension></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT color=#ff0000 size=2><STRONG>features.xml:</STRONG></FONT></DIV>
<DIV><STRONG><FONT color=#ff0000 size=2></FONT></STRONG> </DIV>
<DIV><FONT size=2> <extension name="att_xfer"><BR>
<condition field="destination_number"
expression="^att_xfer$"><BR>
<action
application="answer"/><BR>
<action application="read" data="4 4 'tone_stream://%(5000,0,350,440)' digits
5000 #"/><BR>
<action application="att_xfer"
data="user/${digits}"/><BR>
</condition><BR> </extension></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>And the test environment configuration is like
this:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV> <IMG border=0 hspace=0 alt="" align=baseline
src="cid:BB101B5CBAC04F778574ED1801DF2ADF@pca022"></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>As you can see, when you dial number "382" from phone 282, the
Diguim telephony card will get ring signal at once.</FONT></DIV>
<DIV><FONT size=2>Then the freeSWITCH server starts a thread to handle dialplan.
While in the execute-state, it will get in the test.xml
and match the condition,</FONT></DIV>
<DIV><FONT size=2>so FreeSwitch will help bridging two channels together
(freetdm/myFXO and freetdm/myFXS/1).</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>After bridging, you'll hear the ring from phone 4001 and pick
up the phone, then you can dial "*1" to activate the action and transfer to call
<FONT color=#ff0000>featurs.xml </FONT><FONT
color=#000000>immediately.</FONT></FONT></DIV>
<DIV><FONT size=2>You're now in features.xml and matched the exact condition
"att_xfer", so you will hear the generated dial tone by tone_stream and
need to dial 4 digits in the moment.</FONT></DIV>
<DIV><FONT size=2>The <FONT color=#ff0000 size=3>BIG </FONT>problem is, I can't
get any DTMF tone while hitting the digit keys on the phone 4001. But when
I change the dialplan like this:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>
<DIV><STRONG><FONT color=#ff0000 size=2>test.xml</FONT></STRONG></DIV>
<DIV><FONT size=2> <extension
name="DID-Call"><BR> <condition
field="destination_number"
expression="^(382)$"> <BR>
<action application="bind_meta_app" data="1 b s
execute_extension::att_xfer XML features"/><BR>
<action application="bridge"
data="user/1001"/><BR> </condition><BR> </extension></FONT></DIV>
<DIV> </DIV>
<DIV>The "read" works just fine and really do the addended transfer as
expect.</DIV>
<DIV> </DIV>
<DIV>And I do some tests to make sure the read function work well in normal
context,</DIV>
<DIV>which means, I discard the "bind_meta_app" application, just use "read"
when phone has been answered as follow:</DIV>
<DIV> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>
<DIV><STRONG><FONT color=#ff0000 size=2>test.xml</FONT></STRONG></DIV>
<DIV><FONT size=2> <extension
name="DID-Call"><BR> <condition
field="destination_number"
expression="^(382)$"> <BR>
<action application="answer"/></FONT></DIV>
<DIV><FONT size=2> <action
application="read" data="4 4 'tone_stream://%(5000,0,350,440)' digits 5000
#"/></FONT></DIV>
<DIV><FONT
size=2> <action
application="log" data="The number you dialed is :
${digits}"/> <BR> </condition><BR> </extension></FONT></DIV></FONT></DIV></FONT><FONT
size=2></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>and it works well when I dialed 382 and reach out the
freeswitch server, I could see the DTMF tone show on console.</FONT></DIV>
<DIV><FONT size=2>After I dialed "4001", the "log" application shows "The number
you dialed is : 4001", just likes I expected.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>So, why would I get involved with situation like
this? I was checked the mod_dptools.c and nothing is found in there, since the
arguments are not the trouble maker.</FONT></DIV>
<DIV><FONT size=2>Maybe the critical part came from FreeTDM( samgoma ) Module,
but I gotta figure out which direction of thought is the most probable.
</FONT></DIV>
<DIV><FONT size=2>If you guys could give me some advice I'll be very thankful,
thanks in advance!</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Kind Regard,</FONT></DIV>
<DIV><FONT size=2>Jack Huang</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV></BODY></HTML>