Hi James,

By default the location information is stored only in cache - you can 
change that by setting the parameter db_mod in usrloc module - 
http://www.opensips.org/html/docs/modules/devel/usrloc.html#id271279.
You can also check the information in cache with the command 
'opensipsctl ul show'.

Regards,

-- 
Anca Vamanu
www.voice-system.ro




On 10/14/2010 02:37 AM, James Mbuthia wrote:
> But when does the proxy create a location record?
>
> When the callee phone registers it gets an authenticate challenge and
> after the challenge it gets a 200 Ok header.
>
> When the caller phone calls it gets a 407 proxy challenge and after
> verification gets a 100 response.
>
> According to my understanding the proxy creates a location record for
> the person being called, however this is  not entered into the
> database so where is it? Below is a snippet of my invite and register
> code in opensips.cfg
>
>
> if (!(method=="REGISTER")&&  from_uri==myself) /*no multidomain version*/
>       ##if (!(method=="REGISTER")&&  is_from_local())  /*multidomain */
>       ##
>       {
>       if (!proxy_authorize("", "subscriber")) {
>               proxy_challenge("", "0");
>               exit;
>       }
>               if (!db_check_from()) {
>                               sl_send_reply("403","Forbidden auth ID");
>                       exit;
>               }
>
>       consume_credentials();
>       ## # caller authenticated
>       }
>
>
> if (is_method("REGISTER"))
>       {
>               # authenticate the REGISTER requests (uncomment to enable auth)
>               if (!www_authorize("", "subscriber"))
>               {
>                       www_challenge("", "0");
>                       exit;
>               }
>               ##
>               if (!db_check_to())
>               {
>                       sl_send_reply("403","Forbidden auth ID");
>                       exit;
>               }
>
>               if (!save("location"))
>                       sl_reply_error();
>
>               exit;
>               }
>       }
>
>
>
> The proxy does not save the location details under the location table
> however sending an invite before the callee has been registered
> results in a 405. So, where does the proxy save the callee location if
> its not saving on the database? And how do I need to go around that?
>    

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to