I'm running a system that connects to the internet via GPRS modem using pppd.
It seems that the cellular operator refuses to accept new connections after several days that the system is connected.
I found out that this situation can be fixed by re-register to the network (using AT+CFUN command).
Is there any "automatic" way to configure the pppd options to send a specific script (using chat) in order to initialize the modem after several connection fails?
Please note that I don't want to add it to the connect script since I don't want it to run on every connect attempt - only after several fails.