[OpenSIPS-Users] multiple registration with single softphone

Tito Cumpen tito at xsvoce.com
Sat Jun 13 00:23:41 CEST 2015


Aqs,


It looks like these a two separate entries based on the call-id:


76589ZTlhODhlODE3MjY1N2E5ZGJhM2M0MjNjOWM3NDI3ODU

76589NjY1NjYxNDdjNjBjNjEyYmVjN2JhMDQzYzRjYzVmY2I

Naturally the client should refresh the registration by re-using the call
id. The server would respond with challenge specifying the attached auth
header was stale. The UAC would reply with a newly generated auth header.
Is this second registration attempt  being made prior the to registration
expiry time? is the server sending a 200 ok with an expiry time in the
contact field? Also can you share your registration function?


Thanks,
Tito


On Fri, Jun 12, 2015 at 5:56 PM, Aqs Younas <aqsyounas at gmail.com> wrote:

> Thanks for you answer. Below is re-captured packets.
>
> Session Initiation Protocol (REGISTER)
>     Message Header
>         Via: SIP/2.0/UDP 192.168.1.5:60513
> ;branch=z9hG4bK-524287-1---e033e301133bdc5b;rport
>         Max-Forwards: 70
>         Contact: <sip:14048002020 at 192.168.1.5:60513
> ;rinstance=8e3eef20967b3294>
>         To: <sip:14048002020 at 192.168.1.60>
>         From: <sip:14048002020 at 192.168.1.60>;tag=71dd180b
>         Call-ID: 76589NjY1NjYxNDdjNjBjNjEyYmVjN2JhMDQzYzRjYzVmY2I
>         CSeq: 1 REGISTER
>         Expires: 3600
>         Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO,
> MESSAGE
>         User-Agent: X-Lite 4.8.4 76589-dcb8bf14-W6.2
>         Content-Length: 0
>
> Request-Line: REGISTER sip:192.168.1.60 SIP/2.0
>     Message Header
>         Via: SIP/2.0/UDP 192.168.1.5:60513
> ;branch=z9hG4bK-524287-1---b5b9926774d60123;rport
>         Max-Forwards: 70
>         Contact: <sip:14048002020 at 192.168.1.5:60513
> ;rinstance=f9c1973b37048538>
>         To: <sip:14048002020 at 192.168.1.60>
>         From: <sip:14048002020 at 192.168.1.60>;tag=e4ef7105
>         Call-ID: 76589ZTlhODhlODE3MjY1N2E5ZGJhM2M0MjNjOWM3NDI3ODU
>         CSeq: 1 REGISTER
>         Expires: 3600
>         Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO,
> MESSAGE
>         User-Agent: X-Lite 4.8.4 76589-dcb8bf14-W6.2
>         Content-Length: 0
>
> Both result successful registration.
>
> On 12 June 2015 at 14:23, Tito Cumpen <tito at xsvoce.com> wrote:
>
>> Do you have an example of the request? Are the call id's matching ?
>> On Jun 12, 2015 5:21 PM, "Aqs Younas" <aqsyounas at gmail.com> wrote:
>>
>>> Hi, Users.
>>>
>>> I try to register my x-lite phone with opensips that is successfully
>>> registered.But i see after some time, x-lite sends another register request
>>> and there are two entries for same username in location table.
>>>
>>> Username                  Contact
>>> 14048002020  sip:14048002020 at 192.168.1.5:61404
>>> ;rinstance=7792871469eb2327
>>> 14048002020  sip:14048002020 at 192.168.1.5:61404
>>> ;rinstance=29fcf1d85b004efe
>>>
>>>
>>> I want, user must be register with different softphone for same
>>> username. Like second entry could be from zoiper,etc but not from same
>>> x-lite for 14048002020.
>>>
>>> Secondly, when i try to run,  ./opensipsctl fifo get_statistics
>>> accepted_regs
>>> It gives.
>>> registrar:accepted_regs:: 3
>>>
>>> But there are only 2 entries in location table.
>>>
>>> Please pardon me for my naive question, just started learning this
>>> amazing thing.
>>>
>>> Thanks
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150612/a351f48d/attachment-0001.htm>


More information about the Users mailing list