From: Andreas Eversberg Date: Fri, 28 May 2010 06:19:30 +0000 (+0200) Subject: Fix for redirection number. Thanx to Dennis for this bugfix. X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=a498faceb2af635bd8e8c60ef87fe1a1afbd4b1d 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. --- 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;