SIP_REQUEST_SEND

Description

Triggered immediately before a SIP request is sent to the server-side TCP stack. This is a server-side event. Because of that, if you wish to execute commands in a client-side context in this event, you will need to use the clientside command to do so.

Examples

when SIP_REQUEST_SEND {
if {[SIP::method] == "BYE"} {
        persist delete sip [SIP::call_id]
    }
    else {
        persist add sip [SIP::call_id]
    }
}