<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<pre>>>><i>
</i>
>><i> Thanks for the
</i>advice.
>><i> I follow you and know what to do up to the point of 'run the
</i>conversion'
>><i> The conversion is performed by means of a
</i>script.
>><i> Can one invoke a script from an extension? And
</i>how?
><i>show application
</i>system
><i>show application
</i>trysystem
>><i>They allow you to invoke an arbitrary command via the shell from the
</i>dialplan.
Thanks the System application
works.
But I'm stuck before executing the script. I know this thread is suppose to be
on the user list, but bare with me
please.
I'm following Kevin Flemming's advice:
>>><i>Let's see... set a channel variable in the dialplan before going
</i>into MeetMe, then in the context where
>><i>MeetMe was executed add an 'h' extension. In that extension, check
</i>for the magic channel variable,
>><i>then use MEETME_COUNT() to see if any users are left in the MeetMe
</i>and if not, run the
conversion.My dialplan looks as follows, the user dials in and are prompt for
meetme room and pin number:
>><i>
</i>>><i> exten => s,1,MeetMe(${ROOM},rsxA,${PIN})
</i>>><i>
</i>>><i> When a meetme user hangs up/been kicked then we count the number of
</i>participants in the conference and based on that we execute the extension
which executes the System(lame-script) application.
>><i>
</i>>><i> exten => h,1,MeetMeCount(${ROOM}|countvar)
</i>>><i> exten => h,2,GotoIf($[${ROOM} != "" & ${countvar} = 0]?5010:5011)
</i>>><i>
</i>>><i> The problem is that the ${ROOM} varaible is empty by the time we get to h,1.
</i>>><i> I have read somewhere that some channel varaibles are destroyed and you have
</i>to watch out for this when using the h extension.
>><i>
</i>>><i> What know? I'm I going the right way?
</i>>><i>
</i>>><i> Thanks for all the help.
</i>>I am not sure, but MeetMe does not set the variable ${ROOM} when entered from
>the user - you will probably need to use ${CONFNO} instead
Thanks, but the
The ${CONFNO} is also empty :-(</pre>
</body>
</html>