summaryrefslogtreecommitdiffstats
path: root/apppbx.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg2010-01-04 19:13:40 +0100
committerAndreas Eversberg2010-01-04 19:13:40 +0100
commita1fb92f493ca32f5b4a4fe70ec691285bd314bd6 (patch)
tree13e027920bbb2d21da653e145d5c9b8d60891d0f /apppbx.cpp
parentA fix belonging to the last commit. (diff)
downloadlcr-a1fb92f493ca32f5b4a4fe70ec691285bd314bd6.tar.gz
lcr-a1fb92f493ca32f5b4a4fe70ec691285bd314bd6.tar.xz
lcr-a1fb92f493ca32f5b4a4fe70ec691285bd314bd6.zip
Fixed dialing of national or international number type. (Used for GSM)
Diffstat (limited to 'apppbx.cpp')
-rw-r--r--apppbx.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/apppbx.cpp b/apppbx.cpp
index 9dee717..9858207 100644
--- a/apppbx.cpp
+++ b/apppbx.cpp
@@ -1435,6 +1435,11 @@ void EndpointAppPBX::port_setup(struct port_list *portlist, int message_type, un
memcpy(&e_dialinginfo, &param->setup.dialinginfo, sizeof(e_dialinginfo));
memcpy(&e_redirinfo, &param->setup.redirinfo, sizeof(e_redirinfo));
memcpy(&e_capainfo, &param->setup.capainfo, sizeof(e_capainfo));
+
+ /* convert (inter-)national number type */
+ SCPY(e_dialinginfo.id, numberrize_callerinfo(e_dialinginfo.id, e_dialinginfo.ntype, options.national, options.international));
+ e_dialinginfo.ntype = INFO_NTYPE_UNKNOWN;
+
// e_dtmf = param->setup.dtmf;
/* screen incoming caller id */
interface = interface_first;