اطلاعیه

بستن
هنوز اطلاعیه ای در دست نیست.

تفاوت Dialplan Function و Dialplan Application ؟

بستن
X
 
  • فیلتر کردن
  • زمان
  • نمایش
Clear All
پست های جدید

    تفاوت Dialplan Function و Dialplan Application ؟

    سلام
    تفاوت Dialplan Function و Dialplan Application چیست؟

    #2
    یکسری تفاوت ها ایناس

    Asterisk functions are used in Asterisk's dialplan. Unlike dialplan applications, they cannot be used directly. Instead they return a value that could be used by the dialplan logic.

    Function names by practice are all capitalzed letters. The names ARE CASE SENSITIVE!

    Example usage of the function CUT:


    exten => s,1,Set(foo=${CUT(bar,,2)})


    The above example sets the variable foo to the function CUT whose first parameter is 'bar', second parameter is empty and third parameter is '2'.


    A function is often used to determain which "part of a variable" to set. For instance, the use of the function CALLERID:


    exten => s,n,Set(CALLERID(name)=Foo Fighters)
    exten => s,n,Set(CALLERID(number)=700)


    The list of availble functions depends on the modules installed and loaded on the current system. To get the list of functions from the Asterisk CLI use the command "core show functions" . This gives a list of all functions.

    To get the syntax of a specific function, use the command "core show function FUNCNAME" . This gives a longer description of the function. It is often handy to use tab completion that way to identify a function name.

    کامنت


      #3
      توی کتاب Asterisk_Gateway_Interface_1_4_and_1_6_Programming صفحه 41 به موضوع اشاره شده

      Applications and functions
      So far, you have learned about contexts, extensions, and variables. It is time to
      introduce you to the Asterisk application and functions set—the basic building
      blocks of an Asterisk-based IVR or application.
      Asterisk consists of over 150 different applications and over 50 different functions,
      which when combined into a single extension within a context, will create your
      IVR application. While applications usually perform an operational function and
      set various channel variables upon exit, functions operate and manipulate a variable
      or a string.


      کامنت


        #4
        نمیشد فارسیش رو هم بذارید که استفاده کنیم.
        با تشکر:280:

        من قلبی بزرگ با رویاهایی بزرگ دارم. دانسته هایمان را با هم به اشتراک بگذاریم.

        کامنت

        درباره انجمن منطقه لینوکسی ها

        انجمن منطقه لینوکسی ها با هدف ارتقاء سطح علمی کاربران در سطح جهانی و همچنین کمک به بالا بردن سطح علمی عمومی در زمینه های تخصصی فوق پایه گذاری شده است. انجمن منطقه لینوکسی ها از طریق کارشناسان و متخصصان پاسخگوی سوالات گوناگون کاربران مبتدی یا پیشرفته میباشد تا حد امکان تلاش شده که محیطی متنوع و کاربر پسند و به دور از هرگونه حاشیه جهت فعالیت کاربران در این انجمن ایجاد شود. لذا ما به صورت مستمر برای پیشرفت کمی و کیفی محتوی و اطلاعات انجمنمان میکوشیم که این برای ما ارزشمند و حائز اهمیت است. کلیه حقوق،اطلاعات و مقالات در این انجمن متعلق به سایت منطقه لینوکسی ها میباشد، و هرگونه نسخه برداری بدون ذکر منبع مورد پیگرد قانونی خواهد شد.

        شبکه های اجتماعی
        در حال انجام ...
        X