#37 PUA_BLA requires "Subscription-State" case sensitive

trunk
closed-duplicate
nobody
modules (454)
5
2008-10-28
2008-10-27
No

pua_bla requires "Subscription-State" header being case sensitive.

When I send a NOTIFY with:
Event: dialog;sla
Subscription-state: active;expires=2009

pua_bla says:
ERROR:pua_bla:bla_handle_notify: No Subscription-State header found

This doesn't occur if I send "Subscription-State".

Of course this is a bug since SIP syntax defines header names as case insensitive.

I see in notify.c code:

while (hdr!= NULL)
{
if(strncmp(hdr->name.s, "Subscription-State",18)==0 )
{
found = 1;
break;
}
hdr = hdr->next;
}
if(found==0 )
{
LM_ERR("No Subscription-State header found\n");
goto error;
}

AFAIK the above comparision based on "strncmp" is case sensitive so it breaks SIP syntax.

Discussion

  • Bogdan-Andrei Iancu

    This report is obsoleted by bug #2202134, a more general one.

     
  • Bogdan-Andrei Iancu

    • status: open --> closed-duplicate
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks