[Freeswitch-users] about conference play and bgapi

Seven Du dujinfang at gmail.com
Tue Nov 11 09:22:37 MSK 2014


not sure how to do that in perl, but you should subscribe to the CUSTOM conference::maintenance event or ALL event and you could get that  

with $e->getHeader("Member-ID")


--  
Seven Du
http://about.me/dujinfang
http://www.dujinfang.com

http://www.freeswitch.org.cn


Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Friday, November 7, 2014 at 10:02 PM, 松本祐志 wrote:

> Thank you Mr.Seven Du
>  
> I got the sound !. it was my mistake.  
> because of localhost. It should be IP.
> $con = new ESL::ESLconnection("localhost", 8021, ClueCon);
>  
> However, I still have problem.
>  
> Let me know how to get  'member_id' below. in perl.
> i tried below.
> $e->getHeader("Caller-Caller-ID-Name");
> $e->getHeader("Caller-Caller-ID-Number");
>  
>  
> conference <confname> play <file_path> [<async>|<member_id>]
>  
> thank you.
>  
>  
> On Wed, Nov 5, 2014 at 10:52 AM, Seven Du <dujinfang at gmail.com (mailto:dujinfang at gmail.com)> wrote:
> > 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 at gmail.com (mailto:ssinyagin at 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 at itsherpa.com (mailto:matsumoto at 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 at freeswitch.org (mailto:consulting at 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 at lists.freeswitch.org (mailto:FreeSWITCH-users at 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 at freeswitch.org (mailto:consulting at 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 at lists.freeswitch.org (mailto:FreeSWITCH-users at 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 at freeswitch.org (mailto:consulting at 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 at lists.freeswitch.org (mailto:FreeSWITCH-users at 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 at freeswitch.org (mailto:consulting at 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 at lists.freeswitch.org (mailto:FreeSWITCH-users at 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 at freeswitch.org (mailto:consulting at 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 at lists.freeswitch.org (mailto:FreeSWITCH-users at lists.freeswitch.org)
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>  
>  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141111/97eed619/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list