MayamaTakeshi / sip-lab

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

Use on_rx_offer2 instead of on_rx_offer #39

Closed MayamaTakeshi closed 1 year ago

MayamaTakeshi commented 1 year ago

This is to permit to match against SIP msg in the reinvite event.

MayamaTakeshi commented 1 year ago

Actually this cannot be done. This is because in case of delayed media (INVITE without SDP, 200 with SDP, ACK with SDP), on_rx_offer and on_rx_offer2 are called when the '200 OK' is received. Instead probably should use on_rx_reinvite(). However the devjournal mentions issues with it too.