pua_bla requires "Subscription-State" header being case sensitive.
When I send a NOTIFY with:
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;
hdr = hdr->next;
LM_ERR("No Subscription-State header found\n");
AFAIK the above comparision based on "strncmp" is case sensitive so it breaks SIP syntax.
Log in to post a comment.