اطلاعیه

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

خطای broken pipe موقع اجرای agi در استریسک

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

    خطای broken pipe موقع اجرای agi در استریسک

    سلام خدمت دوستان، هنگام اجرای فایل agi با خطای زیر رو به رو میشم. این خطا به چه دلیلی هست و چطور میشه رفعش کنم ؟
    کد PHP:
    write() returned errorBroken pipe 
    با تشکر استاد


    برای بزرگتر شدن عکس روی آن کلیک کنید  نام:	Capture.PNG نمایش ها:	1 اندازه:	24.8 KB شناسه:	21753
    آخرین ویرایش توسط Habili; در تاریخ/ساعت 01-11-2020, 10:48 PM.

    #2
    سلام فایل agi رو بفرستید لطفا
    Instagram : https://www.instagram.com/iranlinuxforum

    Voip Trainer - Asterisk - Elastix - Agi Programming- NewRock

    Voip Expert :ASTERISK-ELASTIX-NewRock Certified-With Experience of Working With
    Sangoma-Digium-Openvox-Synway-Atcom-Quintum Tenor-Polycom-Yealink-Rtx-Snom
    Cisco Collaboration - CME-CUCM-CUPs-CUC-WEBEX
    LPI ( Fundamental - LPI1 and LPI2 ) - Monitoring: ZABBIX-VOIPMONITOR-NAGIOS - CCNA

    Linkedin Profile : https://www.linkedin.com/in/masuma-vahid-26b17b66/

    کامنت


      #3
      سلام استاد

      برای بزرگتر شدن عکس روی آن کلیک کنید

نام:	Capture.JPG
نمایش ها:	1
اندازه:	28.2 KB
شناسه:	17426
      فایل های پیوست شده

      کامنت


        #4
        agi set debug on
        وبعد یه تماس تستی و لاگ کاملش رو بفرستید.
        Instagram : https://www.instagram.com/iranlinuxforum

        Voip Trainer - Asterisk - Elastix - Agi Programming- NewRock

        Voip Expert :ASTERISK-ELASTIX-NewRock Certified-With Experience of Working With
        Sangoma-Digium-Openvox-Synway-Atcom-Quintum Tenor-Polycom-Yealink-Rtx-Snom
        Cisco Collaboration - CME-CUCM-CUPs-CUC-WEBEX
        LPI ( Fundamental - LPI1 and LPI2 ) - Monitoring: ZABBIX-VOIPMONITOR-NAGIOS - CCNA

        Linkedin Profile : https://www.linkedin.com/in/masuma-vahid-26b17b66/

        کامنت


          #5
          خدمت شما
          کد:
           == Using SIP RTP TOS bits 184
            == Using SIP RTP CoS mark 5
              -- Executing [200@from-internal:1] Answer("SIP/101-00000005", "") in new stack
                 > 0xb68b7c90 -- Probation passed - setting RTP source address to 192.168.236.1:8000
              -- Executing [200@from-internal:2] AGI("SIP/101-00000005", "aaa.php") in new stack
              -- Launched AGI Script /var/lib/asterisk/agi-bin/aaa.php
          <SIP/101-00000005>AGI Tx >> agi_request: aaa.php
          <SIP/101-00000005>AGI Tx >> agi_channel: SIP/101-00000005
          <SIP/101-00000005>AGI Tx >> agi_language: en
          <SIP/101-00000005>AGI Tx >> agi_type: SIP
          <SIP/101-00000005>AGI Tx >> agi_uniqueid: 1487528259.5
          <SIP/101-00000005>AGI Tx >> agi_version: 11.17.1
          <SIP/101-00000005>AGI Tx >> agi_callerid: 101
          <SIP/101-00000005>AGI Tx >> agi_calleridname: rezae
          <SIP/101-00000005>AGI Tx >> agi_callingpres: 0
          <SIP/101-00000005>AGI Tx >> agi_callingani2: 0
          <SIP/101-00000005>AGI Tx >> agi_callington: 0
          <SIP/101-00000005>AGI Tx >> agi_callingtns: 0
          <SIP/101-00000005>AGI Tx >> agi_dnid: 200
          <SIP/101-00000005>AGI Tx >> agi_rdnis: unknown
          <SIP/101-00000005>AGI Tx >> agi_context: from-internal
          <SIP/101-00000005>AGI Tx >> agi_extension: 200
          <SIP/101-00000005>AGI Tx >> agi_priority: 2
          <SIP/101-00000005>AGI Tx >> agi_enhanced: 0.0
          <SIP/101-00000005>AGI Tx >> agi_accountcode:
          <SIP/101-00000005>AGI Tx >> agi_threadid: -1230664816
          <SIP/101-00000005>AGI Tx >>
          <SIP/101-00000005>AGI Rx << Usage: php [options] [-f] <file> [--] [args...]
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<        php [options] -r <code> [--] [args...]
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<        php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<        php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<        php [options] -- [args...]
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<        php [options] -a
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -a               Run interactively
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -c <path>|<file> Look for php.ini file in this directory
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -n               No php.ini file will be used
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -d foo[=bar]     Define INI entry foo with value 'bar'
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -e               Generate extended information for debugger/profiler
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -f <file>        Parse <file>.
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -h               This help
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -i               PHP information
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -l               Syntax check only (lint)
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -m               Show compiled in modules
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -r <code>        Run PHP <code> without using script tags <?..?>
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -B <begin_code>  Run PHP <begin_code> before processing input lines
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -R <code>        Run PHP <code> for every input line
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -F <file>        Parse and execute <file> for every input line
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -E <end_code>    Run PHP <end_code> after processing all input lines
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -H               Hide any passed arguments from external tools.
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -s               Display colour syntax highlighted source.
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -v               Version number
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -w               Display source with stripped comments and whitespace.
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   -z <file>        Load Zend extension <file>.
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   args...          Arguments passed to script. Use -- args when first argument
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<                    starts with - or script is read from stdin
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   --rf <name>      Show information about function <name>.
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   --rc <name>      Show information about class <name>.
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<   --re <name>      Show information about extension <name>.
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
          <SIP/101-00000005>AGI Rx <<
          <SIP/101-00000005>AGI Tx >> 510 Invalid or unknown command
          [2017-02-19 13:17:39] ERROR[3630][C-00000005]: utils.c:1393 ast_carefulwrite: write() returned error: Broken pipe
              -- <SIP/101-00000005>AGI Script aaa.php completed, returning 0
              -- Executing [200@from-internal:3] Hangup("SIP/101-00000005", "") in new stack
            == Spawn extension (from-internal, 200, 3) exited non-zero on 'SIP/101-00000005'
              -- Executing [h@from-internal:1] Hangup("SIP/101-00000005", "") in new stack
            == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/101-00000005'
          آخرین ویرایش توسط Habili; در تاریخ/ساعت 01-11-2020, 10:48 PM.

          کامنت


            #6
            دستور زیر رو اجرا کنید و دویاره تست کنید . لاگ بفرستید :
            کد PHP:
            dos2unix /var/lib/asterisk/agi-bin/reza.php 
            Instagram : https://www.instagram.com/iranlinuxforum

            Voip Trainer - Asterisk - Elastix - Agi Programming- NewRock

            Voip Expert :ASTERISK-ELASTIX-NewRock Certified-With Experience of Working With
            Sangoma-Digium-Openvox-Synway-Atcom-Quintum Tenor-Polycom-Yealink-Rtx-Snom
            Cisco Collaboration - CME-CUCM-CUPs-CUC-WEBEX
            LPI ( Fundamental - LPI1 and LPI2 ) - Monitoring: ZABBIX-VOIPMONITOR-NAGIOS - CCNA

            Linkedin Profile : https://www.linkedin.com/in/masuma-vahid-26b17b66/

            کامنت

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

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

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