• Magyar nyelv
  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software at small and medium-sized enterprises, and in security of bank payment technologies. Also interested in today's privacy challenges, low-bitrate communications, and building a house as a hobby. Lives at the biggest lake of Central Europe, Lake Balaton.

  • Other projects

    HELLOTUX
    Promoting free software all over the world. Free software merchandise from Europe, in partnership with the leading Linux distributions and free software developers.
    www.hellotux.com
     

    Matek Oázis
    Hungary's number one maths e-learning site, with interactive videos, tests and games for children, students, adult learners, teachers and schools.
    www.matekoazis.hu

  • Magyar nyelv

KG.hu

Asterisk: Kontextusok egymásba ágyazása az extensions.conf-ban

16 April 2011, 7:44 pm (Central European Time)

Ha nem szeretnénk Asteriskünk extensions.conf fájljában ismételgetni ugyanazokat a szabályokat, egymásba ágyazhatjuk őket.

Ezt a következő módszerrel tudjuk megtenni:

[belso-hivasok]
exten => _10XX,1,Dial(SIP/${EXTEN},90)
exten => _10XX,n,Hangup()

[kimeno-hivasok]
exten => _X.,1,Dial(SIP/szolgaltato/${EXTEN},90)
exten => _X.,n,Hangup()

[ugyfelek]
include => belso-hivasok
include => kimeno-hivasok

Ilyenkor az ugyfelek kontextus esetében mind a belso-hivasok (10XX mellékek), mind a kimeno-hivasok kontextusban (minden más hívás) megadott szabályok érvényesek lesznek. Ehhez az include funkciót használtuk.

 

Be the first who leaves a comment!

Leave a comment!

Your name:

Your e-mail (kept private and will not be shown):

Comment:

Please type the word plant here:

  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software at small and medium-sized enterprises, and in security of bank payment technologies. Also interested in today's privacy challenges, low-bitrate communications, and building a house as a hobby. Lives at the biggest lake of Central Europe, Lake Balaton.

  • Other projects

    HELLOTUX
    Promoting free software all over the world. Free software merchandise from Europe, in partnership with the leading Linux distributions and free software developers.
    www.hellotux.com
     

    Matek Oázis
    Hungary's number one maths e-learning site, with interactive videos, tests and games for children, students, adult learners, teachers and schools.
    www.matekoazis.hu