[Asterisk-Users] call forwarding and parking

Thore thore at usmail.no
Mon Apr 11 02:28:21 MST 2005


Hi !
What is wrong with my dial plan?
I can't get my call forwarding and parking to work.
Do I need to edit more config files?


Thore


extensions.conf :

[general]
static=yes
writeprotect=no

[macro-dialout]
; ${ARG1} CIDNAME
; ${ARG2} Device
; ${ARG3} Num
; ${ARG4} SIP EXT
exten => s,1,SetCIDName(${ARG1})
exten => s,2,Dial(${ARG2}${ARG3}${ARG4},,t)
exten => s,3,Playback(invalid)
exten => s,4,Hangup


[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




[globals]


[apps]
 ; Unconditional Call Forward
 exten => _*21*X.,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4})
 exten => _*21*X.,2,Hangup
 exten => #21#,1,DBdel(CFIM/${CALLERIDNUM})
 exten => #21#,2,Hangup

 ; Call Forward on Busy or Unavailable
 exten => _*61*X.,1,DBput(CFBS/${CALLERIDNUM}=${EXTEN:4})
 exten => _*61*X.,2,Hangup
 exten => #61#,1,DBdel(CFBS/${CALLERIDNUM})
 exten => #61#,2,Hangup

[iconnect]
exten => _47XXXXXXX.,1,Dial(Sip/iconnect/${EXTEN},120,t)
exten => _1XXXXXXX.,1,Dial(Sip/iconnect/${EXTEN},120,t)

[outgoing-40]
include => apps
include => parkedcalls

exten => _820XXXXX,1,Hangup
exten => _XXXXXXXX,1,Dial(Sip/33297540/${EXTEN},120,t)
exten => _XXXXXXXX,2,Congestion
exten => _820XXXXX,2,Congestion


[outgoing-45]
include => apps
include => parkedcalls

exten => _820XXXXX,1,Hangup
exten => _XXXXXXXX,1,Dial(Sip/voip/${EXTEN},120,t)
exten => _XXXXXXXX,2,Congestion
exten => _820XXXXX,2,Congestion

[local]
include => apps
include => parkedcalls
exten => 101,1,Dial(Sip/101,120)
exten => 102,1,Dial(Sip/102,120)
exten => 201,1,Dial(Sip/201,120)



[dialout-40]
include => outgoing-40
include => local
include => apps
include => parkedcalls
include => iconnect

[dialout-45]
include => outgoing-45
include => local
include => apps
include => parkedcalls


features.conf:

[general]
parkext => 700
parkpos => 701-720
context => parkedcalls
parkingtime => 60

;transferdigittimeout => 3
;courtesytone = beep

adsipark = yes
pickupexten = *8



_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at 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 





More information about the asterisk-users mailing list