Fix for redirection number. Thanx to Dennis for this bugfix.
authorAndreas Eversberg <jolly@eversberg.eu>
Fri, 28 May 2010 06:19:30 +0000 (08:19 +0200)
committerAndreas Eversberg <jolly@eversberg.eu>
Fri, 28 May 2010 06:19:30 +0000 (08:19 +0200)
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.

README
chan_lcr.c

diff --git a/README b/README
index 9eef237..75f25b5 100644 (file)
--- 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).
 - 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.
 
 
index 2921b83..ca6b026 100644 (file)
@@ -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])
        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;
        switch (param->setup.callerinfo.present) {
                case INFO_PRESENT_ALLOWED:
                        ast->cid.cid_pres = AST_PRES_ALLOWED;