Re: [Users] MMSBox and MM1 GPRS modem
Answers inline. On Mar 16, 2010, at 00:08, Emmanuel CHANSON wrote: Thanks Nuno for your help, First thing is that the text I sent before is for receiving a mms, for that you use the mmsbox exec, so I do not speak of the mmsc exec neither is configuration file, but I do believe that you must use BOTH exec to be able to send a mms (not really sure on this). - Need a confirmation from Paul B maybe because I don’t have any clue about this. mmsc is not needed for what you want to do. mmsbox is sufficient For what is used the port parameter inside custom-settings - ;port=13014; ? I am eating my brain out about that, worst is one of the few things I don’t have any notes about. - Maybe Paul can answer to this as well This is the port to which kannel must get/post incoming mms notification (sms). Should I use ppd call gprs or wvdial ? should it provide the same result ie a pppd connection to my operator ? In my opinion wvdial is a easy fast way a user control a gprs modem, and I know that pppd looked scary at first, but after a few configurations you will have a great tool that your mbuni will use with ease, and I recommend you use the pppd script, the pppd mechanism saved me a few times already. - I will check for the ppd script but where can I found it? I remember I saw pppd script on the internet, but maybe there is some scripts coming with the pppd library in linux? 2010-03-15 15:30:06 [28823] [13] INFO: System error 2: No such file or directory I’ve came across that error a few times, but not in a command you are doing. Are you executing mbuni with sudo(root permitions) ? Does /var/spool/mbuni exist and has write permitions? - without sudo command, directly with root account And Yes /var/spool.mbuni have the write permission (at least for root account): drwxr-x---. 5 root root 4096 mars 15 15:21 mbuni # ll /var/spool/mbuni/ total 12 -rw-r--r--. 1 root root0 mars 15 15:21 mmsbox-cdr.asc drwxr-x---. 38 root root 4096 mars 15 15:21 mmsbox_dlr drwxr-x---. 38 root root 4096 mars 15 15:21 mmsbox_incoming drwxr-x---. 38 root root 4096 mars 16 06:09 mmsbox_outgoing In fact mbuni does not start shutting down smsc-id = at... can we investiguate further ? how ? :( To this I may have a hint, you have a typo, either on the mail or the conf file - I don't understand, what is a typo, can you reformulate? (sorry for my English)? Both commands must be addressed to the same port http://localhost:13001, and check if 13001 is the admin-port on kannel conf file - Yes I made a mistake, kannel admin-port is 13000 and I put 13001 in, the mmsbox.conf file but Mbuni did not succeed to work until this part of the process as it did not try to shutdown smsc in the log, I expected to see some errors saying it can not access admin-port of Kannel. I have modified my conf file as follow: # Conf for MMSBox using a modem (MM1) group = mmsc id = nokiaphone type = custom custom-settings = smsc-on=lynx -dump 'http://localhost:13000/start-smsc?password=**smsc=nokiaphone';\ smsc-off=lynx -dump 'http://localhost:13000/stop-smsc?password=**smsc=nokiaphone';\ gprs-on=pppd call gprs;gprs-pid=cat /var/run/ppp0.pid|head -1;port=13014;mmsc-url=http://mms.xxx.tld/mmsc;proxy=192.168.xx.xx:3130;msisdn=100; mmsc-library = /usr/local/lib/libmmsbox_mm1.so Thanks for your time, I really need to succeed to send a MMS through GPRS. BTW Does anyone succeeded to do this before? Not only receiving a MMS through GPRS I mean but also send one? Regards, Emmanuel 2010/3/15 Nuno Freitas nuno.frei...@nabiasolutions.com Hi there Emmanuel, First thing is that the text I sent before is for receiving a mms, for that you use the mmsbox exec, so I do not speak of the mmsc exec neither is configuration file, but I do believe that you must use BOTH exec to be able to send a mms (not really sure on this). One thing, I don't have the same version of libcurl: curl-7.19.7-7.fc12.i686 libcurl-7.19.7-7.fc12.i686 libcurl-devel-7.19.7-7.fc12.i686 I have a newer version, is it a problem? I do not believe that would be a problem, and from the log at first glance there is no indication curl is the problem. I have several question to understand better how it should work: - For what is used the port parameter inside custom-settings - ;port=13014; ? I am eating my brain out about that, worst is one of the few things I don’t have any notes about. - Should I use ppd call gprs or wvdial ? should it provide the same result ie a pppd connection to my operator ? In my opinion wvdial is a easy fast way a user control a gprs modem, and I know that pppd looked scary at first, but after a few configurations you will have a great tool that your mbuni will use with ease, and I recommend you use the pppd script, the pppd mechanism saved me a few times already. -
RE: [Users] MMSBox ERROR: mmsbox_mm1.c:628 fetch_content [mmsbox-mm1][n/a] failed to fetch/post content: couldn't connect to host
Hi, 2010-03-15 18:48:37 [2475] [9] INFO: System error 2: No such file or directory I think that you are trying to send a MMS with nothing on it. _ De: users-boun...@mbuni.org [mailto:users-boun...@mbuni.org] En nombre de urko mendiguren Enviado el: martes, 16 de marzo de 2010 8:15 Para: users@mbuni.org Asunto: [Users] MMSBox ERROR: mmsbox_mm1.c:628 fetch_content [mmsbox-mm1][n/a] failed to fetch/post content: couldn't connect to host Hi ! I'm trying to upload a MMS into my operators MMSC (Movistar) using MM1 ?? kannel is working and mmbox-mm1 library compiled. Everything looks OK but when mbuni tries to upload the content, crashes. I don't know what happens first fetch content error or Connection terminated but pppd disconnects before having the IP. I'm not sure if is the proxy or the gateway what I have to put in custom settings but I tried both and the same happened . Thanks in advance ! mmsbox.log 2010-03-15 18:48:37 [2475] [3] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2010-03-15 18:48:37 [2475] [3] DEBUG: HTTP: Created HTTPClient area 0x9d07598. 2010-03-15 18:48:37 [2475] [9] DEBUG: WSP: Mapping `text/plain', WSP 1.2 to 0x0003. 2010-03-15 18:48:37 [2475] [9] INFO: mmsbox.c:1366 make_and_queue_msg [mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid [Mbuni-msg.5317.x1.75.97]: qf5317.1.x475.18 2010-03-15 18:48:37 [2475] [9] INFO: System error 2: No such file or directory 2010-03-15 18:48:37 [2475] [9] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. 2010-03-15 18:48:37 [2475] [9] INFO: mmsbox.c:1613 dispatch_sendmms_recv [mmsbox] [n/a] MMSBox.mmssend: u=tester, Queued [Accepted: Mbuni-msg.5317.x1.75.97] 2010-03-15 18:48:38 [2475] [7] DEBUG: Queued to thread 0 for /usr/local/var/spool/mbuni/mmsbox_outgoing/qf5317.1.x475.18, sendt=1268675317, tnow=1268675318 SMSC `movistar2' shut down arg 0: pppd arg 1: call arg 2: movistar 2010-03-15 18:48:48 [2475] [5] INFO: mmsbox_mm1.c:379 handle_mm1 [mmsbox-mm1] [n/a] start_gprs returned PID: 2515 2010-03-15 18:48:48 [2475] [5] DEBUG: WSP: Mapping `text/plain', WSP 1.2 to 0x0003. 2010-03-15 18:48:48 [2475] [5] ERROR: mmsbox_mm1.c:628 fetch_content [mmsbox-mm1] [n/a] failed to fetch/post content: couldn't connect to host 2010-03-15 18:48:48 [2475] [5] DEBUG: Octet string at 0x9d07770: 2010-03-15 18:48:48 [2475] [5] DEBUG: len: 0 2010-03-15 18:48:48 [2475] [5] DEBUG: size: 0 2010-03-15 18:48:48 [2475] [5] DEBUG: immutable: 0 2010-03-15 18:48:48 [2475] [5] DEBUG: Octet string dump ends. 2010-03-15 18:48:48 [2475] [5] ERROR: mmsbox_mm1.c:499 handle_mm1 [mmsbox-mm1] [n/a] Sending failed: (none), (none)! 2010-03-15 18:48:48 [2475] [18] INFO: mmsbox_mm1.c:345 send_msg [mmsbox-mm1] [n/a] sent message, type=m-send-req, result=(none) 2010-03-15 18:48:48 [2475] [18] INFO: bearerbox.c:1519 sendMsg [MM7] [n/a] Retry later MMSBox Outgoing Queue MMS Send: From 606XX/TYPE=PLMN, to 600XX/TYPE=PLMN, msgsize=96: msgid=[N/A] 2010-03-15 18:48:48 [2475] [5] INFO: mmsbox_mm1.c:524 handle_mm1 [mmsbox-mm1] [n/a] GPRS turned off returned: 0 SMSC `movistar2' re-started Config provided by movistar -- APN: mms.movistar.es Username: movis...@mms Password required: No Password: MOVISTAR Authentication: Normal Gateway: 10.138.255.001 URL: http://mms.movistar.com http://mms.movistar.com/ Connection security: Disabled Session mode: Permanent Proxy: 10.138.255.5 Proxy-port: 8080 mbuni.conf - #/home/urko/Descargas/mbuni/mmsbox/mmsbox /home/urko/Escritorio/mbuni/mbuni.conf group = core log-file = /var/log/kannel/mmsbox.log access-log = /var/log/kannel/mmsbox-access.log log-level = 0 group = mbuni storage-directory = /usr/local/var/spool/mbuni max-send-threads = 5 maximum-send-attempts = 5 default-message-expiry = 36 queue-run-interval = 5 send-attempt-back-off = 300 sendmms-port = 10001 sendsms-url = http://localhost:13013/cgi-bin/sendsms sendsms-username = foo sendsms-password = bar # Sample conf for MMSBox using a modem (MM1) group = mmsc id = movistar type = custom custom-settings = smsc-on=lynx -dump 'http://localhost:13100/start-smsc?password=bar http://localhost:13100/start-smsc?password=barsmsc=movistar2%27;smsc-off=l ynx smsc=movistar2';smsc-off=lynx -dump 'http://localhost:13100/stop-smsc?password=bar http://localhost:13100/stop-smsc?password=barsmsc=movistar2%27;gprs-on=ppp d smsc=movistar2';gprs-on=pppd call movistar;gprs-pid=cat /var/run/ppp0.pid | head -1;port=13000;mmsc-url=mms.movistar.com;proxy=10.138.255.001;msisdn=100 mmsc-library = /usr/local/lib/libmmsbox_mm1.so group = send-mms-user username = tester password = foobar -- when I do pppd call movistar