.titleBar { margin-bottom: 5px!important; }

asterisk auf eisfair kann nicht rausrufen

Dieses Thema im Forum "Asterisk Allgemein" wurde erstellt von dawas.online, 13 Okt. 2006.

  1. dawas.online

    dawas.online Neuer User

    Registriert seit:
    11 Okt. 2006
    Beiträge:
    11
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    #1 dawas.online, 13 Okt. 2006
    Zuletzt bearbeitet: 13 Okt. 2006
    Hallo,
    ich versuche seit Tagen asterisk auf meinem eisserver zum laufen zu bekommen.
    Rufe über sipgate und isdn klingeln auch auf dem isdntelefon was an die hfc-s karte angeschlossen ist.

    Jetzt zu meinem Problem, ich kann nicht rausrufen.

    Ich bin am verzweifel, habe schon alles mögliche probiert aber es klappt nicht.

    Ich bin kein Linux crack, habe aber ein grundwissen, mit dem das eigendlich klappen sollte.

    Es wäre schön wenn mir jemand einen Tipgeben könnte.


    hier der inhalt meiner
    extensions.conf:

    [general]

    static=yes
    writeprotect=no

    [globals]
    localdialtimeout=120

    [default]
    include => user
    include => test
    include => incoming
    include => outgoing
    include => error

    [test]
    exten => #100,1,Set(LANGUAGE()=de)
    exten => #100,2,Answer()
    exten => #100,3,MP3Player(/var/lib/asterisk/mohmp3/fpm-calm-river.mp3)
    exten => #100,4,Congestion()
    exten => #100,5,Wait(10)
    exten => #100,6,Hangup()

    exten => #101,1,Set(LANGUAGE()=de)
    exten => #101,2,Answer()
    exten => #101,3,Milliwatt()
    exten => #101,4,Congestion()
    exten => #101,5,Wait(10)
    exten => #101,6,Hangup()

    exten => #102,1,Set(LANGUAGE()=de)
    exten => #102,2,Answer()
    exten => #102,3,SayDigits(${CALLERIDNUM})
    exten => #102,4,Congestion()
    exten => #102,5,Wait(10)
    exten => #102,6,Hangup()

    exten => #103,1,Set(LANGUAGE()=de)
    exten => #103,2,Answer()
    exten => #103,3,Playback(demo-echotest)
    exten => #103,4,Echo()
    exten => #103,5,Playback(demo-echodone)
    exten => #103,6,Congestion()
    exten => #103,7,Wait(10)
    exten => #103,8,Hangup()

    exten => #104,1,Set(LANGUAGE()=de)
    exten => #104,2,Answer()
    exten => #104,3,AGI(date.sh)
    exten => #104,4,SendText(${ADATE})
    exten => #104,5,sayPhonetic(${ADATE:5})
    exten => #104,6,Congestion()
    exten => #104,7,Wait(10)
    exten => #104,8,Hangup()

    [outgoing]
    include => 8506244

    include => incoming

    [8506244]
    ;;; Phone 8506244 ;;;
    ; Outgoing calls over SIP
    exten => _#*999.,1,Set(LANGUAGE()=de)
    exten => _#*999./8506244,2,Ringing()
    exten => _#*999./8506244,3,Set(CALLERID(number)=8506244)
    exten => _#*999./8506244,4,Set(CALLERID(name)=8004362)
    exten => _#*999./8506244,5,GotoIf($["${EXTEN:5:1}" = "0"]?7)
    exten => _#*999./8506244,6,Set(areaCode=0202)
    exten => _#*999./8506244,7,Dial(SIP/${areaCode}${EXTEN:5}@sipgate,120,TW)
    exten => _#*999./8506244,8,Set(CALLERID(number)=898828)
    exten => _#*999./8506244,9,Dial(CAPI/contr1/898828:${EXTEN:5}/b,120,TW)
    exten => _#*999./8506244,10,Goto(dialStates,${DIALSTATUS},1)


    ; Outgoing calls over CAPI
    exten => _000.,1,Set(LANGUAGE()=de)
    exten => _000./8506244,2,Set(CALLERID(number)=898828)
    exten => _000./898828,3,Set(CALLERID(name)=)
    exten => _000./898828,4,Dial(CAPI/contr1/${EXTEN:3}/b,120,TW)
    exten => _000./898828,5,Goto(dialStates,${DIALSTATUS},1)



    [incoming]
    include => default

    exten => 8506244,1,Set(LANGUAGE()=de)
    exten => 8506244,2,Ringing()
    exten => 8506244,3,GotoIf($["${CALLERIDNUM}" = ""]?5)
    exten => 8506244,4,Set(CALLERID(number)=#*999${CALLERIDNUM})
    exten => 8506244,5,Dial(Zap/g1/8506244,20,t)
    exten => 8506244,6,Goto(8506244-${DIALSTATUS},1)
    exten => 8506244-CHANUNAVAIL,1,Set(LANGUAGE()=de)
    exten => 8506244-CHANUNAVAIL,2,Wait(0.5)
    exten => 8506244-CHANUNAVAIL,3,VoiceMail(b8506244)
    exten => 8506244-CHANUNAVAIL,4,Congestion()
    exten => 8506244-CHANUNAVAIL,5,Wait(10)
    exten => 8506244-CHANUNAVAIL,6,Hangup()

    exten => 8506244-BUSY,1,Set(LANGUAGE()=de)
    exten => 8506244-BUSY,2,Wait(0.5)
    exten => 8506244-BUSY,3,VoiceMail(b8506244)
    exten => 8506244-BUSY,4,Congestion()
    exten => 8506244-BUSY,5,Wait(10)
    exten => 8506244-BUSY,6,Hangup()

    exten => 8506244-CONGESTION,1,Set(LANGUAGE()=de)
    exten => 8506244-CONGESTION,2,Wait(0.5)
    exten => 8506244-CONGESTION,3,VoiceMail(b8506244)
    exten => 8506244-CONGESTION,4,Congestion()
    exten => 8506244-CONGESTION,5,Wait(10)
    exten => 8506244-CONGESTION,6,Hangup()

    exten => _8506244-.,1,Set(LANGUAGE()=de)
    exten => _8506244-.,2,Wait(0.5)
    exten => _8506244-.,3,VoiceMail(u8506244)
    exten => _8506244-.,4,Congestion()
    exten => _8506244-.,5,Wait(10)
    exten => _8506244-.,6,Hangup()

    exten => 898828,1,Set(LANGUAGE()=de)
    exten => 898828,2,Ringing()
    exten => 898828,3,GotoIf($["${CALLERIDNUM}" = ""]?5)
    exten => 898828,4,Set(CALLERID(number)=000${CALLERIDNUM})
    exten => 898828,5,Dial(Zap/g1/8506244,${localdialtimeout},t)
    exten => 898828,6,Congestion()
    exten => 898828,7,Wait(10)
    exten => 898828,8,Hangup()

    ; Incoming (internal) calls for number 8506244. Type of phone: hfcs
    exten => 8506244,1,Set(LANGUAGE()=de)
    exten => 8506244,2,NoOp()
    exten => 8506244,3,NoOp()
    exten => 8506244,4,Dial(Zap/g1/8506244,20)
    exten => 8506244,5,Goto(incoming,8506244-${DIALSTATUS},1)
    exten => 8506244-NOANSWER,1,Set(LANGUAGE()=de)
    exten => 8506244-NOANSWER,2,VoiceMail(u8506244)
    exten => 8506244-NOANSWER,3,Congestion()
    exten => 8506244-NOANSWER,4,Wait(10)
    exten => 8506244-NOANSWER,5,Hangup()

    exten => 8506244-CHANUNAVAIL,1,Set(LANGUAGE()=de)
    exten => 8506244-CHANUNAVAIL,2,VoiceMail(b8506244)
    exten => 8506244-CHANUNAVAIL,3,Congestion()
    exten => 8506244-CHANUNAVAIL,4,Wait(10)
    exten => 8506244-CHANUNAVAIL,5,Hangup()

    exten => 8506244-BUSY,1,Set(LANGUAGE()=de)
    exten => 8506244-BUSY,2,VoiceMail(b8506244)
    exten => 8506244-BUSY,3,Congestion()
    exten => 8506244-BUSY,4,Wait(10)
    exten => 8506244-BUSY,5,Hangup()

    exten => 8506244-CONGESTION,1,Set(LANGUAGE()=de)
    exten => 8506244-CONGESTION,2,VoiceMail(b8506244)
    exten => 8506244-CONGESTION,3,Congestion()
    exten => 8506244-CONGESTION,4,Wait(10)
    exten => 8506244-CONGESTION,5,Hangup()

    exten => 8506244-.,1,Set(LANGUAGE()=de)
    exten => 8506244-.,2,VoiceMail(u8506244)
    exten => 8506244-.,3,Congestion()
    exten => 8506244-.,4,Wait(10)
    exten => 8506244-.,5,Hangup()

    ; VBOX menus
    exten => #9,1,Set(LANGUAGE()=de)
    exten => #9,2,VoicemailMain(s${CALLERID(number)})
    exten => #9,3,Goto(dialStates,${DIALSTATUS},1)

    ; VBOX menu for voicebox number 8506244
    exten => #98506244,1,Set(LANGUAGE()=de)
    exten => #98506244/8506244,2,VoicemailMain(s8506244)
    exten => #98506244,2,VoicemailMain(8506244)
    exten => #98506244,3,Goto(dialStates,${DIALSTATUS},1)


    [dialStates]
    exten => NOANSWER,1,Set(LANGUAGE()=de)
    exten => NOANSWER,2,Playback(vm-nobodyavail)
    exten => NOANSWER,3,Congestion()
    exten => NOANSWER,4,Wait(10)
    exten => NOANSWER,5,Hangup()

    exten => BUSY,1,Set(LANGUAGE()=de)
    exten => BUSY,2,Busy()
    exten => BUSY,3,Congestion()
    exten => BUSY,4,Wait(10)
    exten => BUSY,5,Hangup()

    exten => CHANUNAVAIL,1,Set(LANGUAGE()=de)
    exten => CHANUNAVAIL,2,Congestion()
    exten => CHANUNAVAIL,3,Congestion()
    exten => CHANUNAVAIL,4,Wait(10)
    exten => CHANUNAVAIL,5,Hangup()

    exten => CONGESTION,1,Set(LANGUAGE()=de)
    exten => CONGESTION,2,Congestion()
    exten => CONGESTION,3,Congestion()
    exten => CONGESTION,4,Wait(10)
    exten => CONGESTION,5,Hangup()


    [error]
    exten => h,1,Hangup
    exten => _[*#X].,1,Set(LANGUAGE()=de)
    exten => _[*#X].,2,Playback(pbx-invalid)
    exten => _[*#X].,3,Congestion()
    exten => _[*#X].,4,Wait(10)
    exten => _[*#X].,5,Hangup()

    [user]
    ;;; /var/install/config.d/asterisk_extensions.sipgatecredit.sh
    ; DIALPREFIX: #105
    exten => #105,1,Set(LANGUAGE()=de)
    exten => #105,2,Answer()
    exten => #105,3,AGI(sipgatecredit.php)
    exten => #105,4,Congestion()
    exten => #105,5,Hangup()

    Vielen Dank
     
  2. dawas.online

    dawas.online Neuer User

    Registriert seit:
    11 Okt. 2006
    Beiträge:
    11
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Ich habe, nach langem Suchen und Probieren, den Fehler selber gefunden.

    so muss es eigendlich heissen:

    [8506244]
    ;;; Phone 8506244 ;;;
    ; Outgoing calls over SIP
    exten => _#*999.,1,Set(LANGUAGE()=de)
    exten => _#*999.,2,Ringing()
    exten => _#*999.,3,Set(CALLERID(number)=8506244)
    exten => _#*999.,4,Set(CALLERID(name)=8004362)
    exten => _#*999.,5,GotoIf($["${EXTEN:5:1}" = "0"]?7)
    exten => _#*999.,6,Set(areaCode=0202)
    exten => _#*999.,7,Dial(SIP/${areaCode}${EXTEN:5}@sipgate,120,TW)
    exten => _#*999./8506244,8,Set(CALLERID(number)=89882
    exten => _#*999.,9,Dial(CAPI/contr1/898828:${EXTEN:5}/b,120,TW)
    exten => _#*999./8506244,10,Goto(dialStates,${DIALSTATUS},1)


    ; Outgoing calls over CAPI
    exten => _000.,1,Set(LANGUAGE()=de)
    exten => _000.,2,Set(CALLERID(number)=89882
    exten => _000.,3,Set(CALLERID(name)=)
    exten => _000.,4,Dial(CAPI/contr1/${EXTEN:3}/b,120,TW)
    exten => _000.,5,Goto(dialStates,${DIALSTATUS},1)

    also /8506244 bzw. /898828 musste gelöscht werden.

    Falls jemand das gleiche Problem hat, wird er sich sicher jetzt freuen, habe ziemlich lange rumprobiert.

    Sobald man die Asterisk Konfiguration im Eis-Menü ändert, muss man die Datei
    /etc/asterisk/extensions.conf wieder bearbeiten und die /xxxxxx wieder löschen.

    Viel Erfolg