[OpenSIPS-Users] dialog - failed to get From header

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Dec 2 00:17:57 CET 2009


Alex, Jeff,

try the attached patch - it should provide more info about the failing 
FROM parsing.

Regards,
Bogdan

Alex Massover wrote:
> Hi Bogdan,
>
> We experience the same thing under the same conditions (big amount of traffic and rare errors):
>
> Oct 27 06:18:05 ser10 /usr/sbin/opensips[2802]: ERROR:dialog:pre_match_parse: failed to get From header
> Oct 27 06:18:05 ser10 /usr/sbin/opensips[2802]: ERROR:uac:restore_from: new URI shorter than old URI
> Oct 27 06:18:09 ser10 /usr/sbin/opensips[2854]: ERROR:dialog:pre_match_parse: failed to get From header
> Oct 27 06:18:09 ser10 /usr/sbin/opensips[2854]: ERROR:uac:restore_from: new URI shorter than old URI
>
>
> I think it's good idea to include at least Call-ID in error messages in general.
>
> Currently errors format is OpenSIPS suitable for the developer that makes a single call and wants to debug it.
> But is not so friendly for the production environment with big amount of traffic. Although I have all SIP traces it's impossible to find that specific call without any reference.
>
> --
> Best Regards,
> Alex Massover
> VoIP R&D TL
> Jajah Inc.
>
>   
>> -----Original Message-----
>> From: users-bounces at lists.opensips.org [mailto:users-
>> bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
>> Sent: Tuesday, November 24, 2009 8:35 AM
>> To: OpenSIPS users mailling list
>> Subject: Re: [OpenSIPS-Users] dialog - failed to get From header
>>
>> Hi Jeff,
>>
>> Do you think it will help if I send you a small patch to explicitly log
>> the error case and the FROM header?
>>
>> Regards,
>> Bogdan
>>
>> Jeff Pyle wrote:
>>     
>>> Hi Bogdan,
>>>
>>> There were no previous errors.  So I can only conclude it's the
>>>       
>> second.
>>     
>>> Unfortunately I have a substantial amount of traffic flowing through
>>>       
>> this
>>     
>>> proxy and this error pops up so infrequently I don't have a trace to
>>> reference.
>>>
>>>
>>>
>>> - Jeff
>>>
>>>
>>>
>>>
>>> On 11/23/09 4:23 PM, "Bogdan-Andrei Iancu" <bogdan at voice-system.ro>
>>>       
>> wrote:
>>     
>>>       
>>>> Hi Jeff,
>>>>
>>>> This error is generated in two cases:
>>>>     1) FROM hdr failed - you should see some previous related errors
>>>>
>>>>     2) there is no TAG param for the FROM hdr
>>>>
>>>> I guess it is the second .... Could you confirm?
>>>>
>>>> Regards,
>>>> Bogdan
>>>>
>>>> Jeff Pyle wrote:
>>>>
>>>>         
>>>>> Hello,
>>>>>
>>>>> I'm seeing messages like this from time to time on Opensips 1.5.3:
>>>>>
>>>>>   ERROR:dialog:pre_match_parse: failed to get From header
>>>>>
>>>>> My dialog config is as follows:
>>>>>
>>>>> modparam("dialog", "dlg_flag", 4)
>>>>> modparam("dialog", "dlg_match_mode", 2)
>>>>> modparam("dialog", "db_url", [functioning db_uri])
>>>>> modparam("dialog", "db_mode", 1)
>>>>> modparam("dialog", "profiles_with_value", "inbound; outbound")
>>>>>
>>>>> This proxy took over for an old Openser 1.3.2 box who didn't
>>>>>           
>> complain about
>>     
>>>>> any From header problems.  I can't imagine I'm receiving INVITEs
>>>>>           
>> without
>>     
>>>>>> From headers.  Unfortunately it's too sporadic to enable full
>>>>>>             
>> debugging.
>>     
>>>>> Any thoughts?
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Jeff
>>>>>
>>>>>
>>>>>
>>>>>           


-- 
Bogdan-Andrei Iancu
www.voice-system.ro

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dialog.diff
Url: http://lists.opensips.org/pipermail/users/attachments/20091202/8085d8a3/attachment.txt 


More information about the Users mailing list