|
From: Barak S. <bar...@gm...> - 2016-05-08 05:25:35
|
this is the function:
static CLIStatus sendsms(int argc, char** argv, ostream& os)
{
if (argc<4) return BAD_NUM_ARGS;
char *IMSI = argv[1];
char *srcAddr = argv[2];
string rest = "";
for (int i=3; i<argc; i++) rest = rest + argv[i] + " ";
if (!isIMSI(IMSI)) {
os << "Invalid IMSI. Enter 15 digits only.";
return BAD_VALUE;
}
// We just use the IMSI, dont try to find a tmsi.
FullMobileId msid(IMSI);
Control::TranEntry *tran = Control::TranEntry::newMTSMS(
NULL, // No SIPDialog
msid,
GSM::L3CallingPartyBCDNumber(srcAddr),
rest, // message body
string("application/vnd.3gpp.sms")); // message content type
Control::gMMLayer.mmAddMT(tran);
os << "message submitted for delivery" << endl;
return SUCCESS;
}
and when i try to send, nothing happened.
any suggestions?
On Thu, May 5, 2016 at 6:13 PM, Harvind Samra <ha...@ra...>
wrote:
> In your code I see "pplication/vnd.3gpp.sms”….I think you have a typo. :)
>
>
> Harvind Samra
> Founder, CTO
> Range Networks
>
>
> <http://www.rangenetworks.com/>
>
>
>
>
>
>
>
>
> * <http://www.rangenetworks.com/> <http://www.rangenetworks.com/>
> <http://www.rangenetworks.com/> <http://www.rangenetworks.com/>
> <http://www.rangenetworks.com/> <http://www.rangenetworks.com/>
> <http://www.rangenetworks.com/> LinkedIn
> <https://www.linkedin.com/company/range-networks> | Facebook
> <https://www.facebook.com/RangeNetworks> | Twitter
> <https://twitter.com/RangeNetworks> | Jobs
> <http://www.rangenetworks.com/#!careers/cd2h> | #RangeNetworks #OpenBTS
> ____________________________________________ Cellular networks made simple
> and affordable. http://www.rangenetworks.com
> <http://www.rangenetworks.com/>
> ____________________________________________ *
>
> On May 5, 2016, at 5:56 AM, Barak Sigmabit <bar...@gm...>
> wrote:
>
> this is without any changes.
> how do you recommend to send the 3gpp?
> i tried in the sendsms func to change the content type to
> "application/vnd.3gpp.sms"
>
> On Thu, May 5, 2016 at 3:12 PM, Michael Iedema <
> mic...@ra...> wrote:
>
>> Please also reply to the list so everyone stays in the loop.
>>
>> Have you tried sending one using an unmodified OpenBTS?
>>
>>
>> > On May 5, 2016, at 1:57 PM, Barak Sigmabit <bar...@gm...>
>> wrote:
>> >
>> > hi,
>> > i update my local copy and try again to send an 3gpp message.
>> > but with no success.
>> > i wondering if i do it the right way?
>> > in the func that send i wrote:
>> > Control::TranEntry *tran = Control::TranEntry::newMTSMS(
>> > NULL, // No SIPDialog
>> > msid,
>> > GSM::L3CallingPartyBCDNumber(srcAddr),
>> > body_stream.str().data(),
>> > string("pplication/vnd.3gpp.sms")); // message
>> content type
>> >
>> > Control::gMMLayer.mmAddMT(tran);
>> >
>> >
>> > is that correct?
>> >
>> > thank you for your help
>> >
>> > On Thu, May 5, 2016 at 11:31 AM, Michael Iedema <
>> mic...@ra...> wrote:
>> > I’ve pushed the fix here:
>> > -
>> https://github.com/RangeNetworks/smqueue/commit/e6bcb06215f86dd7dcf47d0f2b9c5d072cf35164
>> >
>> > Just to confirm, to use 3gpp mode, the following config keys need to be
>> set:
>> >
>> > OpenBTS : SMS.MIMEType : application/vnd.3gpp
>> > OpenBTS : SIP.SMSC : smsc
>> >
>> > Update your local copy’s master branch and it should be good to go. Let
>> me know if this resolves things.
>> >
>> > Regards,
>> > -Michael
>> >
>> >
>> > > On May 5, 2016, at 9:39 AM, Barak Baa <bar...@wa...> wrote:
>> > >
>> > > thanks for your help.
>> > > i hope it will work
>> > >
>> > > ב מאי 5, 2016 0:15, Michael Iedema כתב:
>> > > Hi all,
>> > >
>> > > Thanks for the report on 3gpp mode. It looks like we have a fix which
>> I can push tomorrow after a bit more testing.
>> > >
>> > > Regards,
>> > > -Michael
>> > >
>> > > On May 4, 2016, at 3:58 PM, Christophe Boutin <
>> cb...@gl...> wrote:
>> > >
>> > >> Hi Barak,
>> > >>
>> > >> There is a bug in 5.0 with the 3gpp. It works only with plain/text.
>> > >>
>> > >> In my memory, i think it works with 4.0 but not sure.
>> > >>
>> > >> Regards,
>> > >>
>> > >> --
>> > >> Christophe Boutin
>> > >> www.globaltel-spm.com
>> > >>
>> > >> 2016-05-04 5:04 GMT-02:00 Barak Sigmabit <bar...@gm...>:
>> > >> I am trying to send SMS type application/vnd.3gpp.sms, but with out
>> success.
>> > >> is it possible?
>> > >> thanks.
>> > >>
>> > >>
>> ------------------------------------------------------------------------------
>> > >> Find and fix application performance issues faster with Applications
>> Manager
>> > >> Applications Manager provides deep performance insights into
>> multiple tiers of
>> > >> your business applications. It resolves application problems quickly
>> and
>> > >> reduces your MTTR. Get your free trial!
>> > >> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> > >> _______________________________________________
>> > >> Openbts-discuss mailing list
>> > >> Ope...@li...
>> > >> https://lists.sourceforge.net/lists/listinfo/openbts-discuss
>> > >>
>> > >>
>> > >>
>> ------------------------------------------------------------------------------
>> > >> Find and fix application performance issues faster with Applications
>> Manager
>> > >> Applications Manager provides deep performance insights into
>> multiple tiers of
>> > >> your business applications. It resolves application problems quickly
>> and
>> > >> reduces your MTTR. Get your free trial!
>> > >> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> > >> _______________________________________________
>> > >> Openbts-discuss mailing list
>> > >> Ope...@li...
>> > >> https://lists.sourceforge.net/lists/listinfo/openbts-discuss
>> > >
>> > >
>> ------------------------------------------------------------------------------
>> > > Find and fix application performance issues faster with Applications
>> Manager
>> > > Applications Manager provides deep performance insights into multiple
>> tiers of
>> > > your business applications. It resolves application problems quickly
>> and
>> > > reduces your MTTR. Get your free trial!
>> > > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> > >
>> > >
>> > > _______________________________________________
>> > > Openbts-discuss mailing list
>> > > Ope...@li...
>> > > https://lists.sourceforge.net/lists/listinfo/openbts-discuss
>> > >
>> > >
>> > >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Find and fix application performance issues faster with Applications
>> Manager
>> > Applications Manager provides deep performance insights into multiple
>> tiers of
>> > your business applications. It resolves application problems quickly and
>> > reduces your MTTR. Get your free trial!
>> > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> > _______________________________________________
>> > Openbts-discuss mailing list
>> > Ope...@li...
>> > https://lists.sourceforge.net/lists/listinfo/openbts-discuss
>> >
>>
>>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
>
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
> Openbts-discuss mailing list
> Ope...@li...
> https://lists.sourceforge.net/lists/listinfo/openbts-discuss
>
>
>
|