From: Nedi <ne...@gm...> - 2007-05-27 19:17:15
|
I try to forward all incoming calls of my internal 13 to my mobile phone if I use followed code in my astlinux extensions.conf I have no success. i dial my internal 13 and 13 rings 13 the call was not forwarded to my mobile. I typed on my softphone *21*and my mobile number if I call normal from 13 to mobile it works ------------------------------------------------------- ; Unconditional Call Forward exten => _*21*X.,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4}) exten => _*21*X.,2,Playback(call-fwd-unconditional) exten => _*21*X.,3,Hangup exten => _*22*,1,DBdel(CFIM/${CALLERIDNUM}) exten => _*22*,2,Playback(call-fwd-cancelled) exten => _*22*,3,Hangup ------------------------------ can be i use something wrong or old in my extensions.conf or sip.conf or I must something activate to work with dbput and dgdel or is there another way to realise that with calls forwarding I have in my extensions.conf exten =>13,1,Dial(SIP/13,25,r) exten =>13,n,Answer exten =>13,n,Playback(vm-nobodyavail) exten =>13,n,Voicemail(13) exten =>13,n,Hangup and in my sip [13] type=friend username=13 secret=13 callerid="13" <13> host=dynamic mailbox=13@default dtmfmode=rfc2833 canreinvite=no context=13 regards nedi |
From: Nedi <ne...@gm...> - 2007-05-30 22:25:35
|
Hello, I come back, has anyone idea how can i make call forwarding it would be great anyone cann help me with. nedi |
From: Gary G. H. <ghe...@co...> - 2007-05-31 00:15:33
|
Nedi: I prefer a simple dialplan approach ... In my EXTENSIONS.CONF I have a few "Alias" extensions ... If you dial "5000" it rings a sip phone on my desk ... If you dial "5001" the call get routed out my VoIP provider and rings my cell phone ... So ext 5001 is just an alias that calls a "DIAL <My Cell Phone>" command ... I also use similar alias extensions along with a "dbput/dbget" to set internal extensions to forward to another internal extension when someone is out of office ... I have also setup a pretty determined "find me" scenario for my paying clients ... They have a special extension that they have been told to dial when trying to reach me ... In this scenario, the system tries me at my desk, then at my home number and finally at my cell phone ... Asterisk stays in control all the way to the cell phone handoff ... At the cell phone handoff, Asterisk just lets it ring until voicemail on the cell phone takes the call as that was the last resort ... In any case, the summary is that there are many ways to handle call forwarding depending on what you are trying to get done ... Most involve using either a "queue" or some form of "manual set forwarding number" at the phone ... There are many examples of various methods on voip-info.org ... The way I am doing it now was taken directly from one of the examples there and tweaked a bit for my needs ... G.Hendershot -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Nedi Sent: Wednesday, May 30, 2007 6:25 PM To: Astlinux list Subject: [Astlinux-users] Call Forwarding in my Astlinux I have no success. Hello, I come back, has anyone idea how can i make call forwarding it would be great anyone cann help me with. nedi ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Astlinux-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pa...@kr.... |
From: Gary G. H. <ghe...@co...> - 2007-05-31 16:36:53
|
Nedi: Below is a cut/paste of a large section of my EXTENSIONS.CONF file that provides examples of call forwarding, call waiting and some other interesting features ... This is a code snippet and should not be interpretted as a complete plug-n-play implementation ... Getting these features to work will require some trial and error ... And no, I am NOT the author ... These were found on VOIP-INFO.ORG and modified only slightly for my needs ... G.Hendershot *************************************** ** start *************************************** ;********************************************************** ; work in progress - untested applications ;********************************************************** ; ; [untested-apps] ; ; ; these are untested and are assumed to need a lot of work before making active ; ; Unconditional Call Forward ; exten => _*21*X.,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4}) exten => _*21*X.,2,Playback(custom-sounds/call-fwd-unconditional) exten => _*21*X.,3,Hangup exten => _*22*,1,DBdel(CFIM/${CALLERIDNUM}) exten => _*22*,2,Playback(custom-sounds/call-fwd-cancelled) exten => _*22*,3,Hangup ; ; Call Forward on Busy or Unavailable ; exten => _*61*X.,1,DBput(CFBS/${CALLERIDNUM}=${EXTEN:4}) exten => _*61*X.,2,Playback(custom-sounds/call-fwd-busy) exten => _*61*X.,3,Hangup exten => _*62*,1,DBdel(CFBS/${CALLERIDNUM}) exten => _*62*,2,Playback(custom-sounds/call-fwd-cancelled) exten => _*62*,3,Hangup ; ; Repeat last dialled number ; exten = *5,1,DBget(temp=RepeatDial/${CALLERIDNUM}) exten = *5,2,Dial(Local/${temp}@router) ; Last known exten = *5,102,Congestion ; ;call waiting ; exten => *70,1,Answer exten => *70,2,Wait(1) exten => *70,3,DBput(CW/${CALLERIDNUM}=ENABLED) exten => *70,4,Playback(custom-sounds/callwaiting) exten => *70,5,Playback(custom-sounds/activated) ; exten => *70,6,Macro(hangupcall) exten => *71,1,Answer exten => *71,2,Wait(1) exten => *71,3,DBdel(CW/${CALLERIDNUM}) exten => *71,4,Playback(custom-sounds/callwaiting) exten => *71,5,Playback(custom-sounds/de-activated) ; exten => *71,6,Macro(hangupcall) ; ; dialed call forward app - forwards calling extension ; exten => _*72.,1,DBput(CF/${CALLERIDNUM}=${EXTEN:3}) exten => _*72.,2,Answer exten => _*72.,3,Wait(1) exten => _*72.,4,Playback(custom-sounds/call-fwd-unconditional) exten => _*72.,5,Playback(custom-sounds/for) exten => _*72.,6,Playback(custom-sounds/extension) exten => _*72.,7,SayDigits(${CALLERIDNUM}) exten => _*72.,8,Playback(custom-sounds/is-set-to) exten => _*72.,9,SayDigits(${EXTEN:3}) ; exten => _*72.,10,Macro(hangupcall) ; ; prompting call forward app - forwards entered extension ; exten => *72,1,Answer exten => *72,2,Wait(1) exten => *72,3,BackGround(custom-sounds/please-enter-your) exten => *72,4,Playback(custom-sounds/extension) exten => *72,5,Read(fromext,custom-sounds/then-press-pound) exten => *72,6,Wait(1) exten => *72,7,BackGround(custom-sounds/ent-target-attendant) exten => *72,8,Read(toext,custom-sounds/then-press-pound) exten => *72,9,Wait(1) exten => *72,10,DBput(CF/${fromext}=${toext}) exten => *72,11,Playback(custom-sounds/call-fwd-unconditional) exten => *72,12,Playback(custom-sounds/for) exten => *72,13,Playback(custom-sounds/extension) exten => *72,14,SayDigits(${fromext}) exten => *72,15,Playback(custom-sounds/is-set-to) exten => *72,16,SayDigits(${toext}) ; exten => *72,17,Macro(hangupcall) ; ; cancels dialed extension call forward ; exten => _*73.,1,DBdel(CF/${EXTEN:3}) exten => _*73.,2,Answer exten => _*73.,3,Wait(1) exten => _*73.,4,SayDigits(${EXTEN:3}) exten => _*73.,5,Playback(custom-sounds/call-fwd-cancelled) ; exten => _*73.,6,Macro(hangupcall) ; ; cancels call forward for calling extension ; exten => *73,1,DBdel(CF/${CALLERIDNUM}) exten => *73,2,Answer exten => *73,3,Wait(1) exten => *73,4,Playback(custom-sounds/call-fwd-cancelled) ; exten => *73,5,Macro(hangupcall) ; ; dialed call forward on busy app - forwards calling extension when busy ; exten => _*90.,1,DBput(CFB/${CALLERIDNUM}=${EXTEN:3}) exten => _*90.,2,Answer exten => _*90.,3,Wait(1) exten => _*90.,4,Playback(custom-sounds/call-fwd-on-busy) exten => _*90.,5,Playback(custom-sounds/for) exten => _*90.,6,Playback(custom-sounds/extension) exten => _*90.,7,SayDigits(${CALLERIDNUM}) exten => _*90.,8,Playback(custom-sounds/is-set-to) exten => _*90.,9,SayDigits(${EXTEN:3}) ; exten => _*90.,10,Macro(hangupcall) ; ; cancels call forward on busy for calling extension ; exten => *91,1,DBdel(CFB/${CALLERIDNUM}) exten => *91,2,Answer exten => *91,3,Wait(1) exten => *91,4,Playback(custom-sounds/call-fwd-on-busy) exten => *91,5,Playback(custom-sounds/de-activated) ; exten => *91,6,Macro(hangupcall) ; ; record messages ; exten => *77,1,Wait(2) exten => *77,2,Record(${CALLERIDNUM}ivrrecording:wav) exten => *77,3,Wait(2) exten => *77,4,Hangup ; exten => *99,1,Playback(${CALLERIDNUM}ivrrecording) exten => *99,2,Wait(2) exten => *99,3,Hangup ; ; company directory ; ; exten => *411,1,Directory(default|from-sip-internal|l) ; *************************************** ** end *************************************** -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Nedi Sent: Wednesday, May 30, 2007 6:25 PM To: Astlinux list Subject: [Astlinux-users] Call Forwarding in my Astlinux I have no success. Hello, I come back, has anyone idea how can i make call forwarding it would be great anyone cann help me with. nedi ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Astlinux-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pa...@kr.... |
From: Michael <ast...@sp...> - 2007-05-31 16:51:04
|
Nedi, The piece you are missing is in your destination extension. exten =>13,1,Dial(SIP/13,25,r) exten =>13,n,Answer exten =>13,n,Playback(vm-nobodyavail) exten =>13,n,Voicemail(13) exten =>13,n,Hangup This will not work because it is not checking the DB for routing, you are sending all calls to SIP/13. You probably want to make use of a macro such as this: exten => 13,1,Macro(stdexten,13,SIP/13) Notice how the DB is checked in this example from http://www.voip-info.org/wiki/view/Asterisk+call+forwarding [macro-stdexten] ; ; Standard extension macro (with call forwarding): ; ${ARG1} - Extension(we could have used ${MACRO_EXTEN} here as well ; ${ARG2} - Device(s) to ring ; exten => s,1,DBget(temp=CFIM/${ARG1}) ; Get CFIM key, if not existing, goto 102 exten => s,2,Dial(Local/${temp}@pbx/n) ; Unconditional forward exten => s,3,Dial(${ARG2},20) ; 20sec timeout exten => s,4,DBget(temp=CFBS/${ARG1}) ; Get CFBS key, if not existing, goto 105 exten => s,5,Dial(Local/${temp}@pbx/n) ; Forward on busy or unavailable ; No CFIM key exten => s,102,Goto(s,3) ; No CFBS key - voicemail ? exten => s,105,Busy If you don't want to use the macro, you can use macro-stdexten as a model for what extension 13 needs to do. Regards, Michael -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Nedi Sent: Wednesday, May 30, 2007 6:25 PM To: Astlinux list Subject: [Astlinux-users] Call Forwarding in my Astlinux I have no success. Hello, I come back, has anyone idea how can i make call forwarding it would be great anyone cann help me with. nedi |
From: Mark P. <g7...@g7...> - 2007-05-29 16:23:12
|
They do say that 13 is an unlucky number ;-} On Sun, 2007-05-27 at 21:16 +0200, Nedi wrote: > I try to forward all incoming calls of my internal 13 to my mobile phone if > I use followed code in my astlinux extensions.conf I have no success. > > i dial my internal 13 and 13 rings 13 the call was not forwarded to my > mobile. > > I typed on my softphone *21*and my mobile number > > if I call normal from 13 to mobile it works > > ------------------------------------------------------- > > ; Unconditional Call Forward > > exten => _*21*X.,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4}) > > exten => _*21*X.,2,Playback(call-fwd-unconditional) > > exten => _*21*X.,3,Hangup > > exten => _*22*,1,DBdel(CFIM/${CALLERIDNUM}) > > exten => _*22*,2,Playback(call-fwd-cancelled) > > exten => _*22*,3,Hangup > > ------------------------------ > > can be i use something wrong or old in my extensions.conf or sip.conf or > I must something activate to work with dbput and dgdel > > or is there another way to realise that with calls forwarding > > I have in my extensions.conf > > > > exten =>13,1,Dial(SIP/13,25,r) > exten =>13,n,Answer > exten =>13,n,Playback(vm-nobodyavail) > exten =>13,n,Voicemail(13) > exten =>13,n,Hangup > > > > and in my sip > > > > [13] > > type=friend > username=13 > secret=13 > callerid="13" <13> > host=dynamic > mailbox=13@default > dtmfmode=rfc2833 > canreinvite=no > context=13 > > > > regards nedi > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Astlinux-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to pa...@kr.... |