provide a default context, so transfer works on non-peer calls
authorMark Spencer <markster@digium.com>
Mon, 31 Mar 2003 15:04:59 +0000 (15:04 +0000)
committerMark Spencer <markster@digium.com>
Mon, 31 Mar 2003 15:04:59 +0000 (15:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@725 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e1322a4..98644ad 100755 (executable)
@@ -1248,6 +1248,7 @@ static struct sip_pvt *sip_alloc(char *callid, struct sockaddr_in *sin, int useg
        p->dtmfmode = globaldtmfmode;
        if (p->dtmfmode & SIP_DTMF_RFC2833)
                p->noncodeccapability |= AST_RTP_DTMF;
+       strncpy(p->context, context, sizeof(p->context));
        /* Add to list */
        ast_pthread_mutex_lock(&iflock);
        p->next = iflist;