I'm developing iOS app with using of PJSIP. I want to send register message through PJSIP. I have @ in username, for example [email protected] .
I encoded @ as %40 and added account username as nandha%40gmail.com and SIP URL as sip:nandha%[email protected]:2020
I passed the username and sip url into PJSIP. Account is added successfully, but it can't send any REGISTER Message to the server.
I think it has added the encoded username and sip url. when sending register message it decoded the value as [email protected]@142.23.16.20:2020 and it takes IP PORT value after @ symbol, like as [email protected]:2020
why PJSIP not sending the REGISTER message while encoding username?
Some characters cannot be part of a URL (for example, the space) and some other characters have a special meaning in a URL. In HTML forms, the character = is used to separate a name from a value.
As I know, PJSIP automatically decode the Encoded characters while separating the username@sipIP:port
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With