[OpenSIPS-Users] can realm change before calling check_from()	/check_to() with uri table ?
    Pasan Meemaduma 
    pasandev at ymail.com
       
    Thu Mar  8 12:17:18 CET 2012
    
    
  
Hi Guys,
I'm just stuck in with something with uri table. 
I have different DNS entries and people use server IP as well therefore I have to have duplicate entries in uri table if I need
to alias `From` user. This increase db load . 
Is there way that we can turn off realm checking in check_from () when modparam("uri_db", "use_uri_table", 1) ?
Or else is there a way I can replace realm part of a Digest Header to a common string so that I can have single entry in uri table ?
If I don't have both entires as below , If the Customer uses IP or DNS the check_from check_to fail :(
+----+----------+---------------+----------+---------------------+
| id | username | domain        | uri_user | last_modified       |
+----+----------+---------------+----------+---------------------+
|  1 | 1001     | 192.168.102.5 | 1001     | 2012-01-09 17:21:42 |
|  4 | 1001     | voip.somewhere.com | 1001     | 2012-01-09 17:36:32 |
+----+----------+---------------+----------+---------------------+
I tried using replace_all(re,txt) but it didn't work.
any suggestions would be appreciated
Regards,
Pasan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120308/98be08c9/attachment.htm>
    
    
More information about the Users
mailing list