Also, make sure you did <action application="answer" /> at some point before starting to play the file.  If you start to play a file without answering first, the first bit of the file is cut off.  Best practice seems to be something like:

<action application="answer" />
<action applicatino="sleep" data="1000"/>
<action application="playback" data="sounds/soundfile.wav"/>

-Troy


On Apr 9, 2010, at 8:27 AM, CHU, XINGJUN (XINGJUN) wrote:

I don't see how this is relevant to the problem?
 
 
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Milena
Sent: Thursday, April 08, 2010 9:57 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] An issue when attended transfer to fs
 
hi,
 
put an <action application="sleep" data="2000"/> before the instruction to play something

 

2010/4/7 CHU, XINGJUN (XINGJUN) <jasonchu@avaya.com>
Hi,

I have Freeswitch and other two SIP sets all registered with a SIP proxy/registry, and I am writing a control software to  control the freeswitch via event socket. Baisically the control software tells freeswitch when someone calls it, what action to take, for example, acts as Auto attendant and play prompt. Etc.

Now I got a problem when A calls B then attended transfer B to freeswitch,
The prompt B hear is not from the beginning, it actually hears  the trailing part of the prompt played to A when A called freeswitch in the beginning of the transfer.  I understand that's because nobody tell freeswitch to stop and start from the beginning.  I am looking for what event should the control software monitor for the replaced session (the transfer is done via "invite replaces" ) and how to cancel the current prompt and start from beginning.

Any suggestions are greatly appreciated.

Thanks
Xingjun

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