From a1fb92f493ca32f5b4a4fe70ec691285bd314bd6 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Mon, 4 Jan 2010 19:13:40 +0100 Subject: [PATCH] Fixed dialing of national or international number type. (Used for GSM) --- README | 1 + apppbx.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README b/README index 8a33e07..354c912 100644 --- a/README +++ b/README @@ -525,5 +525,6 @@ Changes after Version 1.6 - Added Keypad facility -> New option for chan_lcr: 'k' -> New dialing parameter for LCR: keypad +- Keep up with current OpenBSC API 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, ¶m->setup.dialinginfo, sizeof(e_dialinginfo)); memcpy(&e_redirinfo, ¶m->setup.redirinfo, sizeof(e_redirinfo)); memcpy(&e_capainfo, ¶m->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; -- 2.13.6