summaryrefslogtreecommitdiffstats
path: root/chan_lcr.c
diff options
context:
space:
mode:
authorAndreas Eversberg2010-05-28 08:19:30 +0200
committerAndreas Eversberg2010-05-28 08:19:30 +0200
commita498faceb2af635bd8e8c60ef87fe1a1afbd4b1d (patch)
tree9de93f0686ccb5f0c8ee21bbdd5e9371cade35af /chan_lcr.c
parentAdded Progress messages. (receive only) (diff)
downloadlcr-a498faceb2af635bd8e8c60ef87fe1a1afbd4b1d.tar.gz
lcr-a498faceb2af635bd8e8c60ef87fe1a1afbd4b1d.tar.xz
lcr-a498faceb2af635bd8e8c60ef87fe1a1afbd4b1d.zip
Fix for redirection number. Thanx to Dennis for this bugfix.
I changed it a bit, so the redirection number is converted from national/international format into numerical format. (adding prefixes) If there is still a problem with it, let me know.
Diffstat (limited to 'chan_lcr.c')
-rw-r--r--chan_lcr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index 2921b83..ca6b026 100644
--- a/chan_lcr.c
+++ b/chan_lcr.c
@@ -884,7 +884,7 @@ static void lcr_in_setup(struct chan_call *call, int message_type, union paramet
if (param->setup.callerinfo.name[0])
ast->cid.cid_name = strdup(param->setup.callerinfo.name);
if (param->setup.redirinfo.id[0])
- ast->cid.cid_name = strdup(numberrize_callerinfo(param->setup.callerinfo.id, param->setup.callerinfo.ntype, options.national, options.international));
+ ast->cid.cid_rdnis = strdup(numberrize_callerinfo(param->setup.redirinfo.id, param->setup.redirinfo.ntype, options.national, options.international));
switch (param->setup.callerinfo.present) {
case INFO_PRESENT_ALLOWED:
ast->cid.cid_pres = AST_PRES_ALLOWED;