[Freeswitch-users] Setting hangup hook from Perl?

Sheeju Alex sheeju.alex at gmail.com
Sun Sep 7 18:38:59 PDT 2008


Try this...it should work

$session->setAutoHangup(false);
OR
$session->hangup("USER_BUSY");  or without any parameter for normal_clearing

/SA


On Sun, Sep 7, 2008 at 12:24 PM, Nic Wolff <nic at foneshow.com> wrote:
> 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 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
>




More information about the FreeSWITCH-users mailing list