VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
nic at foneshow.com Guest
|
Posted: Sun Sep 07, 2008 1:56 am Post subject: [Freeswitch-users] Setting hangup hook from Perl? |
|
|
How do I set a hangup hook function in a Perl application called from
the dialplan? After looking at freeswitch.pm I tried these:
freeswitch::setHangupHook( &on_hangup );
$session->setHangupHook( &on_hangup );
but both failed with errors. Thanks -
Nic
_______________________________________________
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 |
|
|
sheeju.alex at gmail.com Guest
|
|
Back to top |
|
|
nic at foneshow.com Guest
|
|
Back to top |
|
|
sheeju.alex at gmail.com Guest
|
|
Back to top |
|
|
nic at foneshow.com Guest
|
Posted: Mon Sep 08, 2008 11:13 am Post subject: [Freeswitch-users] Setting hangup hook from Perl? |
|
|
Thanks, I think I've figured it - that confusing error was SWIG
telling me that I had the function parameter types wrong. As a Perl
guy I assumed that setHangupHook would take a subroutine pointer - in
fact it wants the name of the subroutine as a string.
Is there anywhere with real documentation for these things?
Thanks for the offer of help -
Nic
On Sep 8, 2008, at 12:33 AM, Sheeju Alex wrote:
_______________________________________________
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 |
|
|
wasim at convergence.pk Guest
|
Posted: Mon Sep 08, 2008 12:09 pm Post subject: [Freeswitch-users] Setting hangup hook from Perl? |
|
|
On Mon, Sep 8, 2008 at 10:47 AM, Nic Wolff <nic@foneshow.com (nic@foneshow.com)> wrote:
Quote: | Thanks, I think I've figured it - that confusing error was SWIG
telling me that I had the function parameter types wrong. As a Perl
guy I assumed that setHangupHook would take a subroutine pointer - in
fact it wants the name of the subroutine as a string.
Is there anywhere with real documentation for these things? |
Please add under http://wiki.freeswitch.org/wiki/Mod_perl
--
wasim h. baig | principal consultant | convergence pk | +92 300 8508070 |
|
Back to top |
|
|
|
|
|
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
|