]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_odbc: set empty extended field as a single whitespace
authorAlexei Gradinari <alex2grad@gmail.com>
Mon, 25 Mar 2019 16:42:27 +0000 (12:42 -0400)
committerAlexei Gradinari <alex2grad@gmail.com>
Mon, 25 Mar 2019 16:44:07 +0000 (10:44 -0600)
commit3b1cf67fa91c05f210c7ee8b288554671688d09f
tree79a78be75e459ba1ea8022768025600f4d1e0e70
parent85f87790a58da62a52c42b72cf27dc59317e994a
res_config_odbc: set empty extended field as a single whitespace

If Realtime @ variable value is NULL or empty or contains only whitespaces
then when we try to retrieve it using PJSIP_ENDPOINT we get WARNING
pjsip_endpoint_function_read: Unknown property @my_var for PJSIP endpoint.
And the variable is missing in the result of CLI pjsip show endpoint.

This patch keeps empty sorcery extended field.

ASTERISK-28341 #close

Change-Id: I221fccc04cbfa2be17ce971f64ae0e74e465eea0
res/res_config_odbc.c