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 ! I'm trying the same with Vodafone operator. Here needed config for my country: http://www.eforo.com/foros/viewtopic.php?t=33257 In this case I can ping the gateway after calling pppd in this way !!! : pppd call vodafone As you can see it needs 9 seconds to get the IP but when mbuni makes pppd call it doesn't wait and returns ERROR at the same time 18:28:08 Any ideas ? ##3 Apr 8 18:17:08 urko-desktop pppd[4385]: pppd 2.4.5 started by root, uid 0 Apr 8 18:17:09 urko-desktop chat[4387]: abort on (BUSY) Apr 8 18:17:09 urko-desktop chat[4387]: abort on (NO CARRIER) Apr 8 18:17:09 urko-desktop chat[4387]: abort on (VOICE) Apr 8 18:17:09 urko-desktop chat[4387]: abort on (NO DIALTONE) Apr 8 18:17:09 urko-desktop chat[4387]: abort on (NO DIAL TONE) Apr 8 18:17:09 urko-desktop chat[4387]: abort on (NO ANSWER) Apr 8 18:17:09 urko-desktop chat[4387]: abort on (DELAYED) Apr 8 18:17:09 urko-desktop chat[4387]: send (ATZ^M) Apr 8 18:17:09 urko-desktop chat[4387]: expect (OK) Apr 8 18:17:09 urko-desktop chat[4387]: ^M Apr 8 18:17:09 urko-desktop chat[4387]: OK Apr 8 18:17:09 urko-desktop chat[4387]: -- got it Apr 8 18:17:09 urko-desktop chat[4387]: send (AT+CGDCONT=1,IP, mms.vodafone.net^M) Apr 8 18:17:10 urko-desktop chat[4387]: expect (OK) Apr 8 18:17:10 urko-desktop chat[4387]: ^M Apr 8 18:17:10 urko-desktop chat[4387]: AT+CGDCONT=1,IP,mms.vodafone.net ^M^M Apr 8 18:17:10 urko-desktop chat[4387]: OK Apr 8 18:17:10 urko-desktop chat[4387]: -- got it Apr 8 18:17:10 urko-desktop chat[4387]: send (ATDT*99***1#^M) Apr 8 18:17:10 urko-desktop chat[4387]: expect (CONNECT) Apr 8 18:17:10 urko-desktop chat[4387]: ^M Apr 8 18:17:10 urko-desktop chat[4387]: ATDT*99***1#^M^M Apr 8 18:17:10 urko-desktop chat[4387]: CONNECT Apr 8 18:17:10 urko-desktop chat[4387]: -- got it Apr 8 18:17:10 urko-desktop chat[4387]: send (\d) Apr 8 18:17:11 urko-desktop pppd[4385]: Serial connection established. Apr 8 18:17:11 urko-desktop pppd[4385]: Using interface ppp0 Apr 8 18:17:11 urko-desktop pppd[4385]: Connect: ppp0 -- /dev/ttyACM0 Apr 8 18:17:20 urko-desktop pppd[4385]: Could not determine remote IP address: defaulting to 10.64.64.64 Apr 8 18:17:20 urko-desktop pppd[4385]: local IP address 10.250.99.210 Apr 8 18:17:20 urko-desktop pppd[4385]: remote IP address 10.64.64.64 Apr 8 18:17:20 urko-desktop pppd[4385]: primary DNS address 212.73.32.3 Apr 8 18:17:20 urko-desktop pppd[4385]: secondary DNS address 212.73.32.67 ### r...@urko-desktop:/etc/ppp# ping 212.73.32.10 ### PING 212.73.32.10 (212.73.32.10) 56(84) bytes of data. 64 bytes from 212.73.32.10: icmp_seq=1 ttl=254 time=94.3 ms 64 bytes from 212.73.32.10: icmp_seq=2 ttl=254 time=104 ms 64 bytes from 212.73.32.10: icmp_seq=3 ttl=254 time=104 ms 64 bytes from 212.73.32.10: icmp_seq=4 ttl=254 time=103 ms 64 bytes from 212.73.32.10: icmp_seq=5 ttl=254 time=120 ms 64 bytes from 212.73.32.10: icmp_seq=6 ttl=254 time=120 ms 64 bytes from 212.73.32.10: icmp_seq=7 ttl=254 time=119 ms 64 bytes from 212.73.32.10: icmp_seq=8 ttl=254 time=106 ms ^C --- 212.73.32.10 ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 7007ms rtt min/avg/max/mdev = 94.358/109.181/120.921/9.101 ms # MESSAGES AND LOGS with MBUNI ### Apr 8 18:28:05 urko-desktop chat[4528]: AT+CGDCONT=1,IP,mms.vodafone.net ^M^M Apr 8 18:28:05 urko-desktop chat[4528]: OK Apr 8 18:28:05 urko-desktop chat[4528]: -- got it Apr 8 18:28:05 urko-desktop chat[4528]: send (ATDT*99***1#^M) Apr 8 18:28:05 urko-desktop chat[4528]: expect (CONNECT) Apr 8 18:28:05 urko-desktop chat[4528]: ^M Apr 8 18:28:05 urko-desktop chat[4528]: ATDT*99***1#^M^M Apr 8 18:28:05 urko-desktop chat[4528]: CONNECT Apr 8 18:28:05 urko-desktop chat[4528]: -- got it Apr 8 18:28:05 urko-desktop chat[4528]: send (\d) Apr 8 18:28:06 urko-desktop pppd[4525]: Serial connection established. Apr 8 18:28:06 urko-desktop pppd[4525]: Using interface ppp0 Apr 8 18:28:06 urko-desktop pppd[4525]: Connect: ppp0 -- /dev/ttyACM0 Apr 8 18:28:08 urko-desktop pppd[4525]: Terminating on signal 15 Apr 8 18:28:08 urko-desktop pppd[4525]: Connection terminated. Apr 8 18:28:09 urko-desktop pppd[4525]: Exit. 2010-04-08 18:27:58 [4485] [0] INFO: mmsbox.c:759 main [mmsbox] [n/a] Mbuni MMSBox version cvs-20100125 starting 2010-04-08 18:27:58 [4485] [5] INFO: mmsbox_mm1.c:363 handle_mm1 [mmsbox-mm1] [n/a] handle_mm1 started SMSC `vodafone' shut down arg 0: pppd arg 1: call arg 2: vodafone 2010-04-08 18:28:08 [4485] [5] INFO: mmsbox_mm1.c:379 handle_mm1 [mmsbox-mm1] [n/a] start_gprs returned PID: 4525 *2010-04-08 18:28:08 [4485] [5] ERROR: mmsbox_mm1.c:628 fetch_content [mmsbox-mm1]
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 ! and thanks for you replies. I think it's a ppp or network config problem. Some observations: 1. the APN (mms.movistar.es) is OK , the chatscript is at the end of the post ** 2. I configure pppd with pppconfig. I choose PAP but when i do the call it uses CHAP ! O_o maybe it's an aunthentication problem ?? Mar 25 15:44:30 urko-desktop pppd[2394]: Serial connection established. Mar 25 15:44:30 urko-desktop pppd[2394]: Using interface ppp0 Mar 25 15:44:30 urko-desktop pppd[2394]: Connect: ppp0 -- /dev/ttyACM0 Mar 25 15:44:31 urko-desktop pppd[2394]: CHAP authentication succeeded Mar 25 15:44:31 urko-desktop pppd[2394]: CHAP authentication succeeded Mar 25 15:44:39 urko-desktop pppd[2394]: Could not determine remote IP address: defaulting to 10.64.64.64 Mar 25 15:44:39 urko-desktop pppd[2394]: local IP address 10.164.11.15 Mar 25 15:44:39 urko-desktop pppd[2394]: remote IP address 10.64.64.64 Anyway, authentication looks successfull, but the DNS is not set. seems impossible to fetch http://mms.movistar.com; without DNS ... I'm okay ? 3 . I have readen this post: http://www.mail-archive.com/users@mbuni.org/msg01844.html I do */sbin/route add -net 10.0.0.0 netmask 255.0.0.0 dev ppp0*, tried to ping the proxy(10.138.255.5) and now I see some traffic on ppp0 interface using *tcpdump -i ppp0 -n* but there's no response and I can't reach http://mms.movistar.com; I extracted this paragraph from here http://www.activexperts.com/xmstoolkit/objects/mm1/ - A RRAS connection is established to the provider. To establish this connection, the provider's Access Point Name (APN) is required. Optionally, the APN login and password are required (only if the provider requires authentication); - When the RRAS connection is established, a dynamic IP address is assigned, for instance: 10.68.0.73; - The provider has a fixed WAP gateway address, for instance: 10.250.255.183. To allow access to this IP address, the routing entry is added to the local routing table, to tell that 10.250.255.183 should be routed via 10.68.0.73; I think this is exactly what i have to do, I'm on the right path ?? Can anyone help me with iptables? it would be something like *ip route add default via * ? 4. If the settings are OK is possible to ping the MMSC ?? in my case http://mms.movistar.com ?? Other issue is that when mbuni stops SMSC an do pppd call movistar the connection terminates before getting the IP. (logs in my first post). pppd needs about 5 seconds to get the IP but mbuni hungs-up the call for 1 second or less. ** # This chatfile was generated by pppconfig 2.3.18. # Please do not delete any of the comments. Pppconfig needs them. # # ispauth PAP # abortstring ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED # modeminit '' ATZ # APN OKAT+CGDCONT=1,IP,mms.movistar.es # ispnumber OK-AT-OK ATDT*99***1# # ispconnect # prelogin # ispname # isppassword # postlogin # end of pppconfig stuff ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users
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