From c36e5da4f59992eeb6aa0eb1a93c336881e0179c Mon Sep 17 00:00:00 2001 From: file Date: Thu, 5 Jul 2007 19:15:18 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/branches/1.2@73466 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_sip.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'channels') diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 10089f7a3..489e64f87 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; -- cgit v1.2.3