Just a suggestion,
Check ip and port you are using is globally accessible.
As I think hostname = localhost  will not going to work
and according to your configuration ,you should open the port 1981 for
outside access.

On Sat, Jan 16, 2010 at 10:03 AM, nshinka kaputu <nshin...@gmail.com> wrote:

> Hi,
>
> Am so so new to Mbuni... I successfully installed both kannel and mbuni and
> am able to use kannel with no problems.
> However am not having any success with using mbuni. what am trying to
> achieve is only to be able to receive MMS messages and process the attached
> images only. From the logs i can see kannel receiving the wap push sms to
> download the incoming mms and i can also see mbuni trying to fetch the mms,
> but it's not being fetched. i serously don't know what am doing wrong and
> need help here. See  below my config files and the mmsbox log:
>
>
> MMSBOX LOG:
>
> 2010-01-16 05:05:19 [11770] [0] DEBUG: Started thread 18
> (mmsproxy.c:(gwthread_func_t *)fetchmms_proxy)
> 2010-01-16 05:05:19 [11770] [18] DEBUG: Thread 18
> (mmsproxy.c:(gwthread_func_t *)fetchmms_proxy) maps to pid 11770.
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  ---> Entered fetch interface:
> url=/ <---
> 2010-01-16 05:05:19 [11770] [18] DEBUG: Dumping profile for
> Kannel/cvs-20080727
> 2010-01-16 05:05:19 [11770] [18] DEBUG: MaxMsgSize: 102400
> 2010-01-16 05:05:19 [11770] [18] DEBUG: MaxRes: 640x480
> 2010-01-16 05:05:19 [11770] [18] DEBUG: Accept content:
> 2010-01-16 05:05:19 [11770] [18] DEBUG: Accept encodings:
> 2010-01-16 05:05:19 [11770] [18] DEBUG: Accept language:
> 2010-01-16 05:05:19 [11770] [18] DEBUG: Accept charset:
> 2010-01-16 05:05:19 [11770] [18] DEBUG: Mms Version: 1.0,
> 2010-01-16 05:05:19 [11770] [18] ERROR: mmsproxy.c:257 <fetchmms_proxy>
> [MM1] [n/a] MMS Fetch interface: failed to find envelope/data  for request
> url (/) from 127.0.0.1 (e=not found)!
> 2010-01-16 05:05:19 [11770] [18] DEBUG: WSP: Mapping `text/plain', WSP 1.2
> to 0x0003.
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  $$$$$$ fetch message [fail]
> replying with [type=m-retrieve-conf,content_len=91]:
> 2010-01-16 05:05:19 [11770] [18] DEBUG: Dumping HTTP headers:
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string at 0x9b90478:
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    len:  35
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    size: 1024
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    immutable: 0
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 58 2d 4d 6d 73 2d 4d 65 73
> 73 61 67 65 2d 54 79   X-Mms-Message-Ty
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 70 65 3a 20 6d 2d 72 65 74
> 72 69 65 76 65 2d 63   pe: m-retrieve-c
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 6f 6e
> 66                                          onf
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string dump ends.
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string at 0x9b90de0:
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    len:  22
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    size: 1024
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    immutable: 0
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 58 2d 4d 6d 73 2d 4d 4d 53
> 2d 56 65 72 73 69 6f   X-Mms-MMS-Versio
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 6e 3a 20 31 2e
> 30                                 n: 1.0
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string dump ends.
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string at 0x9b900f0:
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    len:  35
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    size: 1024
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    immutable: 0
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 44 61 74 65 3a 20 53 61 74
> 2c 20 31 36 20 4a 61   Date: Sat, 16 Ja
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 6e 20 32 30 31 30 20 30 33
> 3a 30 35 3a 31 39 20   n 2010 03:05:19
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 47 4d
> 54                                          GMT
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string dump ends.
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string at 0x9b90140:
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    len:  56
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    size: 1024
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    immutable: 0
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 58 2d 4d 6d 73 2d 52 65 74
> 72 69 65 76 65 2d 53   X-Mms-Retrieve-S
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 74 61 74 75 73 3a 20 45 72
> 72 6f 72 2d 70 65 72   tatus: Error-per
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 6d 61 6e 65 6e 74 2d 6d 65
> 73 73 61 67 65 2d 6e   manent-message-n
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 6f 74 2d 66 6f 75 6e
> 64                           ot-found
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string dump ends.
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string at 0x9b909d8:
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    len:  54
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    size: 1024
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    immutable: 0
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 58 2d 4d 6d 73 2d 52 65 74
> 72 69 65 76 65 2d 54   X-Mms-Retrieve-T
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 65 78 74 3a 20 45 72 72 6f
> 72 2d 70 65 72 6d 61   ext: Error-perma
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 6e 65 6e 74 2d 6d 65 73 73
> 61 67 65 2d 6e 6f 74   nent-message-not
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 2d 66 6f 75 6e
> 64                                 -found
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string dump ends.
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string at 0x9b909f0:
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    len:  27
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    size: 1024
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    immutable: 0
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 46 72 6f 6d 3a 20 73 79 73
> 74 65 6d 2d 75 73 65   From: system-use
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 72 40 6c 6f 63 61 6c 68 6f
> 73 74                  r...@localhost
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string dump ends.
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string at 0x9b90158:
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    len:  24
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    size: 1024
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    immutable: 0
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 43 6f 6e 74 65 6e 74 2d 54
> 79 70 65 3a 20 74 65   Content-Type: te
> 2010-01-16 05:05:19 [11770] [18] DEBUG:    data: 78 74 2f 70 6c 61 69
> 6e                           xt/plain
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  Octet string dump ends.
> 2010-01-16 05:05:19 [11770] [18] DEBUG: End of dump.
> 2010-01-16 05:05:19 [11770] [18] DEBUG: Dumping MMS message body (not
> multipart) [0 parts] -->
> 2010-01-16 05:05:19 [11770] [18] DEBUG: HTTP: Resetting HTTPClient for
> `127.0.0.1'.
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  entered free_clientinfo 1,
> ip=163115672
> 2010-01-16 05:05:19 [11770] [18] DEBUG:  left free_clientinfo
> 2010-01-16 05:05:19 [11770] [18] DEBUG: Thread 18
> (mmsproxy.c:(gwthread_func_t *)fetchmms_proxy) terminates.
> 2010-01-16 05:06:19 [11770] [4] DEBUG: Timeout for fd:42 appeares.
> 2010-01-16 05:06:19 [11770] [4] DEBUG: HTTP: Destroying HTTPClient area
> 0x9b90d60.
> 2010-01-16 05:06:19 [11770] [4] DEBUG: HTTP: Destroying HTTPClient for
> `127.0.0.1'.
>
>
> MBUNI:
>
> group = core
> log-file = /var/log/mmsbox.log
> access-log = /var/log/mmsbox-access.log
> log-level = 0
>
> group = mbuni
> storage-directory = /var/spool/mbuni
> hostname = localhost
> host-alias = mmsc
> max-send-threads = 5
> maximum-send-attempts = 50
> default-message-expiry = 360000
> queue-run-interval = 5
> send-attempt-back-off = 300
> sendmms-port = 10001
> #storage-directory = /mysnipads
> allow-ip = *.*.*.*
> sendsms-username = <my username>
> sendsms-password = <my password>
> mms-port = 1981
> mm7-port = 19052
> sendsms-url = http://localhost:13013/cgi-bin/sendsms
> #optimize-notification-size=true
> #content-adaptation = true
> #notify-unprovisioned = yes
> #mms-notify-text = "You have received a multimedia message."
>
> group = mmsc
> id = modem
> #mmsc-url = http://10.150.0.130/servlets/mms
> type = custom
> custom-settings = "smsc-on=lynx -dump'
> http://localhost:13033/start-smsc?password=bar&smsc=at';smsc-off=lynx<http://localhost:13033/start-smsc?password=bar&smsc=at%27;smsc-off=lynx>-dump'
> http://localhost:13033/stop-smsc?password=bar&smsc=at';gprs-on=pppd<http://localhost:13033/stop-smsc?password=bar&smsc=at%27;gprs-on=pppd>call
>  gprs;gprs-pid=cat/var/run/ppp0.pid|head -1;port=1981;mmsc-url=
> http://10.150.0.130/servlets/mms;proxy=10.150.0.140:8080;msisdn=260XXXXXX";
> mmsc-library = /usr/local/lib/libmmsbox_mm1.so
>
>
> group = mms-service
> name = mysnipads
> post-url = http://localhost/mysnipads/mmsreceive.php
> catch-all = true
> http-post-parameters = MMSFile[]=%i&MMSText[]=%t&MMSFrom=%k
> accept-x-mbuni-headers = true
> #pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
> keyword = default
> #omit-empty = no
> suppress-reply = true
> #service-code = regular
>
> group = mms-service
> name = fullmessage
> get-url = http://localhost/images/apache_pb.gif
> # http-post-parameters = fx=true&image=%i&text=%t
> accept-x-mbuni-headers = true
> keyword = thixs
>
> group = send-mms-user
> username = tester
> password = foobar
> faked-sender = 100
>
>
> KANNEL:
> include = /usr/share/doc/kannel/examples/modems.conf
>
> group = core
> admin-port = 13033
> smsbox-port = 13011
> wapbox-port = 13012
> admin-password = bar
> admin-deny-ip = "*.*.*.*"
> admin-allow-ip = "127.0.0.1"
> log-file = "/var/log/kannel/bearerbox.log"
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
>
> group = wapbox
> bearerbox-host = localhost
> log-file = "/var/log/kannel/wapbox.log"
> #wap-url-map = "http://mmsc/* http://localhost:1981/*";;
>
> group = wap-url-map
> name = map_mmsc
> url ="http://mmsc/*";
> map-url ="http://localhost:1981/*";
>
> group = smsbox
> bearerbox-host = localhost
> log-file = "/var/log/kannel/smsbox.log"
> global-sender = 00260XXXXXXX
> access-log = "/var/log/kannel/kannel.access"
> log-level = 0
> sendsms-port = 13013
>
> group = sendsms-user
> username = <my username>
> password = <my password>
> concatenation= true
> max-messages = 10
>
> group = smsc
> smsc = at
> modemtype = huawei_e180
> device=/dev/ttyUSB2
> my-number = 00260XXXXXXX
> connect-allow-ip = 127.0.0.1
> log-level = 0
>
> group = modems
> id = huawei_e180
> name = "Huawei E180"
> detect-string = "huawei"
> init-string = "AT+CNMI=2,1,2,2,0"
>
> #The sms-service group configures how Kannel gets messages to your web
> application.
> group = sms-service
> keyword-regex =.*
> catch-all = true
> denied-prefix ="+260;00260"
> get-url = "http://localhost:1981/?text=%b";
> max-messages = 0
> concatenation = true
>
> #The sms-service group configures how Kannel gets messages to your web
> application.
> group = sms-service
> keyword = default
> catch-all = true
> get-url = "http://localhost/routesms.php?from=%p&text=%k+%s+%r";
> max-messages = 0
> denied-prefix ="+8800;008800;88"
> concatenation = true
>
>
>
>
> _______________________________________________
> Users mailing list
> Users@mbuni.org
> http://lists.mbuni.org/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users

Reply via email to