Table of Contents
onSIPRawInfo()
wrtc.onSIPRawInfo() is an event function called when a SIP INFO packet has been received. SIP clients may send all kind of different informations in SIP INFO packets.
You can use this event to decode the received SIP INFO packet and act accordingly.
Occurs
SIP INFO packet received. Some SIP INFO packets are decoded by wrtc_kit - the others it does not recognize will call this function.
Arguments
wrtc.onSIPRawInfo(obj, info)
- obj - call object raising the event
- info - JSON structure containing received SIP INFO packet: {type:"sip_raw_info", from:…, format:…, msg:…}
- from - address SIP INFO packet was sent from eg “john.doe@company.com”
- format - content-type according to SIP INFO specifications
- msg - content according to SIP INFO specifications
Return value
Ignored.