I am developing an iOS application using PJSIP. I want to send a registration message via PJSIP. I have @ in the username, for example nandha@gmail.com .
I encoded @ as % 40 and added the account username as nandha% 40gmail.com and the SIP URL as sip: nandha% 40gmail.com@142.23.16.20 : 2020
I passed the username and pulled the url in PJSIP. The account was added successfully, but it cannot send a REGISTER message to the server.
I think he added the coded username and sip url. when sending a register message, it decoded the value as nandha @ gmail.com @ 142.23.16.20: 2020 , and after the @ symbol it takes the value IP-PORT, for example gmail.com @ 142.23.16.20: 2020
Why doesn't PJSIP send a REGISTER message when encoding a username?
source
share