[Freeswitch-users] conference count

Sam u2nsam at gmail.com
Mon Aug 8 10:11:43 MSD 2011


Thanks MC , good info, it works.

Regards
Sam

On Sat, Aug 6, 2011 at 11:45 PM, Michael Collins <msc at freeswitch.org> wrote:

> Sam,
>
> My guess is that this line is causing you trouble:
>
> <action application="set" data="conf_count=${conference ${conference_name}
> list count}"/>
>
> From what I see in your logs and dialplan I have to assume that
> ${conference_name} is not populated with the name of your conference so your
> API call is not working. What's actually happening is that this API is
> getting called:
>
> conference list count
>
> instead of
>
> conference 1000146 list count
>
> Try them both at the fs_cli to see the difference in output. ;) (Hint: look
> at the log line that contains "set(conf_count=" and you'll see it's getting
> populated with all sorts of stuff instead of just the conference count)
>
> If you know beforehand what the name of the conference is then just plug it
> in:
>
> <action application="set" data="conf_count=${conference 1000146 list
> count}"/>
>
> FYI, the ${conference_name} variable won't be populated until the current
> channel is already a member of the conference, so it doesn't help you at
> this point in the dialplan. Fortunately, though, since you are transferring
> the caller into a conference room you already know what conference he's
> going into so just use that information instead of the conference_name chan
> var.
>
> -MC
>
>   On Sat, Aug 6, 2011 at 2:36 AM, Sam <u2nsam at gmail.com> wrote:
>
>>  *I have a dial plan ,*
>>
>> <extension name="dynamic_conferences_guest">
>>       <condition field="destination_number" expression="^1234">
>>     <action application="answer"/>
>>     <action application="info"/>
>>         <action application="set" data="conf_count=${conference
>> ${conference_name} list count}"/>
>>         <action application="log" data="INFO ${conf_count}"/>
>>         <action application="say" data="en number pronounced
>> ${conf_count}"/>
>>     <action application="conference" data="1000146 at meeting"/>
>>       </condition>
>>     </extension>
>>
>>
>> *and the output of it as below:-*
>>
>> 2011-08-06 14:32:53.205895 [DEBUG] sofia.c:5084 Channel sofia/internal/
>> 61323123999 at 192.153.53.158 entering state [ready][200]
>> EXECUTE sofia/internal/61323123999 at 192.153.53.158set(conf_count=Conference 1000146 (1 member rate: 16000)
>> 14;sofia/internal/883510001282001 at sip.ntfone.in
>> ;97f5f386-c00a-11e0-9517-738827116f37;883510001282001;883510001282001;hear|speak|floor;0;0;0;300
>> )
>> 2011-08-06 14:32:53.205895 [DEBUG] mod_dptools.c:1063 sofia/internal/
>> 61323123999 at 192.153.53.158 SET [conf_count]=[Conference 1000146 (1 member
>> rate: 16000)
>> 14;sofia/internal/883510001282001 at sip.nfone.in
>> ;97f5f386-c00a-11e0-9517-738827116f37;883510001282001;883510001282001;hear|speak|floor;0;0;0;300
>> ]
>> EXECUTE sofia/internal/61323123999 at 192.153.53.158 log(INFO Conference
>> 1000146 (1 member rate: 16000)
>> 14;sofia/internal/883510001282001 at sip.ntfone.in
>> ;97f5f386-c00a-11e0-9517-738827116f37;883510001282001;883510001282001;hear|speak|floor;0;0;0;300
>> )
>> 2011-08-06 14:32:53.205895 [INFO] mod_dptools.c:1202 Conference 1000146 (1
>> member rate: 16000)
>> 14;sofia/internal/883510001282001 at sip.nfone.in
>> ;97f5f386-c00a-11e0-9517-738827116f37;883510001282001;883510001282001;hear|speak|floor;0;0;0;300
>>
>> EXECUTE sofia/internal/61323123999 at 192.153.53.158 say(en number
>> pronounced Conference 1000146 (1 member rate: 16000)
>> 14;sofia/internal/883510001282001 at sip.nfone.in
>> ;97f5f386-c00a-11e0-9517-738827116f37;883510001282001;883510001282001;hear|speak|floor;0;0;0;300
>> )
>> 2011-08-06 14:32:53.215905 [ERR] mod_say_en.c:130 Parse Error!
>>
>> EXECUTE sofia/internal/61323123999 at 192.153.53.158conference(1000146 at meeting
>> )
>>
>>
>>
>>
>> *What should be my dialplan to get the exact conf_count ?*
>>
>>
>> Thanks in advance
>> Sam
>>
>> _______________________________________________
>> Join us at ClueCon 2011, Aug 9-11, Chicago
>> http://www.cluecon.com 877-7-4ACLUE
>>
>> FreeSWITCH-users mailing list
>> 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
>>
>>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> 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/20110808/7f47174b/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list