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
1.2
Joshua Colp 18 years ago
parent e32e830419
commit 0b2c98ac3e

@ -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;

Loading…
Cancel
Save