diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-27 04:05:29 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-27 04:05:29 +0800 |
commit | 44d0f197873a9d79b89c524612f20d2e63ab28c9 (patch) | |
tree | e5b09e77e072b7eadcdd18131817e608c6408b85 /openbsc/src | |
parent | 68d26796ca2b01ff7b7704c952b5f43bf9989d7b (diff) |
gsm_04_80: Embed a ss_Code inside the NotifySS-ARG...
Indicate that this is about the Call Name Presentation (cnap)
but the a1200 still ignores the call completelty...
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/gsm_04_80.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/openbsc/src/gsm_04_80.c b/openbsc/src/gsm_04_80.c index a49c8b565..4173aded6 100644 --- a/openbsc/src/gsm_04_80.c +++ b/openbsc/src/gsm_04_80.c @@ -263,6 +263,12 @@ struct msgb *gsm0480_create_notifySS(const char *text) msgb_put_u8(msg, GSM_0480_SEQUENCE_TAG); seq_len_ptr = msgb_put(msg, 1); + /* ss_code for CNAP { */ + msgb_put_u8(msg, 0x81); + msgb_put_u8(msg, 1); + msgb_put_u8(msg, 0x19); + /* } ss_code */ + /* nameIndicator { */ msgb_put_u8(msg, 0xB4); @@ -303,7 +309,7 @@ struct msgb *gsm0480_create_notifySS(const char *text) /* ); nameIndicator */ /* write the lengths... */ - seq_len_ptr[0] = nam_len_ptr[0] + 2; + seq_len_ptr[0] = 3 + nam_len_ptr[0] + 2; return msg; } |