• Magyar nyelv
  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software, 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
     

    Education
    Teaching digital competences for children between ages 9 and 14. The goal is not understanding ancient software but understanding the digital future.
    www.fenyvesirefi.hu
     

    Consulting
    IT consulting and services for government institutions. GAFAM-free and GDPR compliant local and EU-based systems on the base of open source.

  • Magyar nyelv
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 beauty here:

  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software, 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
     

    Education
    Teaching digital competences for children between ages 9 and 14. The goal is not understanding ancient software but understanding the digital future.
    www.fenyvesirefi.hu
     

    Consulting
    IT consulting and services for government institutions. GAFAM-free and GDPR compliant local and EU-based systems on the base of open source.