diff options
-rw-r--r-- | funcs/func_callerid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_callerid.c b/funcs/func_callerid.c index 9809f4d08..ef3c447bb 100644 --- a/funcs/func_callerid.c +++ b/funcs/func_callerid.c @@ -111,8 +111,8 @@ static int callerid_write(struct ast_channel *chan, char *cmd, char *data, char name[256]; char num[256]; - if (!ast_callerid_split(value, name, sizeof(name), num, sizeof(num))) - ast_set_callerid(chan, num, name, num); + if (!ast_callerid_split(value, name, sizeof(name), num, sizeof(num))) + ast_set_callerid(chan, num, name, num); } else if (!strncasecmp("name", data, 4)) { ast_set_callerid(chan, NULL, value, NULL); } else if (!strncasecmp("num", data, 3) || |