PJSUA2 Send 302 Moved Temporarily

GM
Gavin Murphy
Sat, Sep 9, 2023 6:30 PM

Hi all,
   is anyone able to provide a working example of how to send a 302 Moved Temporarily with PJSUA2 (C++)? I have tried calling Call::answer() with a CallOpParam that has been populated with the 302 status code and two headers including the Contact header. The 302 is sent, but neither of the headers I include is set, and the Contact appears to be set to the address of the server running my application.
Thanks,
Gavin

Hi all,    is anyone able to provide a working example of how to send a 302 Moved Temporarily with PJSUA2 (C++)? I have tried calling Call::answer() with a CallOpParam that has been populated with the 302 status code and two headers including the Contact header. The 302 is sent, but neither of the headers I include is set, and the Contact appears to be set to the address of the server running my application. Thanks, Gavin