opts.responseHeadersto Srf#createB2BUA to provide SIP headers to include on responses to the A party. The value may be either an object containing the SIP headers to apply on all responses to the A party (provisional as well as final), or a function returning an object that contains the SIP headers to apply. If a function is provided, it will be called with the signature
(uacRes, headers), where
uacResis the response received from the B party, and
headersare the SIP headers that have already been set on the response message to the A party (e.g., through the
- Fixed uac scenario (
opts.authis provided and 401/407 challenge is handled. The stack transaction for the initial request was being incorrectly used to send the CANCEL or ACK for the subsequent request (the one carrying credentials).