Fixed dialing of national or international number type. (Used for GSM)
authorAndreas Eversberg <jolly@eversberg.eu>
Mon, 4 Jan 2010 18:13:40 +0000 (19:13 +0100)
committerAndreas Eversberg <jolly@eversberg.eu>
Mon, 4 Jan 2010 18:13:40 +0000 (19:13 +0100)
README
apppbx.cpp

diff --git a/README b/README
index 8a33e07..354c912 100644 (file)
--- 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
 
 
index 9dee717..9858207 100644 (file)
@@ -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;