diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-05 19:15:18 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-05 19:15:18 +0000 |
commit | c36e5da4f59992eeb6aa0eb1a93c336881e0179c (patch) | |
tree | 14d564e7fdc687386498042d92d481f424af46b1 /channels | |
parent | 515eef00ef210e0ff9f7e2c0509e7adb1f4329ee (diff) |
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
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |