[OpenSIPS-Users] 404 Contact not found

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Jun 27 16:56:13 CEST 2011


Hello Nick,

Checking the functions, found several issues with contact searching via 
the MI commands. The attached patch should fix the problem - please 
apply it, recompile and test again ....and let me know if works as expected.

Regards,
Bogdan

On 06/27/2011 05:10 PM, nick at uni-petrol.com wrote:
> Dear Bogdan!
>
> I have matching mode 1 - CONTACT and CALLID based matching algorithm:
>
> modparam("usrloc", "matching_mode", 1)
>
> Output of ul_dump fifo command:
>
> # opensipsctl fifo ul_dump
>
>         AOR:: user at domain.com
>                 Contact:: sip:user at 10.10.10.31:5060 Q=0
>                         Expires:: 152
>                         Callid:: 2725345640 at 10_10_10_31
>                         Cseq:: 6
>                         User-agent:: C470 IP022230000000
>                         Received:: sip:81.222.81.68:5060
>                         State:: CS_SYNC
>                         Flags:: 0
>                         Cflag:: 64
>                         Socket:: udp:OSIPSIP:5060
>                         Methods:: 5695
>
>
> # opensipsctl fifo ul_rm_contact location user at domain.com 
> sip:user at 10.10.10.31:5060
> 404 Contact not found
>
> And because of this error opensips-cp can't delete registered contact 
> when I press delete button.
>
> On Fri, 24 Jun 2011 16:54:42 +0300, Bogdan-Andrei Iancu wrote:
>
>> Hi Nick,
>>
>> Do you use a specific value for matching_mode in usrloc module ?
>>
>> Also, could you post the output of "opensipsctl ul dump" - post only
>> relevant record.
>>
>> Regards,
>> Bogdan
>>
>> On 06/21/2011 03:12 PM, nick at uni-petrol.com [5]wrote:
>>
>>> Dear All! opensips: opensips_trunk rev 7915 I have strange problem.
>>> When I try to delete contact fifo command ul_show_contact can't find
>>> AOR but fifo comman ul_show contact show it. # opensipsctl fifo
>>> ul_show_contact location user at domain.com [1] Contact::
>>>
>>
>> ;q=0;expires=109;flags=0x0;cflags=0x0;socket=;methods=0x143F;user_agent=
>>> # opensipsctl fifo ul_rm_contact location user at domain.com [2]
>>> sip:user at UAC:5060 404 Contact not found Thanks in advance!
>>> _______________________________________________ Users mailing list
>>> Users at lists.opensips.org [3]
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users [4]
>


-- 
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 2nd of May 2011
OpenSIPS solutions and "know-how"

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: usrloc.diff
URL: <http://lists.opensips.org/pipermail/users/attachments/20110627/eda98d87/attachment.asc>


More information about the Users mailing list