We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1237093 commit de5071aCopy full SHA for de5071a
1 file changed
modules/presence/publish.c
@@ -544,10 +544,13 @@ int handle_publish(struct sip_msg* msg, str* sender_uri)
544
goto error;
545
}
546
547
- if(sphere_enable && event->evp->parsed == EVENT_PRESENCE &&
548
- get_content_type(msg)== SUBTYPE_PIDFXML)
549
- {
550
- sphere= extract_sphere(body);
+ if(sphere_enable && event->evp->parsed == EVENT_PRESENCE) {
+ if (parse_content_type_hdr(msg)< 0) {
+ LM_ERR("cannot parse content type\n");
+ goto error;
551
+ }
552
+ if(get_content_type(msg)== SUBTYPE_PIDFXML)
553
+ sphere= extract_sphere(body);
554
555
556
0 commit comments