mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
a little update to the sofia-sip library
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4939 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -331,7 +331,7 @@ int main(int argc, char *argv[])
|
||||
return context->c_retval;
|
||||
}
|
||||
|
||||
/** Handle responses to registration request */
|
||||
/** Handle responses to OPTIONS request */
|
||||
static
|
||||
int response_to_options(context_t *context,
|
||||
nta_outgoing_t *oreq,
|
||||
@@ -355,12 +355,16 @@ int response_to_options(context_t *context,
|
||||
sip_is_content_length(h))
|
||||
continue;
|
||||
}
|
||||
if (h->sh_class->hc_name) {
|
||||
snprintf(hname, sizeof hname, "%s: %%s\n", h->sh_class->hc_name);
|
||||
sl_header_print(stdout, hname, h);
|
||||
|
||||
if (h->sh_class->hc_name == NULL) {
|
||||
sl_header_print(stdout, NULL, h);
|
||||
}
|
||||
else if (h->sh_class->hc_name[0] == '\0') {
|
||||
sl_header_print(stdout, "%s\n", h);
|
||||
}
|
||||
else {
|
||||
sl_header_print(stdout, NULL, h);
|
||||
snprintf(hname, sizeof hname, "%s: %%s\n", h->sh_class->hc_name);
|
||||
sl_header_print(stdout, hname, h);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user