forked from Mirrors/freeswitch
MODSOFIA-25
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14781 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e071f1a68c
commit
baa8371f6f
@ -2482,6 +2482,10 @@ SWITCH_STANDARD_API(sofia_gateway_data_function)
|
||||
char *gwname, *param, *varname;
|
||||
const char *val = NULL;
|
||||
|
||||
if (switch_strlen_zero(cmd)) {
|
||||
stream->write_function(stream, "-ERR Parameter missing\n");
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
if (!(mydata = strdup(cmd))) {
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user