[Asterisk-Users] How to use ZapHFC ?

Martin Schenkelberg martin_s at gmx.net
Thu Apr 8 00:40:25 MST 2004


Thank you, it is working.

But now it does not wait till i entered the whole number für outbound dialing, 
there may be an error in extensions.conf

Events from internal S0 are send to [default]

All configured extensions work except the outbound dial one (Numbers starting 
with 9 should be dialed over Capi)  After the second digit * starts Capi 
dialing. How can i fix this.

Thank You, Martin

PART OF EXTENSIONS.CONF

[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}@default/n)   ; Unconditional forward
 exten=s,3,Dial(${ARG2},10,tr) ; 20sec timeout
 exten=s,4,DBget(temp=CFBS/${ARG1})  ; Get CFBS key, if not existing, goto 105
 exten=s,5,Dial(Local/${temp}@default/n) ; Forward on busy or unavailable
  ; No CFIM key
 exten=s,102,Goto(s,3)
  ; No CFBS key - voicemail ?
 exten=s,105,NoOp


[default]

; ######## SIP PHONES #############
exten => 792,1,Dial(SIP/792,${VBOXTIME},tr)
exten => 792,2,VoiceMail,u792
exten => 792,102,VoiceMail,b792

exten => 793,1,Dial(SIP/793,${VBOXTIME},tr)
exten => 793,2,VoiceMail,u793
exten => 793,102,VoiceMail,b793

;exten => 794,1,Dial(SIP/794,${VBOXTIME},tr)
;exten => 794,2,Dial(Zap/g2/1000,${VBOXTIME},tr)
exten => 794,1,Macro(stdexten,794,SIP/794)
exten => 794,2,VoiceMail,u794
exten => 794,102,VoiceMail,b794

; ######## ISDN PHONES ############
exten => 1000,1,Macro(stdexten,1000,Zap/g2/1000)
exten => 2000,1,Macro(stdexten,2000,Zap/g2/2000)

; ######## FEATURES ###########
 ; 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

; Or a conference room (you'll need to edit meetme.conf to enable this room)
;
exten => 5555,1,Meetme,5555

;Mailbox

exten => 6666,1,Ringing
exten => 6666,2,Wait(2)
exten => 6666,3,VoicemailMain
exten => 6666,4,Wait(1)
exten => 6666,5,Hangup

;externalcalling
exten => _9.,1,StripMSD,1
exten => _.,2,Dial,CAPI/${CALLERIDNUM}:bBYEXTENSION

---------------------------------------------------------------------------------------------------------------------------

Am Mittwoch, 7. April 2004 00:26 schrieb Jan Baumann:
> Martin Schenkelberg wrote:
> > My problem is that if i take off the handset the Asterisk starts dialing
> > without presenting a dialtone. It dials an empty string wich could not
> > work.
> >
> > If i type in the phone number first an then take off the handset the call
> > works fine.
> >
> > How can i change this  i want asterisk to present a dialtone to the isdn
> > phones first. After a Timeout asterisk should hang up.
>
> Hi Martin,
>
> overlap dial is what you are looking for.
>
> Try 'overlapdial=yes' in the channel definition in zapata.conf.
>
>
> Jan Baumann
> _______________________________________________
> 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