set sm-rp-oa in gsm411_sms.c

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

ondra2000 at centrum.cz ondra2000 at centrum.cz
Wed Feb 22 15:22:42 UTC 2012


Thanks for reply! So if my originating address is for example 0xAAAAAAAAh (complete sm-rp-OA with NPI,TON etc.) then into the c file I only put:

 data = (uint8_t *)msgb_put(msg, 1);
 data[0] = 0xAAAAAAAA; /* originator address*/

Am I right?

Thanks 
Andrew
______________________________________________________________
> Od: "Tobias Engel" <t-osmocombb at tobias.org>
> Komu: <baseband-devel at lists.osmocom.org>
> Datum: 22.02.2012 14:30
> Předmět: Re: set sm-rp-oa in gsm411_sms.c
>
>Hi Andrew,
>
>> I need to set originating address in MO SMS (SM submit, SM-RP-OA field)... I found this field in src/host/layer23/src/mobile/gsm411_sms.c -->
>> 
>>  /* no orig Address */
>> data = (uint8_t *)msgb_put(msg, 1);
>> data[0] = 0x00; /* originator length == 0 */
>> 
>> Field has 0 length. Can anybody pleas help me how to set this field to some MSISDN...I know that there must be some fields for TON,NPI, number ... but I don't know how to write these fields into source code...
>> With this change i want to find out how MSC behave when is field SM-RP-OA set to some real MSISDN.
>
>the coding of the originator address element is specified in 3GPP TS
>24.011 8.2.5.1 and the TON/NPI fields in 3GPP TS 24.008 10.5.4.7.
>
>Let us know what you find out :)
>
>-Tobias
>
>




More information about the baseband-devel mailing list