Brekeke SIP Server Wiki

4. Control Methods

You can call CONTROL METHODS from your plug-in.

 

1. doTerminate
public void doTerminate()

This method terminates a session safely and sends BYE/CANCEL or some response (depending on the session status) to UAs.

 

2. setSchedule
public void setSchedule( long id, long secdelay )

This method calls eventTimerup() at a scheduled time.

Parameters:

long id – timer ID
long secdelay – Timer, i.e. delay in seconds before the method is called

 

3. setScheduleTerminate
public void setScheduleTerminate( long secdelay )

This method terminates a session safely at a scheduled time

Parameter:
long secdelay – Timer, i.e. delay in seconds before terminating a session

 

4. getTalkLength
public long getTalkLength()

This method returns Talk length.

Returns:
Talk length (msec)

 

Yes No
Suggest Edit