Dear Marian.
Thanks again for your response. I used the commands you recommend
me and i saw the inverse bahaivor. First the original IP is 10.0.0.1, then
for test purposes i changed to 10.0.0.5 and registered again. Here is my
location table after the endpoint is registered again with another IP
address.
...Record(0x422b9158)...
domain: 'location'
aor : '5555832351'
~~~Contact(0x422b91a0)~~~
domain : 'location'
aor : '5555832351'
Contact : 'sip:5555832351@10.0.0.1'
Expires : 831
q : 0.00
Call-ID : 'e0928e42-fd7e-df78-8000-0002a400f1e9(a)10.0.0.1'
CSeq : 3456
replic : 0
User-Agent: 'AddPac SIP Gateway'
State : CS_NEW
Flags : 0
next : 0x422b9390
prev : (nil)
~~~/Contact~~~~
~~~Contact(0x422b9390)~~~
domain : 'location'
aor : '5555832351'
Contact : 'sip:5555832351@10.0.0.5'
Expires : 897
q : 0.00
Call-ID : 'e0928e42-fd7e-df78-8000-0002a400f1e9(a)10.0.0.1'
CSeq : 3461
replic : 0
User-Agent: 'AddPac SIP Gateway'
State : CS_NEW
Flags : 0
next : (nil)
prev : 0x422b91a0
~~~/Contact~~~~
As you can see the order is ascending (not descending as the modulu manual
says). The when i try to make a call to the 555-5832351 the INVITE is
generated just one time (as you said to me), but for the first contact, to
the 10.0.0.1, the old IP, so there is no response and the call is not
completed.
Am i missing something?
Thanks in advance
Best Regards
Ricardo.-
-----Mensaje original-----
De: Marian Dumitru [mailto:marian.dumitru@voice-sistem.ro]
Enviado el: MiƩrcoles, 27 de Octubre de 2004 13:07
Para: Ricardo Martinez
CC: 'serusers(a)lists.iptel.org'
Asunto: Re: [Serusers] Question about REGISTER.
Hi Ricardo,
I see your problem. What you can do is to set registrar module to use
only the most recent registered contact:
modparam("registrar","append_branches", 0)
modparam("registrar","desc_time_order", 1)
Other thing you can do is to limit the registration time
modparam("registrar","max_expires", 300)
to use this, be sure your SIP clients supports expire modification by
server.
Best regards,
Marian Dumitru
Ricardo Martinez wrote:
Hello List.
I have a question about how SIP and SER work with the Registered
Endpoints. Suppose that i have and endpoint with obtaining IP by DHCP.
In
the first attemp the REGISTER have the IP : 10.0.0.1.
Suppose that after
a
while the enpoint is disconnected and connected again,
so by DHCP it takes
another IP, for example 10.0.0.5. So in my location table i see.
-----
aor : '5555832351'
Contact : 'sip:5555832351@10.0.0.1'
Expires : 642
-----
aor : '5555832351'
Contact : 'sip:5555832351@10.0.0.5'
Expires : 3000
----
So when i call to the 555-5832351 SER generates two INVITES (to the 2
registered endpoints) but only the 10.0.0.5 answer the call. So far this
is
not a problem, but suppose now that a new endpoint
with number 5555832359
obtain by DHCP the old IP 10.0.0.1, so it tries to register with the
SIP-Proxy . What i see in the location table is now:
-----
aor : '5555832359'
Contact : 'sip:5555832359@10.0.0.1'
Expires : 3000
-----
aor : '5555832351'
Contact : 'sip:5555832351@10.0.0.1'
Expires : 442
-----
aor : '5555832351'
Contact : 'sip:5555832351@10.0.0.5'
Expires : 2800
----
So when i call to the 555-5832351 the INVITE goes to these 3 endpoints.
Generating too much traffic and erroneus RESPONSE messages in SER and in
the
endpoints.
My question is : Is posible only permit one IP address per endpoint
registered in the location table?. Or make sure that only one endpoint
with
a given IP and URI is registered in the location DB?.
Thanks in advance
Best Regards
Ricardo.-
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
--
Voice Sistem
http://www.voice-sistem.ro