set peername after recent function updates
authorRussell Bryant <russell@russellbryant.com>
Sun, 12 Feb 2006 19:19:19 +0000 (19:19 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 12 Feb 2006 19:19:19 +0000 (19:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9718 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6c42f84..d890878 100644 (file)
@@ -9343,7 +9343,7 @@ static struct ast_custom_function checksipdomain_function = {
 int function_sippeer(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
 {
        struct sip_peer *peer;
-       char *peername, *colname;
+       char *peername = data, *colname;
        char iabuf[INET_ADDRSTRLEN];
 
        if ((colname = strchr(data, ':')))