[SR-Users] Keeping transactions in standby till future events

Henning Westerholt henning.westerholt at 1und1.de
Mon Jun 20 11:39:32 CEST 2011


On Monday 20 June 2011, Alex Balashov wrote:
> > "[t_supend] This function together with t_continue() can be used to
> > implement asynchronous actions: t_suspend() saves the transaction,
> > returns its identifiers, and t_continue() continues the SIP request
> > processing."
> 
> These are just exported API functions though, right?  Not something
> that can be called from script?

Hi Alex,

yes, they are in the available in the public tm API:

int t_suspend(struct sip_msg *msg,
             unsigned int *hash_index, unsigned int *label)

int t_continue(unsigned int hash_index, unsigned int label,
             struct action *route)

Best regards,

Henning



More information about the sr-users mailing list