[GELÖST] beronet misdn DIALSTATUS=CHANUNAVAIL

modebm

Neuer User
Mitglied seit
22 Jul 2006
Beiträge
33
Punkte für Reaktionen
0
Punkte
0
Hi, ich habe heute trixbox auf einem Rechner mit einer Beronet BN4S0 eingerichtet. Eingehende Gespräche werden an das interne Sip-Phone weitergeleitet. Ausgehende Gespräche sind aber nicht möglich. Asterisk reagiert mit dieser Antwort:

"All Cirquits are busy now, please try again later"

Hat jemand ne Idee?

Carsten

PS. hab mal alles angehängt, was freepbx geändert hat... zzgl syslog und den misdn-configs

/var/log/asterisk/full

Code:
Jul 22 23:21:24 DEBUG[3411] manager.c: Manager received command 'Command'
Jul 22 23:21:24 DEBUG[3411] manager.c: Manager received command 'Command'
Jul 22 23:21:44 DEBUG[5001] app_queue.c: Device 'IAX2/101' changed to state '1'
(Not in use) but we don't care because they're not a member of any queue.
Jul 22 23:21:44 DEBUG[5002] app_queue.c: Device 'IAX2/101' changed to state '1'
(Not in use) but we don't care because they're not a member of any queue.
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Macro'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Expression result is '1'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Macro'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Expression result is '0'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Not taking any branch
Jul 22 23:22:21 DEBUG[5011] pbx.c: Expression result is '0'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Not taking any branch
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is '101'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'NoOp'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is '101'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is 'me'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Expression result is '0'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Not taking any branch
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is '"me" <101>'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'NoOp'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is '101'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Macro'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is '0'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'AGI'
Jul 22 23:22:21 DEBUG[5012] app_queue.c: Device 'IAX2/101' changed to state '2' (In use) but we don't care because they're not a member of any queue.
Jul 22 23:22:21 VERBOSE[5011] logger.c:   recordingcheck|20060722-232221|1153603341.4: Outbound recording not enabled
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'NoOp'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Macro'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Expression result is '1'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'NoOp'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is 'xxx'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] db.c: Unable to find key '101/emergency_cid' in family 'DEVICE'
Jul 22 23:22:21 DEBUG[5011] func_db.c: DB: DEVICE/101/emergency_cid not found in database.
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is ''
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Expression result is '1'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Expression result is '0'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Not taking any branch
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Expression result is '0'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Not taking any branch
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is '"" <xxx>'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'NoOp'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is '1'
Jul 22 23:22:21 WARNING[5011] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
 1 >
      ^
Jul 22 23:22:21 WARNING[5011] ast_expr2.fl: If you have questions, please refer to doc/README.variables in the asterisk source.
Jul 22 23:22:21 DEBUG[5011] pbx.c: Expression result is '0'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Not taking any branch
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'AGI'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is 'AMP'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Expression result is '1'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is 'AMP:misdn/g:extern/'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is 'OUTNUM'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Function result is ''
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Expression result is '1'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'GotoIf'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Set'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Dial'
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-21.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable MACRO_DEPTH.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable the_num.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-20.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-19.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable post_num.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-18.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-17.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable pre_num.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-16.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-13.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable custom.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-12.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable OUTNUM.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-11.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-10.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable DIAL_TRUNK.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-9.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable DIAL_NUMBER.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-8.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-7.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable GROUP.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-6.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable MACRO_PRIORITY.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable MACRO_CONTEXT.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable MACRO_EXTEN.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable ARG1.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-outbound-callerid-s-15.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-outbound-callerid-s-14.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-outbound-callerid-s-13.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-outbound-callerid-s-12.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-outbound-callerid-s-11.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-outbound-callerid-s-7.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable TRUNKOUTCID.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-outbound-callerid-s-6.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable EMERGENCYCID.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-outbound-callerid-s-5.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable USEROUTCID.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-outbound-callerid-s-4.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable DB_RESULT.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-outbound-callerid-s-3.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-outbound-callerid-s-1.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-5.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable ARG2.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-record-enable-s-5.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-record-enable-s-4.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-record-enable-s-1.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-4.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-user-callerid-s-9.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-user-callerid-s-8.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-user-callerid-s-7.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable AMPUSERCIDNAME.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-user-callerid-s-6.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable AMPUSER.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-user-callerid-s-5.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-user-callerid-s-4.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable REALCALLERIDNUM.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-user-callerid-s-3.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-user-callerid-s-2.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-user-callerid-s-1.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-3.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-macro-dialout-trunk-s-1.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable ARG4.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable ARG3.
Jul 22 23:22:21 DEBUG[5011] channel.c: Not copying variable STACK-from-internal-0177xxxxxxxxxx-1.
Jul 22 23:22:21 DEBUG[5015] app_queue.c: Device 'mISDN/1' changed to state '2' (In use) but we don't care because they're not a member of any queue.
Jul 22 23:22:21 DEBUG[5016] app_queue.c: Device 'mISDN/1' changed to state '2' (In use) but we don't care because they're not a member of any queue.
Jul 22 23:22:21 DEBUG[3184] chan_iax2.c: Packet arrived out of order (expecting 2, got 1) (frametype = 6, subclass = 9)
Jul 22 23:22:21 DEBUG[3184] chan_iax2.c: Acking anyway
Jul 22 23:22:21 DEBUG[5011] channel.c: Hanging up channel 'mISDN/1-u2'
Jul 22 23:22:21 DEBUG[5011] app_dial.c: Exiting with DIALSTATUS=CHANUNAVAIL.
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Goto'
Jul 22 23:22:21 WARNING[5011] manager.c: Disconnecting slow (or gone) manager session!
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'NoOp'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Macro'
Jul 22 23:22:21 DEBUG[5011] pbx.c: Launching 'Playback'
Jul 22 23:22:21 DEBUG[5011] chan_iax2.c: Answering IAX2 call
Jul 22 23:22:21 DEBUG[5011] channel.c: Set channel IAX2/101-2 to write format gsm
Jul 22 23:22:21 DEBUG[5017] app_queue.c: Device 'mISDN/1' changed to state '0' (Unknown) but we don't care because they're not a member of any queue.
Jul 22 23:22:21 DEBUG[5018] app_queue.c: Device 'mISDN/1' changed to state '0' (Unknown) but we don't care because they're not a member of any queue.
Jul 22 23:22:21 DEBUG[5019] app_queue.c: Device 'IAX2/101' changed to state '2' (In use) but we don't care because they're not a member of any queue.
Jul 22 23:22:21 DEBUG[3184] chan_iax2.c: Ooh, voice format changed to 4
Jul 22 23:22:21 DEBUG[3184] channel.c: Set channel IAX2/101-2 to read format ulaw
Jul 22 23:22:22 DEBUG[3184] chan_iax2.c: Immediately destroying 2, having received hangup
Jul 22 23:22:22 DEBUG[5011] channel.c: Set channel IAX2/101-2 to write format ulaw
Jul 22 23:22:22 DEBUG[5011] app_macro.c: Spawn extension (macro-outisbusy,s,1) exited non-zero on 'IAX2/101-2' in macro 'outisbusy'
Jul 22 23:22:22 DEBUG[5011] pbx.c: Spawn extension (macro-outisbusy,s,1) exited non-zero on 'IAX2/101-2'
Jul 22 23:22:22 DEBUG[5011] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Jul 22 23:22:22 DEBUG[5011] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES ('2006-07-22 23:22:21','9xxxxxxx','9xxxxxxx','0177xxxxxxx','from-internal', 'IAX2/101-2','mISDN/1-u2','Playback','all-circuits-busy-now',1,1,'ANSWERED',3,'','1153603341.4')
Jul 22 23:22:22 DEBUG[5011] channel.c: Hanging up channel 'IAX2/101-2'
Jul 22 23:22:22 DEBUG[5011] chan_iax2.c: We're hanging up IAX2/101-2 now...
Jul 22 23:22:22 DEBUG[5011] chan_iax2.c: Really destroying IAX2/101-2 now...
Jul 22 23:22:22 DEBUG[5020] app_queue.c: Device 'IAX2/101' changed to state '1' (Not in use) but we don't care because they're not a member of any queue.
Jul 22 23:22:26 DEBUG[5021] manager.c: Manager received command 'Login'
Jul 22 23:22:26 DEBUG[5021] config.c: Parsing /etc/asterisk/manager.conf
Jul 22 23:22:26 DEBUG[5021] config.c: Parsing /etc/asterisk/manager_custom.conf
Jul 22 23:22:26 WARNING[5021] config.c: Unknown directive 'permit=192.168.1.0/255.255.255.0' at line 18 of manager_custom.conf
Jul 22 23:22:26 DEBUG[5021] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Jul 22 23:22:26 DEBUG[5021] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Jul 22 23:22:26 DEBUG[5021] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Jul 22 23:22:26 DEBUG[5021] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Jul 22 23:22:26 DEBUG[5021] manager.c: Manager received command ''
Jul 22 23:22:26 DEBUG[5021] manager.c: Manager received command 'Command'
Jul 22 23:22:26 DEBUG[5021] manager.c: Manager received command ''

/etc/misdn-init.conf:

Code:
card=1,0x4
te_ptmp=1,2,3,4
poll=128
#pcm=1,1
dsp_options=0
dtmftreshold=100
debug=0

/etc/asterisk/misdn.conf

Code:
[general]
misdn_init=/etc/misdn-init.conf
debug=4
ntdebugflags=0
ntdebugfile=/var/log/misdn-nt.log
bridging=yes
stop_tone_after_first_digit=yes
append_digits2exten=yes
dynamic_crypt=no
crypt_prefix=**
crypt_keys=test,muh

[default]
context=misdn
language=de
musicclass=default
senddtmf=yes
far_alerting=no
allowed_bearers=all
nationalprefix=0
internationalprefix=00
rxgain=0
txgain=0
te_choose_channel=no
pmp_l1_check=yes
pp_l2_check=no
need_more_infos=no
method=standard
dialplan=0
localdialplan=0
cpndialplan=0
early_bconnect=yes
incoming_early_audio=no
nodialtone=no
presentation=-1
screen=-1
echocancelwhenbridged=no
echotraining=no
jitterbuffer=4000
jitterbuffer_upper_threshold=0
hdlc=no

[extern]
ports=1,2,3,4
context=from-pstn
msns=xxx,yyy

/etc/asterisk/extentions_additional.conf

Code:
[globals]
#include globals_custom.conf
CALLFILENAME = ""
DIAL_OPTIONS = tr
TRUNK_OPTIONS = r
DIAL_OUT = 9
FAX =
FAX_RX = system
FAX_RX_EMAIL = [email protected]
INCOMING = group-all
NULL = ""
OPERATOR =
PARKNOTIFY = SIP/200
RECORDEXTEN = ""
RINGTIMER = 15
DIRECTORY = last
AFTER_INCOMING =
IN_OVERRIDE = forcereghours
REGTIME = 7:55-17:05
REGDAYS = mon-fri
DIRECTORY_OPTS =
DIALOUTIDS = 1/
OUTCID_1 = xxx
VM_PREFIX = *
TONEZONE = us
ALLOW_SIP_ANON = no
FAX_RX_FROM = [email protected]
VM_DDTYPE =
VM_GAIN =
OUTMAXCHANS_1 =
OUTPREFIX_1 =
OUT_1 = AMP:misdn/g:extern/$OUTNUM$

[app-callwaiting-cwoff]
include => app-callwaiting-cwoff-custom
exten => *71,1,Answer
exten => *71,n,Wait(1)
exten => *71,n,Macro(user-callerid,)
exten => *71,n,dbDel(CW/${CALLERID(number)})
exten => *71,n,Playback(call-waiting&de-activated)
exten => *71,n,Macro(hangupcall,)

; end of [app-callwaiting-cwoff]

[app-callwaiting-cwon]
include => app-callwaiting-cwon-custom
exten => *70,1,Answer
exten => *70,n,Wait(1)
exten => *70,n,Macro(user-callerid,)
exten => *70,n,Set(DB(CW/${CALLERID(number)})=ENABLED)
exten => *70,n,Playback(call-waiting&activated)
exten => *70,n,Macro(hangupcall,)

; end of [app-callwaiting-cwon]


[app-dnd-off]
include => app-dnd-off-custom
exten => *79,1,Answer
exten => *79,n,Wait(1)
exten => *79,n,Macro(user-callerid,)
exten => *79,n,dbDel(DND/${CALLERID(number)})
exten => *79,n,Playback(do-not-disturb&de-activated)
exten => *79,n,Macro(hangupcall,)

; end of [app-dnd-off]

[app-dnd-on]
include => app-dnd-on-custom
exten => *78,1,Answer
exten => *78,n,Wait(1)
exten => *78,n,Macro(user-callerid,)
exten => *78,n,Set(DB(DND/${CALLERID(number)})=YES)
exten => *78,n,Playback(do-not-disturb&activated)
exten => *78,n,Macro(hangupcall,)

; end of [app-dnd-on]


[app-cf-busy-off]
include => app-cf-busy-off-custom
exten => *91,1,Answer
exten => *91,n,Wait(1)
exten => *91,n,Macro(user-callerid,)
exten => *91,n,dbDel(CFB/${CALLERID(number)})
exten => *91,n,Playback(call-fwd-on-busy&de-activated)
exten => *91,n,Macro(hangupcall,)
exten => _*91.,1,Answer
exten => _*91.,n,Wait(1)
exten => _*91.,n,Set(fromext=${EXTEN:3})
exten => _*91.,n,dbDel(CFB/${fromext})
exten => _*91.,n,Playback(call-fwd-on-busy&for&extension)
exten => _*91.,n,SayDigits(${fromext})
exten => _*91.,n,Playback(cancelled)
exten => _*91.,n,Macro(hangupcall,)

; end of [app-cf-busy-off]

[app-cf-busy-off-any]
include => app-cf-busy-off-any-custom
exten => *92,1,Answer
exten => *92,n,Wait(1)
exten => *92,n,Playback(please-enter-your&extension)
exten => *92,n,Read(fromext,then-press-pound,,)
exten => *92,n,Wait(1)
exten => *92,n,dbDel(CFB/${fromext})
exten => *92,n,Playback(call-fwd-on-busy&for&extension)
exten => *92,n,SayDigits(${fromext})
exten => *92,n,Playback(cancelled)
exten => *92,n,Macro(hangupcall,)

; end of [app-cf-busy-off-any]


[app-cf-busy-on]
include => app-cf-busy-on-custom
exten => *90,1,Answer
exten => *90,n,Wait(1)
exten => *90,n,Playback(call-fwd-on-busy)
exten => *90,n,Playback(please-enter-your&extension)
exten => *90,n,Read(fromext,then-press-pound,,)
exten => *90,n,Set(fromext=${IF($["foo${fromext}"="foo"]?${CALLERID(number)}:${f
romext})})
exten => *90,n,Wait(1)
exten => *90,n(startread),Playback(ent-target-attendant)
exten => *90,n,Read(toext,then-press-pound,,)
exten => *90,n,GotoIf($["foo${toext}"="foo"]?startread)
exten => *90,n,Wait(1)
exten => *90,n,Set(DB(CFB/${fromext})=${toext})
exten => *90,n,Playback(call-fwd-on-busy&for&extension)
exten => *90,n,SayDigits(${fromext})
exten => *90,n,Playback(is-set-to)
exten => *90,n,SayDigits(${toext})
exten => *90,n,Macro(hangupcall,)
exten => _*90.,1,Answer
exten => _*90.,n,Wait(1)
exten => _*90.,n,Macro(user-callerid,)
exten => _*90.,n,Set(DB(CFB/${CALLERID(number)})=${EXTEN:3})
exten => _*90.,n,Playback(call-fwd-on-busy&for&extension)
exten => _*90.,n,SayDigits(${CALLERID(number)})
exten => _*90.,n,Playback(is-set-to)
exten => _*90.,n,SayDigits(${EXTEN:3})
exten => _*90.,n,Macro(hangupcall,)

; end of [app-cf-busy-on]


[app-cf-off]
include => app-cf-off-custom
exten => *73,1,Answer
exten => *73,n,Wait(1)
exten => *73,n,Macro(user-callerid,)
exten => *73,n,dbDel(CF/${CALLERID(number)})
exten => *73,n,Playback(call-fwd-unconditional&de-activated)
exten => *73,n,Macro(hangupcall,)
exten => _*73.,1,Answer
exten => _*73.,n,Wait(1)
exten => _*73.,n,Set(fromext=${EXTEN:3})
exten => _*73.,n,dbDel(CF/${fromext})
exten => _*73.,n,Playback(call-fwd-unconditional&for&extension)
exten => _*73.,n,SayDigits(${fromext})
exten => _*73.,n,Playback(cancelled)
exten => _*73.,n,Macro(hangupcall,)

; end of [app-cf-off]


[app-cf-off-any]
include => app-cf-off-any-custom
exten => *74,1,Answer
exten => *74,n,Wait(1)
exten => *74,n,Playback(please-enter-your&extension)
exten => *74,n,Read(fromext,then-press-pound,,)
exten => *74,n,Wait(1)
exten => *74,n,dbDel(CF/${fromext})
exten => *74,n,Playback(call-fwd-unconditional&for&extension)
exten => *74,n,SayDigits(${fromext})
exten => *74,n,Playback(cancelled)
exten => *74,n,Macro(hangupcall,)

; end of [app-cf-off-any]


[app-cf-on]
include => app-cf-on-custom
exten => *72,1,Answer
exten => *72,n,Wait(1)
exten => *72,n,Playback(call-fwd-unconditional)
exten => *72,n,Playback(please-enter-your&extension)
exten => *72,n,Read(fromext,then-press-pound,,)
exten => *72,n,Set(fromext=${IF($["foo${fromext}"="foo"]?${CALLERID(number)}:${f
romext})})
exten => *72,n,Wait(1)
exten => *72,n(startread),Playback(ent-target-attendant)
exten => *72,n,Read(toext,then-press-pound,,)
exten => *72,n,GotoIf($["foo${toext}"="foo"]?startread)
exten => *72,n,Wait(1)
exten => *72,n,Set(DB(CF/${fromext})=${toext})
exten => *72,n,Playback(call-fwd-unconditional&for&extension)
exten => *72,n,SayDigits(${fromext})
exten => *72,n,Playback(is-set-to)
exten => *72,n,SayDigits(${toext})
exten => *72,n,Macro(hangupcall,)
exten => _*72.,1,Answer
exten => _*72.,n,Wait(1)
exten => _*72.,n,Macro(user-callerid,)
exten => _*72.,n,Set(DB(CF/${CALLERID(number)})=${EXTEN:3})
exten => _*72.,n,Playback(call-fwd-unconditional&for&extension)
exten => _*72.,n,SayDigits(${CALLERID(number)})
exten => _*72.,n,Playback(is-set-to)
exten => _*72.,n,SayDigits(${EXTEN:3})
exten => _*72.,n,Macro(hangupcall,)

; end of [app-cf-on]


[app-cf-unavailable-off]
include => app-cf-unavailable-off-custom
exten => *53,1,Answer
exten => *53,n,Wait(1)
exten => *53,n,Macro(user-callerid,)
exten => *53,n,dbDel(CFU/${CALLERID(number)})
exten => *53,n,Playback(call-fwd-no-ans&de-activated)
exten => *53,n,Macro(hangupcall,)
exten => _*53.,1,Answer
exten => _*53.,n,Wait(1)
exten => _*53.,n,Set(fromext=${EXTEN:3})
exten => _*53.,n,dbDel(CFU/${fromext})
exten => _*53.,n,Playback(call-fwd-no-ans&for&extension)
exten => _*53.,n,SayDigits(${fromext})
exten => _*53.,n,Playback(cancelled)
exten => _*53.,n,Macro(hangupcall,)

; end of [app-cf-unavailable-off]


[app-cf-unavailable-on]
include => app-cf-unavailable-on-custom
exten => *52,1,Answer
exten => *52,n,Wait(1)
exten => *52,n,Playback(call-fwd-no-ans)
exten => *52,n,Playback(please-enter-your&extension)
exten => *52,n,Read(fromext,then-press-pound,,)
exten => *52,n,Set(fromext=${IF($["foo${fromext}"="foo"]?${CALLERID(number)}:${f
romext})})
exten => *52,n,Wait(1)
exten => *52,n(startread),Playback(ent-target-attendant)
exten => *52,n,Read(toext,then-press-pound,,)
exten => *52,n,GotoIf($["foo${toext}"="foo"]?startread)
exten => *52,n,Wait(1)
exten => *52,n,Set(DB(CFU/${fromext})=${toext})
exten => *52,n,Playback(call-fwd-no-ans&for&extension)
exten => *52,n,SayDigits(${fromext})
exten => *52,n,Playback(is-set-to)
exten => *52,n,SayDigits(${toext})
exten => *52,n,Macro(hangupcall,)
exten => _*52.,1,Answer
exten => _*52.,n,Wait(1)
exten => _*52.,n,Macro(user-callerid,)
exten => _*52.,n,Set(DB(CFU/${CALLERID(number)})=${EXTEN:3})
exten => _*52.,n,Playback(call-fwd-no-ans&for&extension)
exten => _*52.,n,SayDigits(${CALLERID(number)})
exten => _*52.,n,Playback(is-set-to)
exten => _*52.,n,SayDigits(${EXTEN:3})
exten => _*52.,n,Macro(hangupcall,)

; end of [app-cf-unavailable-on]


[app-recordings]
include => app-recordings-custom
exten => *77,1,Macro(user-callerid,)
exten => *77,n,Wait(2)
exten => *77,n,Macro(systemrecording,dorecord)
exten => *99,1,Macro(user-callerid,)
exten => *99,n,Wait(2)
exten => *99,n,Macro(systemrecording,docheck)

; end of [app-recordings]


[app-dialvm]
include => app-dialvm-custom
exten => *98,1,Answer
exten => *98,n,Wait(1)
exten => *98,n,VoiceMailMain()
exten => *98,n,Macro(hangupcall,)
exten => _*98.,1,Answer
exten => _*98.,n,Wait(1)
exten => _*98.,n,Macro(get-vmcontext,${EXTEN:3})
exten => _*98.,n,VoiceMailMain(${EXTEN:3}@${VMCONTEXT})
exten => _*98.,n,Macro(hangupcall,)

; end of [app-dialvm]


[app-vmmain]
include => app-vmmain-custom
exten => *97,1,Answer
exten => *97,n,Wait(1)
exten => *97,n,Macro(user-callerid,)
exten => *97,n,Macro(get-vmcontext,${CALLERID(num)})
exten => *97,n,VoiceMailMain(${CALLERID(num)}@${VMCONTEXT})
exten => *97,n,Macro(hangupcall,)

; end of [app-vmmain]


[app-userlogonoff]
include => app-userlogonoff-custom
exten => *12,1,Macro(user-logoff,)
exten => *12,n,Hangup
exten => *11,1,Macro(user-logon,)
exten => *11,n,Hangup
exten => _*11.,1,Macro(user-logon,${EXTEN:3},)
exten => _*11.,n,Hangup

; end of [app-userlogonoff]


[app-zapbarge]
include => app-zapbarge-custom
exten => 888,1,Macro(user-callerid,)
exten => 888,n,Set(GROUP()=${CALLERID(number)})
exten => 888,n,Answer
exten => 888,n,Wait(1)
exten => 888,n,ZapBarge()
exten => 888,n,Hangup

; end of [app-zapbarge]


[ext-test]
include => ext-test-custom
exten => 7777,1,Goto(from-pstn,s,1)
exten => 666,1,Goto(ext-fax,in_fax,1)
exten => h,1,Macro(hangupcall,)

; end of [ext-test]


[ext-did]
include => ext-did-custom
exten => 94884546,1,Set(FROM_DID=94884546)
exten => 94884546,n,Goto(ext-local,101,1)
exten => s,1,Noop(No DID or CID Match)
exten => s,n,Answer
exten => s,n,Wait(2)
exten => s,n,Playback(ss-noservice)
exten => s,n,SayAlpha(${FROM_DID})
exten => _[*#X].,1,Set(FROM_DID=${EXTEN})
exten => _[*#X].,n,Noop(Received an unknown call with DID set to ${EXTEN})
exten => _[*#X].,n,Goto(ext-did,s,1)

; end of [ext-did]


[ext-local]
include => ext-local-custom
exten => 100,1,Macro(exten-vm,100,100)
exten => 100,hint,SIP/100
exten => ${VM_PREFIX}100,1,Macro(vm,100,DIRECTDIAL)
exten => 101,1,Macro(exten-vm,101,101)
exten => 101,hint,IAX2/101
exten => ${VM_PREFIX}101,1,Macro(vm,101,DIRECTDIAL)

; end of [ext-local]


[outbound-allroutes]
include => outbound-allroutes-custom
include => outrt-001-privat
exten => foo,1,Noop(bar)

; end of [outbound-allroutes]


[outrt-001-privat]
include => outrt-001-privat-custom
exten => _X.,1,Macro(dialout-trunk,1,${EXTEN},,)
exten => _X.,n,Macro(outisbusy,)

; end of [outrt-001-privat]


[from-internal-additional]
include => from-internal-additional-custom
include => app-callwaiting-cwoff
include => app-callwaiting-cwon
include => ext-meetme
include => app-dnd-off
include => app-dnd-on
include => app-cf-busy-off
include => app-cf-busy-off-any
include => app-cf-busy-on
include => app-cf-off
include => app-cf-off-any
include => app-cf-on
include => app-cf-unavailable-off
include => app-cf-unavailable-on
include => app-recordings
include => app-dialvm
include => app-vmmain
include => ext-queues
include => ext-group
include => app-userlogonoff
include => app-zapbarge
include => ext-test
include => ext-local
include => outbound-allroutes
exten => h,1,Hangup

; end of [from-internal-additional]

/etc/asterisk/localprefixes.conf

Code:
[trunk-1]
rule1=X.
 
Zuletzt bearbeitet:
hat sich erledigt, trixbox hatte seine chance...

jetzt regiert der sarge erfolgreich ;)
 
Kannst du evtl ein ERLEDIGT: bzw. GELÖST: davorschreiben ? Sons schaun Leute wie ich schon zum 2. mal hierrein :) Thx.

Gruss,

Jörg
 

Statistik des Forums

Themen
244,868
Beiträge
2,219,767
Mitglieder
371,584
Neuestes Mitglied
porcupine
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.