Mbuni uses curl to connect() to proxy. This is issued just after
start-gprs pid is returned so on "normal" system it uses default
route, which is not good because of firewalling and most ops using
private addresses for mmsc's. From what I saw (maybe someone will
correct me here) mmsbox-mm1 does not set any connection timeouts on
CURL and default is to wait indefinitly (or at least very long). So
handle_mm1 thread blocks here.


On Wed, Aug 04, 2010 at 02:15:46PM +1100, Emmanuel CHANSON wrote:
> I also dont understand why mbuni does not retry to send the MMS stored in
> spool after the ppp0 connection is up ?
> 
> mbuni stay blocked:
> 
> 2010-08-04 13:52:37 [10240] [5] INFO: mmsbox_mm1.c:659 <start_gprs>
> [mmsbox-mm1] [n/a] waiting for connection: 0, pid=10263 cpid=10263,
> ifexited=1, exitstatus=0
> 2010-08-04 13:52:37 [10240] [5] WARNING: mmsbox_mm1.c:375 <handle_mm1>
> [mmsbox-mm1] [n/a] failed to start GPRS connection. waiting...
> 
> Emmanuel
> >> > > > 2010-08-03 14:31:44 [3327] [14] DEBUG: Thread 14
> >> > > > (mms_queue.c:(gwthread_func_t *)tdeliver) maps to pid 3327.
> >> > > >
> >> > > >
> >> > > > MMS send through MMS interface of mmsbox:
> >> > > > # lynx -dump "
> >> > > >
> >> > >
> >> http://localhost:10002/?username=tester&password=foobar&mmsc=modem&to=%2B87773502/TYPE=PLMN&subject=Test&text=MMS-1
> >> > > > "
> >> > > >   Accepted: Mbuni-msg.7610.x1.24.85
> >> > > >
> >> > > > mmsbox.log generated after the MMS:
> >> > > > --------------------------------------------------------
> >> > > > 2010-08-03 14:53:30 [2324] [3] DEBUG: HTTP: Creating HTTPClient for
> >> > > > `127.0.0.1'.
> >> > > > 2010-08-03 14:53:30 [2324] [3] DEBUG: HTTP: Created HTTPClient area
> >> > > > 0xb5700ab0.
> >> > > > 2010-08-03 14:53:30 [2324] [18] DEBUG: WSP: Mapping `text/plain',
> >> WSP 1.2
> >> > > to
> >> > > > 0x0003.
> >> > > > 2010-08-03 14:53:30 [2324] [18] INFO: mmsbox.c:1366
> >> <make_and_queue_msg>
> >> > > > [mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user],
> >> > > [transid
> >> > > > [Mbuni-msg.7610.x1.24.85]: q-qf7610.1.x324.69
> >> > > > 2010-08-03 14:53:30 [2324] [18] DEBUG: HTTP: Destroying HTTPClient
> >> area
> >> > > > 0xb5700ab0.
> >> > > > 2010-08-03 14:53:30 [2324] [18] DEBUG: HTTP: Destroying HTTPClient
> >> for
> >> > > > `127.0.0.1'.
> >> > > > 2010-08-03 14:53:30 [2324] [18] INFO: mmsbox.c:1613
> >> > > <dispatch_sendmms_recv>
> >> > > > [mmsbox] [n/a] MMSBox.mmssend: u=tester, Queued [Accepted:
> >> > > > Mbuni-msg.7610.x1.24.85]
> >> > > > 2010-08-03 14:53:35 [2324] [7] DEBUG: Queued to thread 0 for
> >> > > > /var/spool/mbuni/mmsbox_outgoing/q/qf7610.1.x324.69,
> >> sendt=1280807610,
> >> > > > tnow=1280807615
> >> > > > arg 0: pppd
> >> > > > arg 1: call
> >> > > > arg 2: mobile-auth
> >> > > > cat: /var/run/ppp0.pid: Aucun fichier ou dossier de ce type
> >> > > > 2010-08-03 14:53:40 [2324] [5] INFO: mmsbox_mm1.c:659 <start_gprs>
> >> > > > [mmsbox-mm1] [n/a] waiting for connection: 0, pid=2457 cpid=2457,
> >> > > > ifexited=1, exitstatus=0
> >> > > > 2010-08-03 14:53:40 [2324] [5] WARNING: mmsbox_mm1.c:375
> >> <handle_mm1>
> >> > > > [mmsbox-mm1] [n/a] *failed to start GPRS connection. waiting...*
> >> > > >
> >> > > > /var/log/messages:
> >> > > > ----------------------------
> >> > > > Aug  3 14:53:35 navette kernel: PPP generic driver version 2.4.2
> >> > > > Aug  3 14:53:35 navette pppd[2462]: pppd 2.4.5 started by admin, uid
> >> 0
> >> > > > Aug  3 14:53:36 navette chat[2463]: abort on (BUSY)
> >> > > > Aug  3 14:53:36 navette chat[2463]: abort on (NO CARRIER)
> >> > > > Aug  3 14:53:36 navette chat[2463]: abort on (VOICE)
> >> > > > Aug  3 14:53:36 navette chat[2463]: abort on (NO DIALTONE)
> >> > > > Aug  3 14:53:36 navette chat[2463]: abort on (NO DIAL TONE)
> >> > > > Aug  3 14:53:36 navette chat[2463]: abort on (NO ANSWER)
> >> > > > Aug  3 14:53:36 navette chat[2463]: abort on (DELAYED)
> >> > > > Aug  3 14:53:36 navette chat[2463]: report (CONNECT)
> >> > > > Aug  3 14:53:36 navette chat[2463]: timeout set to 6 seconds
> >> > > > Aug  3 14:53:36 navette chat[2463]: send (ATQ0^M)
> >> > > > Aug  3 14:53:36 navette chat[2463]: expect (OK)
> >> > > > Aug  3 14:53:36 navette chat[2463]: ^M
> >> > > > Aug  3 14:53:36 navette chat[2463]: OK
> >> > > > Aug  3 14:53:36 navette chat[2463]:  -- got it
> >> > > > Aug  3 14:53:36 navette chat[2463]: send (ATZ^M)
> >> > > > Aug  3 14:53:37 navette chat[2463]: timeout set to 3 seconds
> >> > > > Aug  3 14:53:37 navette chat[2463]: expect (OK)
> >> > > > Aug  3 14:53:37 navette chat[2463]: ^M
> >> > > > Aug  3 14:53:37 navette chat[2463]: ^M
> >> > > > Aug  3 14:53:37 navette chat[2463]: OK
> >> > > > Aug  3 14:53:37 navette chat[2463]:  -- got it
> >> > > > Aug  3 14:53:37 navette chat[2463]: send (AT^M)
> >> > > > Aug  3 14:53:37 navette chat[2463]: expect (OK)
> >> > > > Aug  3 14:53:37 navette chat[2463]: ^M
> >> > > > Aug  3 14:53:40 navette chat[2463]: alarm
> >> > > > Aug  3 14:53:40 navette chat[2463]: send (AT^M)
> >> > > > Aug  3 14:53:40 navette chat[2463]: expect (OK)
> >> > > > Aug  3 14:53:40 navette chat[2463]: AT^M^M
> >> > > > Aug  3 14:53:40 navette chat[2463]: OK
> >> > > > Aug  3 14:53:40 navette chat[2463]:  -- got it
> >> > > > Aug  3 14:53:40 navette chat[2463]: send (ATI^M)
> >> > > > Aug  3 14:53:40 navette chat[2463]: expect (OK)
> >> > > > Aug  3 14:53:40 navette chat[2463]: ^M
> >> > > > Aug  3 14:53:40 navette chat[2463]: ATI^M^M
> >> > > > Aug  3 14:53:40 navette chat[2463]: my300X GPRS^M
> >> > > > Aug  3 14:53:40 navette chat[2463]: ^M
> >> > > > Aug  3 14:53:40 navette chat[2463]: OK
> >> > > > Aug  3 14:53:40 navette chat[2463]:  -- got it
> >> > > > Aug  3 14:53:40 navette chat[2463]: send (ATZ^M)
> >> > > > Aug  3 14:53:40 navette chat[2463]: expect (OK)
> >> > > > Aug  3 14:53:40 navette chat[2463]: ^M
> >> > > > Aug  3 14:53:40 navette chat[2463]: ATZ^M^M
> >> > > > Aug  3 14:53:40 navette chat[2463]: OK
> >> > > > Aug  3 14:53:40 navette chat[2463]:  -- got it
> >> > > > Aug  3 14:53:40 navette chat[2463]: send (AT^M)
> >> > > > Aug  3 14:53:40 navette chat[2463]: expect (OK)
> >> > > > Aug  3 14:53:40 navette chat[2463]: ^M
> >> > > > Aug  3 14:53:43 navette chat[2463]: alarm
> >> > > > Aug  3 14:53:43 navette chat[2463]: send (AT^M)
> >> > > > Aug  3 14:53:43 navette chat[2463]: expect (OK)
> >> > > > Aug  3 14:53:43 navette chat[2463]: AT^M^M
> >> > > > Aug  3 14:53:43 navette chat[2463]: OK
> >> > > > Aug  3 14:53:43 navette chat[2463]:  -- got it
> >> > > > Aug  3 14:53:43 navette chat[2463]: send (AT+CGDCONT=1,"IP","mms"^M)
> >> > > > Aug  3 14:53:43 navette chat[2463]: expect (OK)
> >> > > > Aug  3 14:53:43 navette chat[2463]: ^M
> >> > > > Aug  3 14:53:43 navette chat[2463]: AT+CGDCONT=1,"IP","mms"^M^M
> >> > > > Aug  3 14:53:43 navette chat[2463]: OK
> >> > > > Aug  3 14:53:43 navette chat[2463]:  -- got it
> >> > > > Aug  3 14:53:43 navette chat[2463]: send (ATDT*99***1#^M)
> >> > > > Aug  3 14:53:43 navette chat[2463]: timeout set to 30 seconds
> >> > > > Aug  3 14:53:43 navette chat[2463]: expect (CONNECT)
> >> > > > Aug  3 14:53:43 navette chat[2463]: ^M
> >> > > > Aug  3 14:53:44 navette chat[2463]: ATDT*99***1#^M^M
> >> > > > Aug  3 14:53:44 navette chat[2463]: CONNECT
> >> > > > Aug  3 14:53:44 navette chat[2463]:  -- got it
> >> > > > Aug  3 14:53:44 navette chat[2463]: send (^M)
> >> > > > Aug  3 14:53:44 navette pppd[2462]: Serial connection established.
> >> > > > Aug  3 14:53:44 navette pppd[2462]: Using interface ppp0
> >> > > > Aug  3 14:53:44 navette pppd[2462]: Connect: ppp0 <--> /dev/ttyACM0
> >> > > > Aug  3 14:53:44 navette pppd[2462]: PAP authentication succeeded
> >> > > > Aug  3 14:53:44 navette kernel: PPP Deflate Compression module
> >> registered
> >> > > > Aug  3 14:53:45 navette pppd[2462]: not replacing existing default
> >> route
> >> > > via
> >> > > > 192.168.0.1
> >> > > > Aug  3 14:53:45 navette pppd[2462]: local  IP address 10.152.149.196
> >> > > > Aug  3 14:53:45 navette pppd[2462]: remote IP address
> >> 192.168.254.254
> >> > > >
> >> > > >
> >> > > > and nothing after...
> >> > > >
> >> > > > # ifconfig:
> >> > > > eth1      Link encap:Ethernet  HWaddr 00:16:E6:4E:0C:2B
> >> > > >           inet adr:192.168.0.2  Bcast:192.168.0.255
> >>  Masque:255.255.255.0
> >> > > >           adr inet6: fe80::216:e6ff:fe4e:c2b/64 Scope:Lien
> >> > > >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >> > > >           RX packets:1585 errors:0 dropped:0 overruns:0 frame:0
> >> > > >           TX packets:1354 errors:0 dropped:0 overruns:0 carrier:0
> >> > > >           collisions:0 lg file transmission:1000
> >> > > >           RX bytes:1349508 (1.2 MiB)  TX bytes:283403 (276.7 KiB)
> >> > > >           Interruption:20
> >> > > >
> >> > > > lo        Link encap:Boucle locale
> >> > > >           inet adr:127.0.0.1  Masque:255.0.0.0
> >> > > >           adr inet6: ::1/128 Scope:Hôte
> >> > > >           UP LOOPBACK RUNNING  MTU:16436  Metric:1
> >> > > >           RX packets:177 errors:0 dropped:0 overruns:0 frame:0
> >> > > >           TX packets:177 errors:0 dropped:0 overruns:0 carrier:0
> >> > > >           collisions:0 lg file transmission:0
> >> > > >           RX bytes:12005 (11.7 KiB)  TX bytes:12005 (11.7 KiB)
> >> > > >
> >> > > > ppp0      Link encap:Protocole Point-à-Point
> >> > > >           inet adr:10.152.149.196  P-t-P:192.168.254.254
> >> > > > Masque:255.255.255.255
> >> > > >           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
> >> > > >           RX packets:4 errors:0 dropped:0 overruns:0 frame:0
> >> > > >           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
> >> > > >           collisions:0 lg file transmission:3
> >> > > >           RX bytes:58 (58.0 b)  TX bytes:76 (76.0 b)
> >> > > >
> >> > > > # netstat -rn
> >> > > > Table de routage IP du noyau
> >> > > > Destination     Passerelle      Genmask         Indic   MSS Fenêtre
> >> irtt
> >> > > > Iface
> >> > > > 192.168.254.254 0.0.0.0         255.255.255.255 UH        0 0
> >>    0
> >> > > > ppp0
> >> > > > 192.168.0.0     0.0.0.0         255.255.255.0   U         0 0
> >>    0
> >> > > > eth1
> >> > > > 169.254.0.0     0.0.0.0         255.255.0.0     U         0 0
> >>    0
> >> > > > eth1
> >> > > > 0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0
> >>    0
> >> > > > eth1
> >> > > >
> >> > > >
> >> > > > mmsbox.conf:
> >> > > > ---------------------
> >> > > > [r...@navette ~]# cat /etc/mbuni/mmsbox.conf
> >> > > > group = core
> >> > > > log-file = /var/log/mbuni/mmsbox.log
> >> > > > access-log = /var/log/mbuni/mmsbox-access.log
> >> > > > log-level = 0
> >> > > >
> >> > > > group = mbuni
> >> > > > storage-directory = /var/spool/mbuni
> >> > > > max-send-threads = 5
> >> > > > maximum-send-attempts = 50
> >> > > > default-message-expiry = 360000
> >> > > > queue-run-interval = 5
> >> > > > send-attempt-back-off = 300
> >> > > > sendmms-port = 10002
> >> > > >
> >> > > > #group = mmsc
> >> > > > #id = local
> >> > > > #mmsc-url = http://mbuni:t...@localhost:1982/soap
> >> > > > #incoming-username = user
> >> > > > #incoming-password = pass
> >> > > > #incoming-port = 12345
> >> > > > #type = soap
> >> > > >
> >> > > > # Sample conf for MMSBox using a modem (MM1)
> >> > > > group = mmsc
> >> > > > id = modem
> >> > > > type = custom
> >> > > > custom-settings = "gprs-on=pppd call mobile-auth;gprs-pid=cat
> >> > > > /var/run/ppp0.pid|head -1;port=3130;mmsc-url=
> >> > > > http://mms.xxxxx.xx/mmsc;proxy=192.168.39.201;msisdn=100";
> >> > > > mmsc-library = /usr/local/lib/libmmsbox_mm1.so
> >> > > >
> >> > > >
> >> > > > group = mms-service
> >> > > > name = me
> >> > > > post-url = 
> >> > > > http://localhost/~bagyenda/test-mbuni.php<http://localhost/%7Ebagyenda/test-mbuni.php>
> >> <http://localhost/%7Ebagyenda/test-mbuni.php>
> >> > > <http://localhost/%7Ebagyenda/test-mbuni.php>
> >> > > > catch-all = true
> >> > > > http-post-parameters = fx=true&images[]=%i&text[]=%t&skip=1
> >> > > > accept-x-mbuni-headers = true
> >> > > > pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
> >> > > > keyword = test
> >> > > > 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
> >> > > >
> >> > > >
> >> > > >
> >> > > > Regards,
> >> > > >
> >> > > > --
> >> > > > Emmanuel
> >> > >
> >> > > > _______________________________________________
> >> > > > 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
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > Emmanuel
> >> >
> >> > CHANSON Emmanuel
> >> > Mobile Nouvelle-Calédonie: +687.77.35.02
> >> > Mobile France: +33 (0) 6.68.03.89.56
> >> > @email : emmanuelchan...@gmail.com
> >>
> >> > _______________________________________________
> >> > 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
> >>
> >
> >
> >
> > --
> > Emmanuel
> >
> > CHANSON Emmanuel
> > Mobile Nouvelle-Calédonie: +687.77.35.02
> > Mobile France: +33 (0) 6.68.03.89.56
> > @email : emmanuelchan...@gmail.com
> >
> 
> 
> 
> -- 
> Emmanuel
> 
> CHANSON Emmanuel
> Mobile Nouvelle-Calédonie: +687.77.35.02
> Mobile France: +33 (0) 6.68.03.89.56
> @email : emmanuelchan...@gmail.com

> _______________________________________________
> Users mailing list
> Users@mbuni.org
> http://lists.mbuni.org/mailman/listinfo/users

Attachment: pgpOPo37RZQcn.pgp
Description: PGP signature

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

Reply via email to