Merged revisions 339942 via svnmerge from
authorIgor Goncharovskiy <igor.goncharovsky@gmail.com>
Sun, 9 Oct 2011 01:19:30 +0000 (01:19 +0000)
committerIgor Goncharovskiy <igor.goncharovsky@gmail.com>
Sun, 9 Oct 2011 01:19:30 +0000 (01:19 +0000)
https://origsvn.digium.com/svn/asterisk/branches/10

................
  r339942 | igorg | 2011-10-09 08:18:02 +0700 (Вск, 09 Окт 2011) | 12 lines

  Merged revisions 339938 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.8

  ........
    r339938 | igorg | 2011-10-09 08:16:09 +0700 (Вск, 09 Окт 2011) | 6 lines

    Fix compilation issue, caused by missed session structure

    (closes issue ASTERISK-18694)
    Reported by: alex70
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@339947 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_unistim.c

index 47301f3..9a8c064 100644 (file)
@@ -882,7 +882,7 @@ static struct unistimsession *create_client(const struct sockaddr_in *addr_from)
 
        memcpy(&s->sin, addr_from, sizeof(struct sockaddr_in));
        get_to_address(unistimsock, &s->sout);
-       sout.sin_family = AF_INET;
+       s->sout.sin_family = AF_INET;
        if (unistimdebug) {
                ast_verb(0, "Creating a new entry for the phone from %s received via server ip %s\n",
                         ast_inet_ntoa(addr_from->sin_addr), ast_inet_ntoa(s->sout.sin_addr));