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@10.10.10.157:5060;bnc
     received: NULL
         path: NULL
      expires: 2015-06-17 10:08:42
            q: -1.00
       callid: 1-15061@10.10.10.157
         cseq: 2
last_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: 0
1 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@example.net:5060 SIP/2.0
From: sipp <sip:8181111111@home.net>;tag=1
To: <sip:9191111111@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