PJSIP Headers for Outbound Calls (Asterisk 20.4.0)

Happy Friday!

We successfully get PJSIP headers for inbound calls by adding a ‘b’ handler to Dial() and setting some headers.

Is there a strategy for getting headers back for outbound calls before answering?

What we’re trying to do is get a channel variable back to the client immediately, regardless if the outbound call is answered.

I’ve tried both PJSIP_HEADER() and PJSIP_HEADER_PARAM() and while I can get the headers on an INVITE packet, they never make it down the the client (an in-house softphone using JsSIP).

Thanks for any advice :slight_smile:


No, there is no such functionality currently.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.