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