Hi Ian,

 Perhaps we could move this discussion to the devel list after this?

 I notice some problems with the MIME being sent:
- The multipart/mixed parts appear a bit messed up. You have a multipart/mixed inside another one, and the inner one declares the same boundaries as the outer one (bad!). You never close the outer one either! Looks like that library is following its own MIME spec! - The last part of the multipart/mixed contains text, but there is no new line between the end of the MIME headers and the start of the body as is required by the MIME spec.

I took the liberty of cleaning up the MIME little bit (attached), and it works perfectly for me.

I have to say that I would struggle greatly if I were required to use only polite words to describe my experiences with Nokia's MMS libraries! Best to test with the OpenWave's, Ericsson's or NowMMS's application.


That said, mmsproxy should never crash, even on bad input. If you can trace the mmsproxy function mm7soap_dispatch() in GDB and tell me where it crashes and why, that would be a great help.

P.

Attachment: t.m
Description: Binary data


On Sep 21, 2005, at 21:49, Ian Cass wrote:

defender:/etc/exim# mmsproxy -v 1 /etc/mbuni/mbuni.conf
2005-09-21 19:35:13 [29055] [0] INFO: Debug_lvl = 1, log_file = <none>,
log_lvl = 0
2005-09-21 19:35:13 [29055] [0]
INFO: ----------------------------------------
2005-09-21 19:35:13 [29055] [0] INFO: Mbuni MMSC Proxy version cvs starting
2005-09-21 19:35:13 [29055] [0] INFO: Added logfile
`/var/log/mbuni/mmsgw.log' with level `0'.
2005-09-21 19:35:13 [29055] [0] INFO: Started access logfile
`/var/log/mbuni/access.log'.
2005-09-21 19:35:13 [29055] [0] INFO: HTTP: Opening server at port 8191. 2005-09-21 19:35:13 [29055] [0] INFO: HTTP: Opening server at port 8888.
2005-09-21 19:35:20 [29060] [4] PANIC: gwlib/octstr.c:2332:
seems_valid_real: Assertion `ostr->size >= 0' failed. (Called from
gwlib/octstr.c:317:octstr_destroy.)
2005-09-21 19:35:20 [29060] [4] PANIC: mmsproxy(gw_panic+0x1a9) [0x808c5f1]
2005-09-21 19:35:20 [29060] [4] PANIC: mmsproxy [0x8094368]
2005-09-21 19:35:20 [29060] [4] PANIC: mmsproxy(octstr_destroy+0x24)
[0x808ef8c]
2005-09-21 19:35:20 [29060] [4] PANIC: mmsproxy [0x8059088]
2005-09-21 19:35:20 [29060] [4] PANIC: mmsproxy [0x8058fbe]
2005-09-21 19:35:20 [29060] [4] PANIC: mmsproxy [0x8081308]
2005-09-21 19:35:20 [29060] [4] PANIC: /lib/libpthread.so.0 [0x40189f3c]
2005-09-21 19:35:20 [29060] [4] PANIC: /lib/libc.so.6(__clone+0x5a)
[0x403e88ba]

This happens when I send MM7 from the Nokia Java MMS API. What further
information should I send?

The MM7 is as follows:-

POST / HTTP/1.1
SOAPAction: ""
Content-Type: multipart/related; type="text/xml";
start="<77B3A6916A96A274A559B184FFD654FB>";
boundary="----=_Part_1_11424570.1127327875468"
User-Agent: Jakarta Commons-HttpClient/2.0rc1
Host: defender:8888
Content-Length: 6768


------=_Part_1_11424570.1127327875468
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <77B3A6916A96A274A559B184FFD654FB>

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/ envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http:// www.w3.org/2
001/XMLSchema-instance">
 <soapenv:Header>
  <ns1:TransactionID soapenv:mustUnderstand="1" xsi:type="xsd:string"
xmlns:ns1="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/ schema/REL
-5-MM
7-1-2">D1859B168E05FB78A3C49CC585A8E067</ns1:TransactionID>
 </soapenv:Header>
 <soapenv:Body>
  <SubmitReq
xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/ schema/REL-5-M
M7-1-2">
   <MM7Version>5.3.0</MM7Version>
   <SenderIdentification>
    <VASPID>mBlox</VASPID>
    <VASID>pictureService</VASID>
    <SenderAddress>
<RFC2822Address displayOnly="false">[EMAIL PROTECTED]</ RFC2822Address>
    </SenderAddress>
   </SenderIdentification>
   <Recipients>
    <To>
     <Number displayOnly="false">447712184854</Number>
    </To>
   </Recipients>
   <MessageClass>Informational</MessageClass>
   <DeliveryReport>false</DeliveryReport>
   <ReadReply>false</ReadReply>
   <Priority>High</Priority>
   <DistributionIndicator>true</DistributionIndicator>
   <Content allowAdaptations="true"
href="cid:11AF5BEEB7835F3721F3E26972ECECF6"/>
  </SubmitReq>
 </soapenv:Body>
</soapenv:Envelope>
------=_Part_1_11424570.1127327875468
Content-Type: multipart/mixed;
        boundary="----=_Part_0_17547166.1127327874968"
Content-Transfer-Encoding: binary
Content-Id: <11AF5BEEB7835F3721F3E26972ECECF6>

------=_Part_0_17547166.1127327874968
Content-Type: multipart/mixed;
        boundary="----=_Part_0_17547166.1127327874968"
Content-Transfer-Encoding: binary
Content-Id: <11AF5BEEB7835F3721F3E26972ECECF6>

------=_Part_0_17547166.1127327874968
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
Content-Location: bridge.jpg
Content-Id: id_1

<snipped some binary content>

------=_Part_0_17547166.1127327874968
Content-Type: text/plain;charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: id_2
Hi! Look at these pictures and unicode chars.
------=_Part_0_17547166.1127327874968--
------=_Part_1_11424570.1127327875468--

--
Ian Cass


_______________________________________________
Users mailing list
Users@mbuni.org
http://mbuni.org/mailman/listinfo/users_mbuni.org


_______________________________________________
Users mailing list
Users@mbuni.org
http://mbuni.org/mailman/listinfo/users_mbuni.org

Reply via email to