Pull language from peer too (bug #2848)
authorMark Spencer <markster@digium.com>
Sat, 13 Nov 2004 16:22:44 +0000 (16:22 +0000)
committerMark Spencer <markster@digium.com>
Sat, 13 Nov 2004 16:22:44 +0000 (16:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4230 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e5def5c..80ef568 100755 (executable)
@@ -5428,6 +5428,7 @@ static int check_user_full(struct sip_pvt *p, struct sip_request *req, char *cmd
                                        strncpy(p->context, peer->context, sizeof(p->context) - 1);
                                strncpy(p->peersecret, peer->secret, sizeof(p->peersecret) - 1);
                                strncpy(p->peermd5secret, peer->md5secret, sizeof(p->peermd5secret) - 1);
+                               strncpy(p->language, peer->language, sizeof(p->language)  -1);
                                p->callgroup = peer->callgroup;
                                p->pickupgroup = peer->pickupgroup;
                                p->capability = peer->capability;