[Spce-user] wrong registration with contact from an internal IP address

Marc Storck mstorck at voipgate.com
Tue Feb 10 11:40:56 EST 2015


The contact is not wrong at all, the content of the content is not used to route the call on the IP level.  The contact field is used to construct the correct Request header for inbound calls.

Kamailio stores the public IP and public port of the user in the “received” field of the kamailio table.

Here is an example for my test user:

Contact:
sip:MyTestUser at 192.168.178.22:59969;transport=tls;registering_acc=sld_tld

received:
sip:203.0.113.244:59969;transport=tls

path:
<sip:lb at 127.0.0.1;lr;received=sip:203.0.113.244:59969%3Btransport%3Dtls;socket=sip:100.64.177.34:5061>

Inbound calls to that user are sent to IP 203.0.113.244 port 59969 and the Request URI is constructed correctly using the stored contact.

Eventually you can tell us which problem you try to solve and the members on the mailing list can assist you on how to solve it.

Regards,

Marc


> On 10 Feb 2015, at 17:20, Tóth Csaba <tsabi at tsabi.hu> wrote:
> 
> Dear List, SipWise Team,
> 
> how can i disabled registrations what try to register a contact into an
> internal IP address range?
> 
> For example this is a contact what a subscriber registered with:
> "sip:361*******@10.102.2.1;transport=UDP;user=phone"
> 
> How can i disable the possibility to these kind of registrations not be
> able to register, or "maybe" (?) better the system do a replace on the
> invalid IP address to the real external IP address it gots the
> registration from? Our old call distribution system does this latter
> mechanism, i am not so satisfied with it, i think the first method (a
> decline on the registration) would be better.
> 
> Thanks in advance!
> Csaba Tóth
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150210/914e3c83/attachment-0001.asc>


More information about the Spce-user mailing list