Hi,

On a final note:

Panic in "kannelise" means the process dies due to unexpected behaviour (core dump, etc. - never happens, though). To test parachute quickly:

start bearerbox with -P flag. You should see 2 bearerbox processes running, one is the child of the other.

Send an unexpected signal to the child, i.e. kill -USR1 <process-id>. Kannel can't be fooled by any normal signal (INT, ABRT, KILL, SIG, etc.) and will die since it will consider it a user action ;-)

You will notice that a new child is spawned with new pid. If you have bearerbox logs open you will see clearly the reinitialization.

Everyone in the group has plenty of experience with SMSc timeouts and disconnects. Kannel will realize it when it tries to send a message and gets an error. It will try to reconnect and resend the message. That has the danger, that if you do not send any messages, and the SMSc gets disconnecterd, kannel won't know it. Therefore most SMScs have keepalives that kannel understands and will try to reconnect.

BR,
Nikos
----- Original Message ----- From: "Jason Higbee" <[email protected]>
To: "Nikos Balkanas" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, March 05, 2009 11:40 PM
Subject: Re: setup Kannel Mac OSX 10.4, Samba 75 Modem, daemon + parachute


See in line comments.

-Jason

Nikos Balkanas wrote:
Hi,

Please see inlined answers. For all answers check relevant info in the latest userguide.


----- Original Message ----- From: "Jason Higbee" <[email protected]>
To: <[email protected]>
Sent: Thursday, March 05, 2009 6:43 PM
Subject: setup Kannel Mac OSX 10.4, Samba 75 Modem, daemon + parachute


Users,

I'm planning a project so I am looking for advice and corrections on what I think Kannel can do.

I have:

Mac OS X 10.4.11
Samba 75 (Siemens MC75) USB modem with the modem scripts
- it can connect with another SMSC program on port ../tty.usbmodem1B11 or ../cu.usbmodem1B11 (not sure the difference but both seem to work) I have compiled Kannel 1.4.2 on my Mac but haven't properly configured and used it as a SMSC to send and receive messages. I plan on recompling with Kannel 1.4.3 as the bug report suggests.
I also have php scripts setup to receive the HTTP GET requests.

There seems to be a confusion here. I presume you refer to DLRs (SMS delivery confirmations). Otherwise kannel doesn't have php builtin and can only use php to send HTTP requests (Push) .

Sorry for the confusion. the php is my script on my server set up to receive HTTP GET requests.



Here's what I  need Kannel to do:
(1) forward the received messages through a HTTP GET across the internet;

Yes, through sms-service.

Great.
(2) to run as a Mac daemon so I can sleep the computer and it will still run.

Mac is Unix. I imagine that anything running unattented will also run in sleep mode. This is feature in Unix systems for the past 30 years (daemons).

Nice. I've used other daemons that run while in sleep mode and connect to the internet, so it would be great if I could get kannel to do the same.
(3) to tell me the signal strength of the modem (i.e. how many 'bars' so I know I'm not in a deadzone);

Dunno. Maybe someone else can help. But this is not strictly a kannel issue. If the modem gets garbled messages, kannel cannot help (GIGO).

Yeah perhaps there's some AT commands I can send through kannel.
(4) automatically restart itself if it loses connection to modem (I believe this is called parachute mode);

No. It will restart only if process panics. But not to worry. It has a queue. If it looses connection to an SMSc, this SMSc is marked inactive. Other SMSc connections can pickup the traffic. In addition, kannel will try to reconnect to the inactive SMSc, according parameters set in the configuration.

That's good. Does anyone have any practical experience with this? Does Kannel do a good job of detecting when the SMSc is down and reconnecting? (also, I'll read up on what exactly 'panic' means).
(5) and store messages received locally in a database (I believe this done through an addon called sqlbox; I use MAMP for a local instance of MySQL but would use anything that would work with this system).

I don't know MAMP, but yes, you can do that with sqlbox. Other embedded choices are controlled through "store-type" paramater in core configuration and are "file" or "spool" (directory).

Yeah that's great. Just flat files are fine too.
So I am hoping Kannel can hit a home run and do all that! Please correct me if I'm wrong and point me in the right direction on these 5 things to create this Kannel system.

Thanks.


Best of luck,
Nikos
Thanks for your comment Nikos, I appreciate it.


Reply via email to