summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg2010-05-28 08:19:30 +0200
committerAndreas Eversberg2010-05-28 08:19:30 +0200
commita498faceb2af635bd8e8c60ef87fe1a1afbd4b1d (patch)
tree9de93f0686ccb5f0c8ee21bbdd5e9371cade35af
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.
-rw-r--r--README2
-rw-r--r--chan_lcr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/README b/README
index 9eef237..75f25b5 100644
--- a/README
+++ b/README
@@ -545,5 +545,5 @@ Changes after Version 1.7
- Fixes a locking bug in chan_lcr. Thanx to WIMPy for that report.
- Fixed forwarding of sending-complete information.
- Added progress messages (receive only).
-
+- Fixed redirection info in chan_lcr. Thanx to Dennis for the fix.
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;