<div dir="ltr"><br>I have a questions in regards to SIP Auth, and specifically how Asterisk 13 with PJSIP appears to send Invites.<br><br>It seems that the typical Kamailio config sends the SIP auth challenge with the from domain as the auth realm.<br>however in the case of the Asterisk 13 ( PJSIP ) invite, the from domain is an RFC1918 IP address and I would have to use the domain from the request.<br><br>What im wanting to know is what the consensus is on where the auth realm comes from.<br>does everyone 100% agree that you send auth using the SIP From header, or is this something that some do Request domain ?   What im considering doing is to use the from domain, but if from domain = RFC1918 then use request domain.<br><br>Im just after everyone's opinion on how to best handle this invite, from a auth_challenge perspective.<br>( not so much if the Asterisk 13 PJSIP module is doing the right or wrong thing )<br><br><div style="margin-left:40px">INVITE <a href="http://sip:555111222333@sip.mytestdomain.com:5060">sip:555111222333@sip.mytestdomain.com:5060</a> SIP/2.0<br>Via: SIP/2.0/UDP 180.111.222.333:5060;rport;branch=z9hG4bKPjafb111a9-aaaf-4c9e-b456-748514855a06<br>From: <<a href="mailto:sip%3A555111222333@172.18.90.1">sip:555111222333@172.18.90.1</a>>;tag=88317259-052b-4997-bd2e-9c8836e27b47<br>To: <<a href="mailto:sip%3A555111222333@sip.netsip.net.au">sip:555111222333@sip.netsip.net.au</a>><br>Contact: <sip:9d43c8df-6378-4266-89c1-0a0bb0e1d0d1@180.111.222.333:5060><br>Call-ID: b7da52e2-dfd1-434e-a2c2-b28e1683ce0e<br clear="all"></div><br>-- <br><div class="gmail_signature">Sincerely<br><br>Jay</div>
</div>