You can use the api and check that the channel is occupied with "show channels"? You can write a small javascript that checks if the channel is occupied by means of session.execute api.
/aep -- Stopping junk mailers is good for the environment > My SIP provider allows only one call (incoming or outgoing) via one > SIP account. For FreeSWITCH I have configured it as public DID > extension and outgoing gateway. Now I would like to transfer to > another gw (or generate "limit exceded") when one tries to place an > outgoing call while incoming call is in progress. How tho do that? > Limiting the number of outgoing calls is easy (mod_limit), but how to > take into account incoming one? > > - Dmitry Bely > > _______________________________________________ > 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 > > _______________________________________________ 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