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
On 10:44, Fri 02 Sep 05, Hauke Zuehl wrote:> 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. >We do something like this: exten => michiel,1,Dial(SCCP/michiel,15,t) exten => michiel,2,Dial(SCCP/michiel&IAX2/vanbaak/${CELL_MICHIEL},40,t) Maybe thats easier then writing C code ;) -- Michiel van Baak http://michiel.vanbaak.info michiel@vanbaak.info GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D "Why is it drug addicts and computer afficionados are both called users?"
Hi Michiel :) Am Freitag, 2. September 2005 11:25 schrieb Michiel van Baak:> > We do something like this: > > exten => michiel,1,Dial(SCCP/michiel,15,t) > exten => > michiel,2,Dial(SCCP/michiel&IAX2/vanbaak/${CELL_MICHIEL},40,t)Aehhh...SCCP? Never heard about that...but I will google for this so thanks for your answer :)> > Maybe thats easier then writing C code ;)I hope so! Regards, Hauke
On 11:29, Fri 02 Sep 05, Hauke Zuehl wrote:> Hi Michiel :) > > Am Freitag, 2. September 2005 11:25 schrieb Michiel van Baak: > > > > We do something like this: > > > > exten => michiel,1,Dial(SCCP/michiel,15,t) > > exten => > > michiel,2,Dial(SCCP/michiel&IAX2/vanbaak/${CELL_MICHIEL},40,t) > > Aehhh...SCCP? Never heard about that...but I will google for this so thanks > for your answer :) >Sorry, that was a snipped from my conf. SCCP is a channeltype, just like SIP and IAX2 What I meant to say with the example is, you can ring multiple phones in 1 dial statement, and the first one who picks up gets the call, the other phone will stop ringing. You do this with the & sign as you can see in my example> > > > Maybe thats easier then writing C code ;) > > I hope so!-- Michiel van Baak http://michiel.vanbaak.info michiel@vanbaak.info GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D "Why is it drug addicts and computer afficionados are both called users?"
Hauke Zuehl ha scritto:>Aehhh...SCCP? Never heard about that...but I will google for this so thanks >for your answer :) > >protocol for cisco phones http://chan-sccp.berlios.de/ http://chan-sccp.org Sergio
Try amportal which is a sourceforge project, but remember if a cell is one of the numbers there will always bea delay while it is dialed and it might go to voicemail anyway. on Friday 09/02/2005 Hauke Zuehl(hzuehl@athene.dnsalias.org) wrote > 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 > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
Hauke Zuehl wrote:> 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.This is easially accomplished via the following single line: exten => 3044,1,Dial(SIP/herphone&ZAP/R1d/5551212,60) Go read about app_dial on the wiki; it has lots of features built into it. -Matthew