[Freeswitch-users] FXO port manual off-hook

Moises Silva moises.silva at gmail.com
Mon Nov 1 20:07:58 PDT 2010


On Mon, Nov 1, 2010 at 3:06 AM, Jeroen C. van Gelderen
<slim at thegreek.com> wrote:
> Hi Guys,
>
> I don't think this is currently supported but...
>
> Can I force (and keep) an FXO (FreeTDM/DAHDI) port off-hook from the
> dialplan or from a script?
>
> Right now when the CO sends a CPC (disconnect supervision) signal the
> receiving FXO port automatically goes on-hook.
>
> I'd like to be able to "busy" a line (take it off-hook and keep it off-hook)
> so that calls will roll-over to other lines in my CO hunt group.
>
> If not supported, could this be implemented in a relatively sane amount of
> time by a non-Freeswitch expert programmer? Or would this require major
> re-architecting?
>
> Any and all pointers appreciated.
>

You can set the line off-hook pretty easily just adding a function or
application that executes:

ftdm_channel_command(chan, FTDM_CHANNEL_COMMAND_OFFHOOK, NULL);


Moises Silva
Senior Software Engineer
Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON
L3R 9R6 Canada
t. 1 905 474 1990 x128 | e. moy at sangoma.com



More information about the FreeSWITCH-users mailing list