From: Joshua Colp Date: Thu, 5 Jul 2007 19:15:18 +0000 (+0000) Subject: Copy language information to the dialog structure when calling a peer for situations... X-Git-Tag: 1.2.21~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b2c98ac3e4ed95d34910e02cc0bcdc0c82a6924;p=thirdparty%2Fasterisk.git Copy language information to the dialog structure when calling a peer for situations where a PBX may be started on the dialed channel. (issue #10121 reported by clegall_proformatique) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73466 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 10089f7a3b..489e64f87c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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;