I don’t quite understand you but you should not put SPACE between % and s. Try to paste the real code and debug logs on pastebin to get better help.

On Tuesday, November 4, 2014 at 11:51 PM, 松本祐志 wrote:

Dear Stanislav Sinyagin

Thank you for your help.

音声をバックグラウンドで再生する方法について教えて下さい。

言語はPerlです。

二人のひとが、同じ会議室で話している時、一方のみにwavファイルを再生したいと思っています。

次のように書いていますが、再生されません。
my $ api_cmd = sprintf ("conference % s play % s % s", $ e-> getHeader ("Conference-Name"), /etc/a.wav, $ e-> getHeader ("Caller-Username")) ; 

また、$ con-> bgapi ($ api_cmd);  としても再生されません。

fs_cli で 「conference ************* play」 とすると話中の二人に再生されることは確認しました。

何が原因か教えてください。

よろしくお願いします。



On Tue, Nov 4, 2014 at 9:28 PM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
Dear Matsumoto-san,

I think it will be easier if you write in Japanese, then it will be clear how we could help. I know a few Japanese-speaking colleagues who may help in communicating.




On Mon, Nov 3, 2014 at 12:11 PM, 松本祐志 <matsumoto@itsherpa.com> wrote:
Hello 

I have two issues.
 
I am writing in Perl. 

While 2 people are talking in a conference room, the one person want to play the sound. 

In "Caller-Username", can you get useless. 
I have tried the above but, Member: it will not become a *** not found.. 

my $ api_cmd = sprintf ("conference% s play% s% s", $ e-> getHeader ("Conference-Name"), /etc/a.wav, $ e-> getHeader ("Caller-Username")) ; 


I want to play the above in the background 
It can not play in the next program. 
my $ api_cmd = sprintf ("conference% s play% s% s", $ e-> getHeader ("Conference-Name"), /etc/a.wav); 

$ con-> bgapi ($ api_cmd); 

Best regards

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

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


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

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

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

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