[Users] Double Registration with Openser proxy and Openser registrar

Lindsey Hans Joseph Lao llao at infoweapons.com
Thu Oct 12 08:41:37 CEST 2006


Hello,

I currently have this setup

client --> (private interface) OpenSER (public interface) --> registrar 
(public)

In this scenario, I am configuring OpenSER to function as an application 
level gateway and at the same time a proxy server. I was able to 
successfully manipulate the contact headers thru textops module such a 
way that the IP registering in the registrar is the public one.  
NAThelper's fix_nated_contact and fix_nated_register won't work. No idea 
why...  What I want to happen is that registration requests from the 
client would register with OpenSER (save in userlocation) and also 
register with the registrar, is there a way to do this?

I'm using this script in the my proxy server such that if the 
destination uri is not intended for my proxy, it would substitute the 
contact headers and save it in "location" then relay the register 
request to its destination:

       lookup("aliases");
       if(uri != myself)
       {

                if(is_method("REGISTER"))
                {
                        append_hf("P-hint: Registration applied\r\n");
                        
subst('/Contact:(.*)<sip:(.*)@(.*)>/Contact:<sip:\1 at 10.3.2.38:5060>/ig');
                        save("location");
                         t_relay();
                        exit;
                };

My problem is I am able to log in (i'm using xlite softphone) but upon 
checking the sip messages, it shows an 401 unauthorized message response 
from the server. Can anyone help me on this?

Thanks much!
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3249 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.kamailio.org/pipermail/users/attachments/20061012/f3d64ad5/attachment.bin 


More information about the Users mailing list