mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-02-21 20:02:37 +01:00
Fix the value of Device.Services.VoiceService.{i}.VoiceProfile.{i}.Line.{i}.SIP.URI parameter
This commit is contained in:
parent
7b95853bdf
commit
6441cc6001
1 changed files with 1 additions and 1 deletions
|
|
@ -1929,7 +1929,7 @@ int get_line_sip_uri(char *refparam, struct dmctx *ctx, void *data, char *instan
|
|||
|
||||
dmuci_get_value_by_section_string(telargs->sip_section, "domain", &domain);
|
||||
dmuci_get_value_by_section_string(telargs->sip_section, "user", &user);
|
||||
if (user && domain)
|
||||
if (user && user[0] != '\0' && domain && domain[0] != '\0')
|
||||
dmasprintf(value, "%s@%s", user, domain); // MEM WILL BE FREED IN DMMEMCLEAN
|
||||
else
|
||||
*value = "";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue