MayamaTakeshi / sip-lab

A node module that helps to write SIP functional tests
3 stars 2 forks source link

Implement new function call.update #112

Closed MayamaTakeshi closed 1 month ago

MayamaTakeshi commented 1 month ago

UPDATE is a special SIP method and cannot be sent using call.send_request. So we should have a specific function for it.

Initial use is to send UPDATE without SDP for refresh of session timer. The documentation says offer is mandatory:

https://docs.pjsip.org/en/latest/api/generated/pjsip/group/group__PJSIP__INV.html#_CPPv416pjsip_inv_updateP17pjsip_inv_sessionPK8pj_str_tPK19pjmedia_sdp_sessionPP13pjsip_tx_data

But I checked the code and it is actually not mandatory (at least the function pjsip_inv_update allows it to be absent).

So it should be usable for this purpose.

MayamaTakeshi commented 1 month ago

Done: however see #114 and #115.