Pjsip : How replacing in the invite sip response the reasonphrase '486: Busy' with another custom string "486: Id_of_running_service"

When declining a received call in case we are busy since another service is running, i want to replace in the invite sip response the reasonphrase ‘486: Busy’ with another custom string “486: Id_of_running_service”.
Im using pjsip, is there any available option that customize the sip response, if no, which source blocks in res_pjsip could i made changes to support this particular need.

There is no built in ability to do this. The code itself which does the translation is in chan_pjsip.c[1]. It does not currently do response text, the PJSIP stack fills it in automatically.

[1] https://github.com/asterisk/asterisk/blob/master/channels/chan_pjsip.c#L1685

1 Like

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