Hello. I'm using current mbuni from CVS to send MMS messages through GPRS modem. Messages are submitted with something like:
curl -s --data "username=x&password=y&to=some_msisdn&from=my_msisdn&subject=Test&dlr-url=my_url&rr-url=my_url&mmsc=play20" --data_url-encode "s...@smilfile" That works pretty well except when message to be sent exceeds size limit set by the carrier. When this occurs operator sets appropriate headers in reply (see log below). In such situation I would expect mbuni to report delivery as failure. However it appears that it reports such message as 'Forwarded' - both for dlr-url and CDR logs. As the result I cannot detect (from the level of dlr-url script) that mbuni failed to send the message and I have to assume that message was sent successfuly. Is there any way to recognize such situations correctly and detect failure from dlr-url script? Log output for example message: 2010-07-20 17:00:56 [20236] [5] INFO: mmsbox_mm1.c:659 <start_gprs> [mmsbox-mm1] [n/a] waiting for connection: 0, pid=25641 cpid=0, ifexited=0, exitstatus=0 2010-07-20 17:01:01 [20236] [5] INFO: mmsbox_mm1.c:379 <handle_mm1> [mmsbox-mm1] [n/a] start_gprs returned PID: 25641 2010-07-20 17:01:31 [20236] [5] INFO: mmsbox_mm1.c:589 <write_octstr_data> [mmsbox-mm1] [n/a] write_data called with nmemn=7 5, size=1 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string at 0x1016ce68: 2010-07-20 17:01:31 [20236] [5] DEBUG: len: 0 2010-07-20 17:01:31 [20236] [5] DEBUG: size: 1024 2010-07-20 17:01:31 [20236] [5] DEBUG: immutable: 0 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string dump ends. 2010-07-20 17:01:31 [20236] [5] DEBUG: Dumping HTTP headers: 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string at 0x10175a30: 2010-07-20 17:01:31 [20236] [5] DEBUG: len: 31 2010-07-20 17:01:31 [20236] [5] DEBUG: size: 1024 2010-07-20 17:01:31 [20236] [5] DEBUG: immutable: 0 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 58 2d 4d 6d 73 2d 4d 65 73 73 61 67 65 2d 54 79 X-Mms-Message-Ty 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 70 65 3a 20 6d 2d 73 65 6e 64 2d 63 6f 6e 66 pe: m-send-conf 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string dump ends. 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string at 0x10185d70: 2010-07-20 17:01:31 [20236] [5] DEBUG: len: 27 2010-07-20 17:01:31 [20236] [5] DEBUG: size: 1024 2010-07-20 17:01:31 [20236] [5] DEBUG: immutable: 0 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 58 2d 4d 6d 73 2d 54 72 61 6e 73 61 63 74 69 6f X-Mms-Transactio 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 6e 2d 49 64 3a 20 30 30 30 30 31 n-Id: 00001 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string dump ends. 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string at 0x10186920: 2010-07-20 17:01:31 [20236] [5] DEBUG: len: 22 2010-07-20 17:01:31 [20236] [5] DEBUG: size: 1024 2010-07-20 17:01:31 [20236] [5] DEBUG: immutable: 0 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 58 2d 4d 6d 73 2d 4d 4d 53 2d 56 65 72 73 69 6f X-Mms-MMS-Versio 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 6e 3a 20 31 2e 30 n: 1.0 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string dump ends. 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string at 0x10172020: 2010-07-20 17:01:31 [20236] [5] DEBUG: len: 43 2010-07-20 17:01:31 [20236] [5] DEBUG: size: 1024 2010-07-20 17:01:31 [20236] [5] DEBUG: immutable: 0 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 58 2d 4d 6d 73 2d 52 65 73 70 6f 6e 73 65 2d 53 X-Mms-Response-S 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 74 61 74 75 73 3a 20 45 72 72 6f 72 2d 73 65 72 tatus: Error-ser 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 76 69 63 65 2d 64 65 6e 69 65 64 vice-denied 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string dump ends. 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string at 0x10175a48: 2010-07-20 17:01:31 [20236] [5] DEBUG: len: 44 2010-07-20 17:01:31 [20236] [5] DEBUG: size: 1024 2010-07-20 17:01:31 [20236] [5] DEBUG: immutable: 0 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 58 2d 4d 6d 73 2d 52 65 73 70 6f 6e 73 65 2d 54 X-Mms-Response-T 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 65 78 74 3a 20 4d 65 73 73 61 67 65 20 6f 76 65 ext: Message ove 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 72 20 73 69 7a 65 20 6c 69 6d 69 74 r size limit 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string dump ends. 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string at 0x101733d8: 2010-07-20 17:01:31 [20236] [5] DEBUG: len: 47 2010-07-20 17:01:31 [20236] [5] DEBUG: size: 1024 2010-07-20 17:01:31 [20236] [5] DEBUG: immutable: 0 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 4d 65 73 73 61 67 65 2d 49 44 3a 20 67 62 75 76 Message-ID: gbuv 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 68 62 61 62 76 72 30 65 31 35 32 40 77 2e 6d 6d hbabvr0e...@w.mm 2010-07-20 17:01:31 [20236] [5] DEBUG: data: 73 2e 70 6c 61 79 6d 6f 62 69 6c 65 2e 70 6c s.playmobile.pl 2010-07-20 17:01:31 [20236] [5] DEBUG: Octet string dump ends. 2010-07-20 17:01:31 [20236] [5] DEBUG: End of dump. 2010-07-20 17:01:31 [20236] [5] DEBUG: Dumping MMS message body (not multipart) [0 parts] --> 2010-07-20 17:01:31 [20236] [12] INFO: mmsbox_mm1.c:345 <send_msg> [mmsbox-mm1] [n/a] sent message, type=m-send-req, result= (none) 2010-07-20 17:01:31 [20236] [5] INFO: mmsbox_mm1.c:524 <handle_mm1> [mmsbox-mm1] [n/a] GPRS turned off returned: -1 2010-07-20 17:01:32 [20236] [12] INFO: bearerbox.c:1519 <sendMsg> [MM7] [n/a] Sent MMSBox Outgoing Queue MMS Send: From +485 31531ABC, to +48501006XYZ/TYPE=PLMN, msgsize=327811: msgid=[gbuvhbabvr0e...@w.mms.playmobile.pl] 2010-07-20 17:01:34 [20236] [0] DEBUG: Queued to thread 1 for /var/spool/mbuni/mmsbox_incoming/qf8091.6.x236.49, sendt=0, tn ow=1279638094 2010-07-20 17:01:34 [20236] [18] DEBUG: Parsing URL `http://uglyrabbit/gwsupport/mbuni_notify_ng.php': 2010-07-20 17:01:34 [20236] [18] DEBUG: Scheme: http:// 2010-07-20 17:01:34 [20236] [18] DEBUG: Host: uglyrabbit 2010-07-20 17:01:34 [20236] [18] DEBUG: Port: 80 2010-07-20 17:01:34 [20236] [18] DEBUG: Username: (null) 2010-07-20 17:01:34 [20236] [18] DEBUG: Password: (null) 2010-07-20 17:01:34 [20236] [18] DEBUG: Path: /gwsupport/mbuni_notify_ng.php 2010-07-20 17:01:34 [20236] [18] DEBUG: Query: (null) 2010-07-20 17:01:34 [20236] [18] DEBUG: Fragment: (null) 2010-07-20 17:01:34 [20236] [18] DEBUG: HTTP: Opening connection to `uglyrabbit:80' (fd=45). 2010-07-20 17:01:34 [20236] [18] DEBUG: Socket connecting 2010-07-20 17:01:34 [20236] [17] DEBUG: Get info about connecting socket 2010-07-20 17:01:34 [20236] [17] DEBUG: HTTP: Sending request: 2010-07-20 17:01:34 [20236] [17] DEBUG: Octet string at 0x10174148: 2010-07-20 17:01:34 [20236] [17] DEBUG: len: 341 2010-07-20 17:01:34 [20236] [17] DEBUG: size: 1024 2010-07-20 17:01:34 [20236] [17] DEBUG: immutable: 0 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 47 45 54 20 2f 67 77 73 75 70 70 6f 72 74 2f 6d GET /gwsupport/m 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 62 75 6e 69 5f 6e 6f 74 69 66 79 5f 6e 67 2e 70 buni_notify_ng.p 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 68 70 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 hp HTTP/1.1..Hos 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 74 3a 20 75 67 6c 79 72 61 62 62 69 74 0d 0a 43 t: uglyrabbit..C 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d onnection: keep- 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 61 6c 69 76 65 0d 0a 58 2d 4d 62 75 6e 69 2d 52 alive..X-Mbuni-R 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 65 70 6f 72 74 2d 54 79 70 65 3a 20 64 65 6c 69 eport-Type: deli 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 76 65 72 79 2d 72 65 70 6f 72 74 0d 0a 58 2d 4d very-report..X-M 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 62 75 6e 69 2d 4d 4d 2d 53 74 61 74 75 73 3a 20 buni-MM-Status: 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 46 6f 72 77 61 72 64 65 64 0d 0a 58 2d 4d 62 75 Forwarded..X-Mbu 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 6e 69 2d 4d 4d 53 43 2d 47 49 44 3a 20 70 6c 61 ni-MMSC-GID: pla 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 79 32 30 0d 0a 58 2d 4d 62 75 6e 69 2d 4d 4d 53 y20..X-Mbuni-MMS 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 43 2d 49 44 3a 20 70 6c 61 79 32 30 0d 0a 58 2d C-ID: play20..X- 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 4d 62 75 6e 69 2d 46 72 6f 6d 3a 20 2b 34 38 35 Mbuni-From: +485 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 33 31 35 33 31 31 39 38 0d 0a 58 2d 4d 62 75 6e 31531ABC..X-Mbun 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 69 2d 54 72 61 6e 73 61 63 74 69 6f 6e 49 44 3a i-TransactionID: 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 20 4d 62 75 6e 69 2d 6d 73 67 2e 38 30 34 34 2e Mbuni-msg.8044. 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 78 31 2e 33 36 2e 34 38 0d 0a 58 2d 4d 62 75 6e x1.36.48..X-Mbun 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 69 2d 4d 65 73 73 61 67 65 2d 49 44 3a 20 67 62 i-Message-ID: gb 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 75 76 68 62 61 62 76 72 30 65 31 35 32 40 77 2e uvhbabvr0e...@w. 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 6d 6d 73 2e 70 6c 61 79 6d 6f 62 69 6c 65 2e 70 mms.playmobile.p 2010-07-20 17:01:34 [20236] [17] DEBUG: data: 6c 0d 0a 0d 0a l.... 2010-07-20 17:01:34 [20236] [17] DEBUG: Octet string dump ends. _______________________________________________ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users