]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Copy language information to the dialog structure when calling a peer for situations...
authorJoshua Colp <jcolp@digium.com>
Thu, 5 Jul 2007 19:15:18 +0000 (19:15 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 5 Jul 2007 19:15:18 +0000 (19:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73466 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 10089f7a3b240dd600e7e8dd5cae318590719b0c..489e64f87c3a8b2bc3eb02c56d729285b0ed5a1c 100644 (file)
@@ -1915,6 +1915,8 @@ static int create_addr_from_peer(struct sip_pvt *r, struct sip_peer *peer)
                ast_copy_string(r->fromdomain, peer->fromdomain, sizeof(r->fromdomain));
        if (!ast_strlen_zero(peer->fromuser))
                ast_copy_string(r->fromuser, peer->fromuser, sizeof(r->fromuser));
+       if (!ast_strlen_zero(peer->language))
+               ast_copy_string(r->language, peer->language, sizeof(r->language));
        r->maxtime = peer->maxms;
        r->callgroup = peer->callgroup;
        r->pickupgroup = peer->pickupgroup;