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: