sofia_profile_t *profile;
nua_handle_t *nh;
- if (profile_name && ct && es && body && user && host && (profile = sofia_glue_find_profile(profile_name))) {
+ if (profile_name && ct && es && user && host && (profile = sofia_glue_find_profile(profile_name))) {
char *id = NULL;
char *contact, *p;
char buf[512] = "";
NUTAG_NEWSUB(1),
SIPTAG_EVENT_STR(es),
SIPTAG_CONTENT_TYPE_STR(ct),
- SIPTAG_PAYLOAD_STR(body),
+ TAG_IF(!switch_strlen_zero(body), SIPTAG_PAYLOAD_STR(body)),
TAG_END());
sofia_profile_t *profile;
nua_handle_t *nh;
- if (profile_name && ct && body && user && host) {
+ if (profile_name && ct && user && host) {
char *id = NULL;
char *contact, *p;
char buf[512] = "";
nua_message(nh,
NUTAG_NEWSUB(1),
SIPTAG_CONTENT_TYPE_STR(ct),
- SIPTAG_PAYLOAD_STR(body),
+ TAG_IF(!switch_strlen_zero(body), SIPTAG_PAYLOAD_STR(body)),
TAG_END());