aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-05 19:18:02 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-05 19:18:02 +0000
commita8fb68c1cc4946f3d953b11953c079f3df782899 (patch)
treecc14cefb43cf40d6fa93cb5c4428ca6d5e093073
parenta0eadff5e51fb7eeb3ee8ec69d9ecffb4142cf6a (diff)
Merged revisions 73466 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73466 | file | 2007-07-05 16:15:18 -0300 (Thu, 05 Jul 2007) | 2 lines 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.4@73467 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 9c0c2b1f2..858b37a95 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2719,6 +2719,8 @@ static int create_addr_from_peer(struct sip_pvt *dialog, struct sip_peer *peer)
ast_string_field_set(dialog, fromdomain, peer->fromdomain);
if (!ast_strlen_zero(peer->fromuser))
ast_string_field_set(dialog, fromuser, peer->fromuser);
+ if (!ast_strlen_zero(peer->language))
+ ast_string_field_set(dialog, language, peer->language);
dialog->maxtime = peer->maxms;
dialog->callgroup = peer->callgroup;
dialog->pickupgroup = peer->pickupgroup;