[Asterisk-Users] Looking for better "Follow Me"

Hauke Zuehl hzuehl at athene.dnsalias.org
Fri Sep 2 01:44:25 MST 2005


Hi everybody :)

I am a new member here and hope that someone gives me a hint for my problem:
Let's say I am at work and my SIP phone (KPhone in my case) is connected to my 
private Asterisk. I want to call my wife at home so her SIP phone rings. She 
does not pick up the phone (maybe she is somewhere in the house and has to 
run to the phone) so after 15 seconds her cell phone should ring.
Until now it is a classic "follow me" but what I want:
I want both phones (SIP and cell) ringing and if one phone is picked up the 
other phone should stop ringing.

My current idea:
A C program is called via AGI. The program forks into two children. One of the 
children sleeps 15 seconds while the other drops a call file into /tmp and 
finally moves it into spool/outgoing. After 15 seconds the second child wakes 
up and also drops such a call file (but with another destination).

Now the point is:
How do I connect (or bridge) the source and the destination call?

Another idea was using libagi (or something like that) but it seems that one 
child blocks stdin or stdout (don't know yet) so the DIAL command cannot send 
its result back to the child.

I tried to understand app_queue.c and app_meetme.c from Asterisk source but 
unfortunately after reading the codes I was _really_ puzzled :(

Thanks for a little hint :)

Kind regards,
Hauke



More information about the asterisk-users mailing list