[SR-Users] Getting 407 response when calling out (on bulk registration)

Al S alirsm at outlook.com
Wed Jun 17 15:32:24 CEST 2015


Hi,
A bulk registration has been added to the "location" table:*************************** 1. row ***************************           id: 113         ruid: uloc-55808d5a-33bc-1     username: pbx       domain: NULL      contact: sip:pbx at 10.10.10.157:5060;bnc     received: NULL         path: NULL      expires: 2015-06-17 10:08:42            q: -1.00       callid: 1-15061 at 10.10.10.157         cseq: 2last_modified: 2015-06-17 09:08:42        flags: 0       cflags: 0   user_agent: SIPp/Win32       socket: udp:10.10.10.160:5060      methods: NULL     instance: NULL       reg_id: 01 row in set (0.00 sec)
An outgoing call (SIPOUT) is made from a 10-digit number of the pbx:
Request-Line: INVITE sip:9191111111 at example.net:5060 SIP/2.0From: sipp <sip:8181111111 at home.net>;tag=1To: <sip:9191111111 at example.net:5060>Proxy-Authorization: Digest username="pbx",realm="myhome.net",uri="sip:10.10.10.160:5060",nonce="???",response="??",algorithm=MD5
Even though I changed the value of $fU to "pbx", Kamailio does not authenticate the username and response with a 407 "Proxy Auth Required" response:
route[AUTH] {...   if (is_method("REGISTER") || from_uri==myself)   {      # authenticate requests      $var(fU) = $fU;      $fU = "pbx";      if (!auth_check("$fd", "subscriber", "1")) {         auth_challenge("$fd", "0");         exit;      }      # user authenticated - remove auth header      if(!is_method("REGISTER|PUBLISH"))         consume_credentials();   }   ...   $fU = $var(fU);
#!endif   return;}
Is this the correct approach to process outgoing call for bulk registration username?Any help in this regard would be greatly appreciated
Thanks,Al
  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150617/dc208900/attachment.html>


More information about the sr-users mailing list