[SR-Users] What IP in REGISTER message does Kamalio use to store location ?

Khoa Pham onmyway133 at gmail.com
Thu Apr 4 09:25:26 CEST 2013


@Vitaliy

Many thanks. You clarified the problem :)


On Wed, Apr 3, 2013 at 9:18 PM, Vitaliy Aleksandrov
<vitalik.voip at gmail.com>wrote:

>  Save() function of the "registrar" module always saves Contact and can
> save real source to the "received" field of a location record.
> lookup() function uses Contact to form R-URI and puts ip:port from the
> received field to the $du.
> If $du is present t_relay() uses it to forward a request to a correct
> destination.
>
>
>  @Jason
>
>  I'm not using any NAT protocol (STUN, ICE, ...) at client. I'm using the
> default Kamalio config file 3.3.5. If it is the NAT helping code in
> Kamalio, it means that Kamalio is using 3. IP from IP packet ?
>
>
> On Tue, Apr 2, 2013 at 1:19 PM, Jason Penton <jason.penton at smilecoms.com>wrote:
>
>> There is probably some NAT helping code in your Kamailio config file.
>> Either that or you are using one the NAT protocols, (STUN,ICE,etc).
>>
>>  cheers
>> Jason
>>
>>
>> On Tue, Apr 2, 2013 at 2:39 AM, Khoa Pham <onmyway133 at gmail.com> wrote:
>>
>>> @Jason
>>>
>>>  Thanks, but it strange. I only send 1 REGISTER to the server, with the
>>> Contact field contains my local IP address. How can I still receive
>>> incoming call ?
>>>
>>>
>>>  On Mon, Apr 1, 2013 at 8:10 PM, Jason Penton <
>>> jason.penton at smilecoms.com> wrote:
>>>
>>>>  2
>>>>
>>>> --
>>>> This email has been sent using my phone. It may be brief, to the point
>>>> or contain typos.
>>>> --
>>>>  On 1 Apr 2013 14:57, "Khoa Pham" <onmyway133 at gmail.com> wrote:
>>>>
>>>>>  Hi, when client send REGISTER message to Kamalio. Kamailio will save
>>>>> that client's IP to database.
>>>>> But what is this IP ? Is is 1,2 or 3 ?
>>>>> 1. The IP from Via field
>>>>> 2. The IP from Contact field
>>>>> 3. The IP from the IP packet
>>>>>
>>>>>  Many thanks
>>>>>
>>>>>  --
>>>>> Khoa Pham
>>>>> HCMC University of Science
>>>>> Faculty of Information Technology
>>>>>
>>>>>  _______________________________________________
>>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>>>> sr-users at lists.sip-router.org
>>>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>>>
>>>>>   This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at http://www.smilecoms.com/disclaimer
>>>>
>>>>
>>>> _______________________________________________
>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>>> sr-users at lists.sip-router.org
>>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>>
>>>
>>>
>>>  --
>>> Khoa Pham
>>> HCMC University of Science
>>> Faculty of Information Technology
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users at lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>>
>>  --
>>  Jason Penton
>> Senior Manager: Applications and Services
>> Smile Communications
>> Johannesburg, South Africa
>> Phone: +27 83 283 7000
>>
>>   This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at http://www.smilecoms.com/disclaimer
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
>
>  --
> Khoa Pham
> HCMC University of Science
> Faculty of Information Technology
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Khoa Pham
HCMC University of Science
Faculty of Information Technology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130404/35d478ab/attachment-0001.htm>


More information about the sr-users mailing list