summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg2010-09-20 08:18:13 +0200
committerAndreas Eversberg2010-09-20 08:18:13 +0200
commit0f73f3b384dc9fc57daf694279d6f57ad4d948d5 (patch)
tree98e229ce790be202a53d9bda9adb4df24ccb8255
parentRemoved debugging output from chan_lcr (diff)
downloadlcr-0f73f3b384dc9fc57daf694279d6f57ad4d948d5.tar.gz
lcr-0f73f3b384dc9fc57daf694279d6f57ad4d948d5.tar.xz
lcr-0f73f3b384dc9fc57daf694279d6f57ad4d948d5.zip
Fixed numbering plan in GSM MS support
-rw-r--r--gsm_ms.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/gsm_ms.cpp b/gsm_ms.cpp
index 2e6299f..f8541fa 100644
--- a/gsm_ms.cpp
+++ b/gsm_ms.cpp
@@ -585,13 +585,10 @@ void Pgsm_ms::message_setup(unsigned int epoint_id, int message_id, union parame
}
/* dialing information (mandatory) */
mncc->fields |= MNCC_F_CALLED;
- if (!strncmp(p_dialinginfo.id, "imsi-", 5)) {
- SCPY(mncc->imsi, p_dialinginfo.id+5);
- add_trace("dialing", "imsi", "%s", mncc->imsi);
- } else {
- SCPY(mncc->called.number, p_dialinginfo.id);
- add_trace("dialing", "number", "%s", mncc->called.number);
- }
+ mncc->called.type = 0; /* unknown */
+ mncc->called.plan = 1; /* isdn */
+ SCPY(mncc->called.number, p_dialinginfo.id);
+ add_trace("dialing", "number", "%s", mncc->called.number);
/* bearer capability (mandatory) */
mncc->fields |= MNCC_F_BEARER_CAP;