Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-05 Thread Emmanuel CHANSON
Wil try this advise. Many thanks Piotr for your help, you sort me out from a big issue. Regards, Emmanuel 2010/8/5 Piotr Isajew p...@ex.com.pl With settings similar to yours I get the behaviour when mbuni sends everything that is queued and then disconnects. Maybe if you patch mmsbox_mm1.c

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-04 Thread Emmanuel CHANSON
*Hello Piotr, Still Mbuni does not want to wait after GPRS connection even with ip-up script, do I miss something? Following your advises I have configured: in /etc/ppp/ip-up symlink to ip-up.sh:* *#!/bin/sh IFNAME=$1 LOCAL_IP=$4 REMOTE_IP=$5 IPPARAM=$6 MMS_PROXY=192.168.39.201 ip route add

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-04 Thread Piotr Isajew
Hi. From what I see you miss the following options to pppd (unless they are present in config file): nodefaultroute nodetach nodetach is important here since it stops grps-on process from quitting (pppd daemonizes) before it has a chance to set-up the connection. Other way would be to provide a

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-04 Thread Emmanuel CHANSON
Yeah, thanks Piotr, It seems better using 'nodetach', mbuni does not block anymore but retry to send MMS but I have an issue with routing to reach MMS-C, when pppd is established it should set the route in ip-up script: ip route to 192.168.39.201 dev ppp0 I guess? Can I use route add -host

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-04 Thread Emmanuel CHANSON
I forgot to add /sbin before 'ip route' in ip-up script, now it is Ok Things is Mbuni connect to GPRS, send the MMS and disconnect just after although a second MMS has to be sent, reconnect, send it and disconnect? Is it a normal behavior ? or is it possible to keep the ppp0 open and send all

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-04 Thread Emmanuel CHANSON
Yes, by default mmsbox.conf has the following config: group = mbuni storage-directory = /var/spool/mbuni max-send-threads = 5 maximum-send-attempts = 50 default-message-expiry = 36 queue-run-interval = 5 send-attempt-back-off = 300 sendmms-port = 10001 max-send-threads set to 5 but Mbuni

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-04 Thread Piotr Isajew
With settings similar to yours I get the behaviour when mbuni sends everything that is queued and then disconnects. Maybe if you patch mmsbox_mm1.c to add a 2 second sleep at end of inner loop in handle_mm1 function that will solve your problem. On Thu, Aug 05, 2010 at 02:55:16PM +1100, Emmanuel

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-03 Thread Piotr Isajew
You could also do this with proper if-up script. Mbuni tries to connect to MMS proxy when it sees pppd pid file. On other hand pid file is created _before_ interface IP and routing is set up. I solved this by symlinking ppp pid to some path in if-up after everything is set-up and making mbuni to

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-03 Thread Emmanuel CHANSON
One question: Does Mbuni will open and close GPRS connection each time it will have to send a MMS ? or does it keep the connection always open ? Is it a good idea to keep the GPRS connection open in case a lot of MMS have to be send through modem? I will check about if-up script. Others ideas

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-03 Thread Piotr Isajew
On Tue, Aug 03, 2010 at 05:44:30PM +1100, Emmanuel CHANSON wrote: One question: Does Mbuni will open and close GPRS connection each time it will have to send a MMS ? or does it keep the connection always open ? It opens connection once there is something in queue and keeps it open until

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-03 Thread Emmanuel CHANSON
Is it possible to get an example of the if-up/down script that deal with ppp0.pid symlink so that Mbuni start to send MMS only after the ppp0 connection is established? I notice that routing is also missing after the GPRS connection is established that is why maybe mbuni POST nothing. I need to

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-03 Thread Piotr Isajew
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

Re: [Users] Mbuni try to send POST MMS before GPRS connection is established

2010-08-03 Thread Piotr Isajew
On Wed, Aug 04, 2010 at 07:14:52AM +0200, Emmanuel CHANSON wrote: Thanks Piotr for this, One more questions: Where and when do I call ip-up.sh $1 $2 ... and then call pppd ? All inside custom-settings gprs-on= option ? it's enough if you symlink it to /etc/ppp/ip-up. From pppd manual: