Hi all,

I'm new to Mbuni and I'm trying to set it up as a VAS Gateway. I have mmsbox
running and connected to a local mmsc (also using Mbuni). When I try sending
messages using the mmsbox I get a "Message format corrupt" error. The
messages never even get pushed to the mmsc because of the error.

This is how I send a test message

http://localhost:12345/?username=mbuni&password=test&from=110121&to=123459795&subject=test&text=testmessage

The full XML response I receive is as follows:

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/
">
<SOAP-ENV:Header>
<mm7:TransactionID
xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2
" SOAP-ENV:mustUnderstand="1">0000</mm7:TransactionID>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Server error</faultstring>
<detail>
<mm7:RSErrorRsp xmlns:mm7="
http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2";>
<mm7:MM7Version>5.3.0</mm7:MM7Version>
<mm7:Status>
<mm7:StatusCode>2007</mm7:StatusCode>
<mm7:StatusText>Message format corrupt</mm7:StatusText>
</mm7:Status>
</mm7:RSErrorRsp>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I looked at the trace of mmsbox, which showed the following immediately
after the octet dump:

2007-06-20 08:53:17 [6904] [3] DEBUG: Octet string dump ends.
2007-06-20 08:53:17 [6904] [3] DEBUG:  --> Enterred mm7dispatch interface,
mreq=Null mtype = Null <--
2007-06-20 08:53:17 [6904] [3] DEBUG: HTTP: Resetting HTTPClient for
`192.168.1.104'.
2007-06-20 08:53:17 [6904] [3] DEBUG:  --> leaving mm7dispatch interface,
mresp=ok, body=ok, mm7_status=1000 <--
2007-06-20 08:53:17 [6904] [3] DEBUG:  entered free_clientinfo 0,
ip=135625184
2007-06-20 08:53:17 [6904] [3] DEBUG:  left free_clientinfo
2007-06-20 08:54:17 [6904] [1] DEBUG: Timeout for fd:38 appeares.
2007-06-20 08:54:17 [6904] [1] DEBUG: HTTP: Destroying HTTPClient area
0x8158038.
2007-06-20 08:54:17 [6904] [1] DEBUG: HTTP: Destroying HTTPClient for
`192.168.1.104'.

I followed up by looking up mreq in the source code. The relevant code I
found in bearerbox.c is as follows:

if (h->body)
     mreq = mm7_parse_soap(h->headers, h->body);
if (mreq)
     msgtype = mms_mm7tag_to_cstr(mm7_msgtype(mreq));
debug("mmsbox.mm7sendinterface", 0,
      " --> Enterred mm7dispatch interface, mreq=%s mtype = %s <-- ",
      mreq ? "Ok" : "Null",
      mreq ? (char *)msgtype : "Null");

if (!mreq) {
     mresp = mm7_make_resp(NULL, MM7_SOAP_FORMAT_CORRUPT, NULL);
     goto done;
}

I suppose this means some kind of error occurs during the parsing of my
request. According to the documentation the sendmms service can be invoked
using GET/POST and using both x-www-form-urlencoded and multipart/form-data.
I don't understand why this should happen though since it is being passed
through a normal GET with multipart/form-data encoding.

Can anyone help me out in any way with this problem?

Thanks,

Nii.
<http://localhost:12345/mmssend?username=blah&password=blah&from=999&to=xxxxx&text=testmessage&vasid=blah>
_______________________________________________
Users mailing list
[email protected]
http://lists.mbuni.org/mailman/listinfo/users

Reply via email to