Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] lua call to stop_record_session - INVALID COMMAND


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
frank at impactfax.com
Guest





PostPosted: Sat Dec 27, 2008 5:21 pm    Post subject: [Freeswitch-users] lua call to stop_record_session - INVALID Reply with quote

I was trying to stop a session record from lua but when I try I get a
"Result is INVALID COMMAND!"

I am calling this lua script with
<action application="set" data="api_hangup_hook=lua proc.lua .."/>

so by the time the lua is called, someone has hungup one of the legs.

In the lua script I am using this to try to end the record session to
the wav file so it gets closed and so I can convert it to mp3 right away
and a few other things in the lua script...

apicmd = "stop_record_session";
apiarg = recordfile;
res = api:execute(apicmd,apiarg);

but that is when I get the INVALID COMMAND on the freeswitch console.

Is there a proper way to do this from lua?


_______________________________________________
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
Back to top
mike at jerris.com
Guest





PostPosted: Sat Dec 27, 2008 8:55 pm    Post subject: [Freeswitch-users] lua call to stop_record_session - INVALID Reply with quote

On Dec 27, 2008, at 5:21 PM, Frank @ Impact wrote:

Quote:
I was trying to stop a session record from lua but when I try I get a
"Result is INVALID COMMAND!"

I am calling this lua script with
<action application="set" data="api_hangup_hook=lua proc.lua .."/>

so by the time the lua is called, someone has hungup one of the legs.

In the lua script I am using this to try to end the record session to
the wav file so it gets closed and so I can convert it to mp3 right
away
and a few other things in the lua script...

apicmd = "stop_record_session";
apiarg = recordfile;
res = api:execute(apicmd,apiarg);

but that is when I get the INVALID COMMAND on the freeswitch console.

Is there a proper way to do this from lua?

When the call hangs up the record session should stop by itself
anyways so this should not be necessary.

Mike


_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services