اطلاعیه

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

مشکل سیستم Paging و Intercom

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

    مشکل سیستم Paging و Intercom

    با سلام
    کارفرما درخواست راه اندازی سیستم Paging به این صورت که با شماره گیری یک شماره ، تمام داخلی های واحد مورد نظر روی اسپیکر رفته و اعلام ایشون انجام بشه .
    از آپشن Paging and Intercom طبق تصویر زیر تنظیمات به صورت تست برای یک داخلی انجام شد .

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

نام:	Paging2.jpg
نمایش ها:	75
اندازه:	75.8 KB
شناسه:	30180

    در حالتی که شماره 320 گرفته میشود تماس برقرار نشده و سریعا قطع می شود که لاگ مربوطه هم به صورت زیر است :

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

نام:	Paging.jpg
نمایش ها:	72
اندازه:	355.2 KB
شناسه:	30181

    تنظیمات تلفن هم به این صورت است :

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

نام:	Paging3.jpg
نمایش ها:	73
اندازه:	105.8 KB
شناسه:	30182

    حالا اگر همین داخلی رو با کمک Feature Code مختص به اینترکام بگیریم ، کار انجام شده و به صورت اتومات تلفن داخلی روی اسپیکر رفته و آماده پخش صدا می شود .

    کد مورد نظر : 801040*

    حالت های مختلفی رو تست کردم ولی به جایی نرسیدم . ممنون میشم اگر راه حلی ارائه بدین .

    #2
    تیک مربوط به گزینه default page group رو بزنید و در صورت مشکل لاگ کامل توی تگ html یا php بفرستید.
    آخرین ویرایش توسط Habili; در تاریخ/ساعت 01-23-2024, 11:15 AM.
    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
      نوشته شده توسط masome vahid مشاهده پست
      تیک مربوط به گزینه default page group رو بزنید و در صورت مشکل لاگ کامل بفرستید.
      سلام استاد

      این مورد رو هم تست کردم و وضعیت همین هست .

      کامنت


        #4
        کد PHP:
        [2024-01-23 10:45:44VERBOSE[30458][C-00071faapbx.cSpawn extension (from-internalh1exited non-zero on 'Local/1270@from-queue-00053b1d;2'
        [2024-01-23 10:45:45VERBOSE[2952][C-00071fadnetsock2.cUsing SIP RTP TOS bits 184
        [2024-01-23 10:45:45VERBOSE[2952][C-00071fadnetsock2.cUsing SIP RTP CoS mark 5
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@from-internal:1] Goto("SIP/350-0008d7f2""app-pagegroups,320,1"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx_builtins.c: Goto (app-pagegroups,320,1)
        [
        2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@app-pagegroups:1Macro("SIP/350-0008d7f2""user-callerid,"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:1Set("SIP/350-0008d7f2""TOUCH_MONITOR=1705994145.8612786"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:2Set("SIP/350-0008d7f2""AMPUSER=350"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:3GotoIf("SIP/350-0008d7f2""0?report"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:4ExecIf("SIP/350-0008d7f2""1?Set(REALCALLERIDNUM=350)"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:5Set("SIP/350-0008d7f2""AMPUSER=350"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:6GotoIf("SIP/350-0008d7f2""0?limit"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:7Set("SIP/350-0008d7f2""AMPUSERCIDNAME=350"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:8GotoIf("SIP/350-0008d7f2""0?report"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:9Set("SIP/350-0008d7f2""AMPUSERCID=350"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:10Set("SIP/350-0008d7f2""__DIAL_OPTIONS=tr"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:11Set("SIP/350-0008d7f2""CALLERID(all)="350" <350>"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:12GotoIf("SIP/350-0008d7f2""0?limit"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:13ExecIf("SIP/350-0008d7f2""0?Set(GROUP(concurrency_limit)=350)"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:14ExecIf("SIP/350-0008d7f2""0?Set(CHANNEL(language)=)"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:15GotoIf("SIP/350-0008d7f2""0?continue"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:16Set("SIP/350-0008d7f2""__TTL=64"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:17GotoIf("SIP/350-0008d7f2""1?continue"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx_builtins.c: Goto (macro-user-callerid,s,28)
        [
        2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:28Set("SIP/350-0008d7f2""CALLERID(number)=350"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:29Set("SIP/350-0008d7f2""CALLERID(name)=350"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:30Set("SIP/350-0008d7f2""CDR(cnum)=350"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:31Set("SIP/350-0008d7f2""CDR(cnam)=350"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [s@macro-user-callerid:32Set("SIP/350-0008d7f2""CHANNEL(language)=pr"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@app-pagegroups:2Set("SIP/350-0008d7f2""_PAGEGROUP=320"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@app-pagegroups:3GotoIf("SIP/350-0008d7f2""1?:busy"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@app-pagegroups:4Set("SIP/350-0008d7f2""DEVICE_STATE(Custom:PAGE320)=INUSE"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@app-pagegroups:5Answer("SIP/350-0008d7f2"""in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@app-pagegroups:6Gosub("SIP/350-0008d7f2""app-paging,ssetup,1()"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [ssetup@app-paging:1Set("SIP/350-0008d7f2""_SIPURI="in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [ssetup@app-paging:2Set("SIP/350-0008d7f2""_ALERTINFO=Alert-Info: Ring Answer"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [ssetup@app-paging:3Set("SIP/350-0008d7f2""_CALLINFO=Call-Info: <uri>;answer-after=0"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [ssetup@app-paging:4Set("SIP/350-0008d7f2""_SIPURI=intercom=true"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [ssetup@app-paging:5Set("SIP/350-0008d7f2""_DOPTIONS=A()"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [ssetup@app-paging:6Set("SIP/350-0008d7f2""_DTIME=5"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [ssetup@app-paging:7Set("SIP/350-0008d7f2""_ANSWERMACRO="in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [ssetup@app-paging:8Set("SIP/350-0008d7f2""PAGE_CONF=1705994145418"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [ssetup@app-paging:9] Return("SIP/350-0008d7f2"""in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@app-pagegroups:7Set("SIP/350-0008d7f2""PAGEMODE=FPAGE"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@app-pagegroups:8Set("SIP/350-0008d7f2""PAGE_MEMBERS=1040"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@app-pagegroups:9Set("SIP/350-0008d7f2""PAGE_CONF_OPTS=1dqsxm"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@app-pagegroups:10AGI("SIP/350-0008d7f2""page.agi"in new stack
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadres_agi.cLaunched AGI Script /var/lib/asterisk/agi-bin/page.agi
        [2024-01-23 10:45:45VERBOSE[30504manager.cManager 'admin' logged on from 127.0.0.1
        [2024-01-23 10:45:45VERBOSE[30507dial.cCalled s@app-page-stream
        [2024-01-23 10:45:45VERBOSE[30508][C-00071faepbx.cExecuting [s@app-page-stream:1Wait("Local/s@app-page-stream-00053b1e;2""1"in new stack
        [2024-01-23 10:45:45VERBOSE[30509dial.cCalled PAGE1040@app-paging
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [PAGE1040@app-paging:1Macro("Local/PAGE1040@app-paging-00053b1f;2""autoanswer,1040"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [s@macro-autoanswer:1Set("Local/PAGE1040@app-paging-00053b1f;2""DIAL=SIP/1040"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [s@macro-autoanswer:2ExecIf("Local/PAGE1040@app-paging-00053b1f;2""0?Set(DIAL=DAHDI/1040)"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [s@macro-autoanswer:3GotoIf("Local/PAGE1040@app-paging-00053b1f;2""0?macro"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [s@macro-autoanswer:4Set("Local/PAGE1040@app-paging-00053b1f;2""phone="in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [s@macro-autoanswer:5ExecIf("Local/PAGE1040@app-paging-00053b1f;2""0?Set(CALLINFO=Call-Info: <sip:broadworks.net>;answer-after=0)"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [s@macro-autoanswer:6ExecIf("Local/PAGE1040@app-paging-00053b1f;2""0?Set(ALERTINFO=Alert-Info: Intercom)"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [s@macro-autoanswer:7ExecIf("Local/PAGE1040@app-paging-00053b1f;2""0?Set(ALERTINFO=Alert-Info: info=Auto Answer)"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [s@macro-autoanswer:8ExecIf("Local/PAGE1040@app-paging-00053b1f;2""0?Set(ALERTINFO=Alert-Info: ring-answer)"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [s@macro-autoanswer:9ExecIf("Local/PAGE1040@app-paging-00053b1f;2""1?SipAddHeader(Alert-Info: Ring Answer)"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [s@macro-autoanswer:10ExecIf("Local/PAGE1040@app-paging-00053b1f;2""1?SipAddHeader(Call-Info: <uri>;answer-after=0)"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [s@macro-autoanswer:11ExecIf("Local/PAGE1040@app-paging-00053b1f;2""1?Set(__SIP_URI_OPTIONS=intercom=true)"in new stack
        [2024-01-23 10:45:45VERBOSE[30512dial.cCalled s@app-page-stream
        [2024-01-23 10:45:45VERBOSE[30513][C-00071fb0pbx.cExecuting [s@app-page-stream:1Wait("Local/s@app-page-stream-00053b20;2""1"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cExecuting [PAGE1040@app-paging:2Dial("Local/PAGE1040@app-paging-00053b1f;2""SIP/1040,5,A()"in new stack
        [2024-01-23 10:45:45VERBOSE[30504manager.cManager 'admin' logged off from 127.0.0.1
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadres_agi.c: <SIP/350-0008d7f2>AGI Script page.agi completedreturning 0
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafnetsock2.cUsing SIP RTP TOS bits 184
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafnetsock2.cUsing SIP RTP CoS mark 5
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafapp_dial.cCalled SIP/1040
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [320@app-pagegroups:11MeetMe("SIP/350-0008d7f2""1705994145418,dqwxAG,,"in new stack
        [2024-01-23 10:45:45WARNING[30500][C-00071fadapp_meetme.cUnable to open DAHDI pseudo device
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cSpawn extension (app-pagegroups32011exited non-zero on 'SIP/350-0008d7f2'
        [2024-01-23 10:45:45VERBOSE[30500][C-00071fadpbx.cExecuting [h@app-pagegroups:1ExecIf("SIP/350-0008d7f2""1?Set(DEVICE_STATE(Custom:PAGE320)=NOT_INUSE)"in new stack
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafapp_dial.cSIP/1040-0008d7f3 is ringing
        [2024-01-23 10:45:45VERBOSE[30509dial.cLocal/PAGE1040@app-paging-00053b1f;1 is ringing
        [2024-01-23 10:45:45VERBOSE[30457][C-00071faares_musiconhold.cStopped music on hold on SIP/1080-0008d7ec
        [2024-01-23 10:45:45VERBOSE[30457][C-00071faapbx.cSpawn extension (from-internal12739exited non-zero on 'SIP/1080-0008d7ec'
        [2024-01-23 10:45:45VERBOSE[30457][C-00071faapbx.cExecuting [h@from-internal:1Hangup("SIP/1080-0008d7ec"""in new stack
        [2024-01-23 10:45:45VERBOSE[30457][C-00071faapbx.cSpawn extension (from-internalh1exited non-zero on 'SIP/1080-0008d7ec'
        [2024-01-23 10:45:45VERBOSE[30510][C-00071fafapp_dial.cSIP/1040-0008d7f3 answered Local/PAGE1040@app-paging-00053b1f;2
        [2024-01-23 10:45:45VERBOSE[30509dial.cLocal/PAGE1040@app-paging-00053b1f;1 answered
        [2024-01-23 10:45:45WARNING[30509app_meetme.cUnable to open DAHDI pseudo device
        [2024-01-23 10:45:45VERBOSE[30514][C-00071fafbridge_channel.cChannel SIP/1040-0008d7f3 joined 'simple_bridge' basic-bridge <bdafc732-d803-471d-b785-d0f9ebf00439>
        [
        2024-01-23 10:45:45VERBOSE[30510][C-00071fafbridge_channel.cChannel Local/PAGE1040@app-paging-00053b1f;2 joined 'simple_bridge' basic-bridge <bdafc732-d803-471d-b785-d0f9ebf00439>
        [
        2024-01-23 10:45:45VERBOSE[30510][C-00071fafbridge_channel.cChannel Local/PAGE1040@app-paging-00053b1f;2 left 'simple_bridge' basic-bridge <bdafc732-d803-471d-b785-d0f9ebf00439>
        [
        2024-01-23 10:45:45VERBOSE[30514][C-00071fafbridge_channel.cChannel SIP/1040-0008d7f3 left 'simple_bridge' basic-bridge <bdafc732-d803-471d-b785-d0f9ebf00439>
        [
        2024-01-23 10:45:45VERBOSE[30510][C-00071fafpbx.cSpawn extension (app-pagingPAGE10402exited non-zero on 'Local/PAGE1040@app-paging-00053b1f;2'
        [2024-01-23 10:45:46VERBOSE[30508][C-00071faepbx.cExecuting [s@app-page-stream:2Answer("Local/s@app-page-stream-00053b1e;2"""in new stack
        [2024-01-23 10:45:46VERBOSE[30507dial.cLocal/s@app-page-stream-00053b1e;1 answered
        [2024-01-23 10:45:46VERBOSE[30513][C-00071fb0pbx.cExecuting [s@app-page-stream:2Answer("Local/s@app-page-stream-00053b20;2"""in new stack
        [2024-01-23 10:45:46VERBOSE[30512dial.cLocal/s@app-page-stream-00053b20;1 answered
        [2024-01-23 10:45:46VERBOSE[30512file.c: <Local/s@app-page-stream-00053b20;1Playing 'beep.gsm' (language 'en')
        [
        2024-01-23 10:45:46VERBOSE[30513][C-00071fb0pbx.cExecuting [s@app-page-stream:3MeetMe("Local/s@app-page-stream-00053b20;2""1705994145418,xq,,"in new stack
        [2024-01-23 10:45:46VERBOSE[30513][C-00071fb0pbx.cSpawn extension (app-page-streams3exited non-zero on 'Local/s@app-page-stream-00053b20;2'
        [2024-01-23 10:45:46VERBOSE[30508][C-00071faepbx.cExecuting [s@app-page-stream:3MeetMe("Local/s@app-page-stream-00053b1e;2""1705994145418,xqA,,"in new stack
        [2024-01-23 10:45:46VERBOSE[30508][C-00071faepbx.cSpawn extension (app-page-streams3exited non-zero on 'Local/s@app-page-stream-00053b1e;2'
        [2024-01-23 10:45:46VERBOSE[30517manager.cManager 'admin' logged on from 127.0.0.1​ 
        آخرین ویرایش توسط A.Sedighi; در تاریخ/ساعت 01-23-2024, 11:48 AM.

        کامنت


          #5
          نوشته شده توسط masome vahid مشاهده پست
          تیک مربوط به گزینه default page group رو بزنید و در صورت مشکل لاگ کامل توی تگ html یا php بفرستید.
          در پست بالا براتون ارسال کردم . خدمت شما

          کامنت


            #6
            مهندس ببینید سرویس dahdi در چه وضعیتیه:
            کد PHP:
            /etc/init.d/dahdi status
            ​ 
            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/

            کامنت


              #7
              نوشته شده توسط masome vahid مشاهده پست
              مهندس ببینید سرویس dahdi در چه وضعیتیه:
              کد PHP:
              /etc/init.d/dahdi status
              ​ 



              کامند مورد نظر کار نکرد


              برای بزرگتر شدن عکس روی آن کلیک کنید  نام:	Paging4.jpg نمایش ها:	0 اندازه:	25.4 KB شناسه:	30191




              کد PHP:
              #!/bin/sh
              #
              # dahdi         This shell script takes care of loading and unloading \
              #               DAHDI Telephony interfaces
              # chkconfig: 2345 9 92
              # description: The DAHDI drivers allow you to use your linux \
              # computer to accept incoming data and voice interfaces
              #
              # config: /etc/dahdi/init.conf

              ### BEGIN INIT INFO
              # Provides:        dahdi
              # Required-Start:  $local_fs $remote_fs
              # Required-Stop:   $local_fs $remote_fs
              # Should-Start:    $network $syslog
              # Should-Stop:     $network $syslog
              # Default-Start:   2 3 4 5
              # Default-Stop:    0 1 6
              # Short-Description: DAHDI kernel modules
              # Description:     dahdi - load and configure DAHDI modules
              ### END INIT INFO

              initdir=/etc/init.d

              # Don't edit the following values. Edit /etc/dahdi/init.conf instead.

              DAHDI_CFG=/usr/sbin/dahdi_cfg
              DAHDI_CFG_CMD
              =${DAHDI_CFG_CMD:-"$DAHDI_CFG"# e.g: for a custom system.conf location

              FXOTUNE=/usr/sbin/fxotune

              # The default syncer Astribank. Usually set automatically to a sane
              # value by xpp_sync(1) if you have an Astribank. You can set this to an
              # explicit Astribank (e.g: 01).
              XPP_SYNC=auto

              # The maximal timeout (seconds) to wait for udevd to finish generating
              # device nodes after the modules have loaded and before running dahdi_cfg.
              DAHDI_DEV_TIMEOUT=20

              # A list of modules to unload when stopping.
              # All of their dependencies will be unloaded as well.
              DAHDI_UNLOAD_MODULES="dahdi echo"

              #
              # Determine which kind of configuration we're using
              #
              system=redhat  # assume redhat
              if [ -/etc/debian_version ]; then
                  system
              =debian
              fi

              if [ -/etc/gentoo-release ]; then
                  system
              =debian
              fi

              if [ -/etc/SuSE-release --/etc/novell-release ]
              then
                  system
              =debian
              fi

              # Source function library.
              if [ $system redhat ]; then
                  
              $initdir/functions || exit 0
              fi

              DAHDI_MODULES_FILE
              ="/etc/dahdi/modules"

              [ -/etc/dahdi/init.conf ] &amp;&amp; . /etc/dahdi/init.conf

              if [ $system redhat ]; then
                  LOCKFILE
              =/var/lock/subsys/dahdi
              fi

              # recursively unload a module and its dependencies, if possible.
              # where's modprobe -r when you need it?
              # inputs: module to unload.
              # returns: the result from
              unload_module() {
                  
              module="$1"
                  
              line=`lsmod 2&gt;/dev/null | grep "^$1 "`
                  if [ 
              "$line'' ]; then return; fi # module was not loaded

                  
              set -- $line
                  
              # $1: the original module, $2: size, $3: refcount, $4: deps list
                  
              mods=`echo $4 | tr , ' '`
                  
              ec_modules=""
                  
              # xpp_usb keeps the xpds below busy if an xpp hardware is
                  # connected. Hence must be removed before them:
                  
              case "$modulein xpd_*) mods="xpp_usb $mods";; esac

                  
              for mod in $mods; do
                      case 
              "$modin
                      dahdi_echocan_
              *)
                          
              ec_modules="$mod $ec_modules"
                          
              ;;
                      *)
                          
              # run in a subshell, so it won't step over our vars:
                          
              (unload_module $mod)
                          ;;
                      
              esac
                  done
                  
              # Now that all the other dependencies are unloaded, we can unload the
                  # dahdi_echocan modules.  The drivers that register spans may keep
                  # references on the echocan modules before they are unloaded.
                  
              for mod in $ec_modules; do
                      (
              unload_module $mod)
                  
              done
                  rmmod $module
              }

              unload_modules() {
                  for 
              module in $DAHDI_UNLOAD_MODULES; do
                      
              unload_module $module
                  done
              }

              # In (xpp) hotplug mode, the init script is also executed from the
              # hotplug hook. In that case it should not attempt to loade modules.
              #
              # This function only retunrs false (1) if we're in hotplug mode and
              # coming from the hotplug hook script.
              hotplug_should_load_modules() {
                  if [ 
              "$XPP_HOTPLUG_DAHDIyes -"$CALLED_FROM_ATRIBANK_HOOK!= '' ]
                  
              then
                      
              return 1
                  fi
                  
              return 0
              }

              # In (xpp) hotplug mode: quit after we loaded modules.
              #
              # In hotplug mode, the main run should end here, whereas the rest of the
              # script should be finished by the instance running from the hook.
              # Note that we only get here if there are actually Astribanks on the
              # system (otherwise noone will trigger the run of the hotplug hook
              # script).
              hotplug_exit_after_load() {
                  if [ 
              "$XPP_HOTPLUG_DAHDIyes -"$CALLED_FROM_ATRIBANK_HOOK'' ]
                  
              then
                      
              exit 0
                  fi
              }

              # Initialize the Xorcom Astribank (xpp/) using perl utiliites:
              xpp_startup() {
                  if [ 
              "$ASTERISK_SUPPORTS_DAHDI_HOTPLUGyes ]; then
                      aas_param
              ='/sys/module/dahdi/parameters/auto_assign_spans'
                      
              aas=`cat "$aas_param" 2&gt;/dev/null`
                      if [ 
              "$aas]; then
                          
              echo 1&gt;&amp;"Don't wait for Astribanks (use Asterisk hotplug-support)"
                          
              return 0
                      fi
                  fi
                  
              # do nothing if there are no astribank devices:
                  
              if ! /usr/share/dahdi/waitfor_xpdsthen return 0fi

                  hotplug_exit_after_load
              }


              hpec_start() {
                  
              # HPEC license found
                  
              if ! echo /var/lib/digium/licenses/HPEC-*.lic grep -'\*' grep -.; then
                      
              return
                  
              fi

                  
              # dahdihpec_enable not installed in /usr/sbin
                  
              if [ ! -/usr/sbin/dahdihpec_enable ]; then
                      
              echo -"Running dahdihpec_enable: Failed"
                      
              echo -"."
                      
              echo "  The dahdihpec_enable binary is not installed in /usr/sbin."
                      
              return
                  
              fi

                  
              # dahdihpec_enable not set executable
                  
              if [ ! -/usr/sbin/dahdihpec_enable ]; then
                      
              echo -"Running dahdihpec_enable: Failed"
                      
              echo -"."
                      
              echo "  /usr/sbin/dahdihpec_enable is not set as executable."
                      
              return
                  
              fi

                  
              # dahdihpec_enable properly installed
                  
              if [ $system debian ]; then
                      
              echo -"Running dahdihpec_enable: "
                      
              /usr/sbin/dahdihpec_enable 2&gt; /dev/null
                  elif 
              $system redhat ]; then
                      action 
              "Running dahdihpec_enable: " /usr/sbin/dahdihpec_enable
                  fi
                  
              if [ $? = ]; then
                      
              echo -"done"
                      
              echo "."
                  
              else
                      echo -
              "Failed"
                      
              echo -"."
                      
              echo "  This can be caused if you had already run dahdihpec_enable, or if your HPEC license is no longer valid."
                  
              fi
              }

              shutdown_dynamic() {
                  if ! 
              grep -' DYN/' /proc/dahdi/* 2&gt;/dev/null; then return; fi

                  # we should only get here if we have dynamic spans. Right?
                  $DAHDI_CFG_CMD -s
              }

              load_modules() {
                    # Some systems, e.g. Debian Lenny, add here -b, which will break
                  # loading of modules blacklisted in modprobe.d/*
                  unset MODPROBE_OPTIONS
                    modules=`sed -e 's/#.*$//' $DAHDI_MODULES_FILE 2&gt;/dev/null`
                  #if [ "$modules" = '' ]; then
                      # what?
                  #fi
                  echo "Loading DAHDI hardware modules:"
                  modprobe dahdi
                  for line in $modules; do
                      if [ $system = debian ]; then
                          echo -n "   ${line}: "
                          if modprobe $line 2&gt; /dev/null; then
                              echo -n "done"
                          else
                              echo -n "error"
                          fi
                      elif [ $system = redhat ]; then
                          action "  ${line}: " modprobe $line
                      fi
                  done
                  echo ""
              }

              # Make sure that either dahdi is loaded or modprobe-able
              dahdi_modules_loadable() {
                  modinfo dahdi &gt;/dev/null 2&gt;&amp;1 || lsmod | grep -q -w ^dahdi
              }

              if [ ! -x "$DAHDI_CFG" ]; then
                     echo "dahdi_cfg not executable"
                     exit 0
              fi

              RETVAL=0

              # See how we were called.
              case "$1" in
                start)
                  if ! dahdi_modules_loadable; then
                      echo "No DAHDI modules on the system. Not starting"
                      exit 0
                  fi
                    if hotplug_should_load_modules; then
                      load_modules
                  fi

                  TMOUT=$DAHDI_DEV_TIMEOUT # max secs to wait

                  while [ ! -d /dev/dahdi ] ; do
                       sleep 1
                      TMOUT=`expr $TMOUT - 1`
                      if [ $TMOUT -eq 0 ] ; then
                          echo "Error: missing /dev/dahdi!"
                          exit 1
                      fi
                  done

                  xpp_startup

                  # Assign all spans that weren't handled via udev + /etc/dahdi/assigned-spans.conf
                  /usr/share/dahdi/dahdi_auto_assign_compat

                  if [ $system = debian ]; then
                      echo -n "Running dahdi_cfg: "
                      $DAHDI_CFG_CMD 2&gt; /dev/null &amp;&amp; echo -n "done"
                      echo "."
                  elif [ $system = redhat ]; then
                      action "Running dahdi_cfg: " $DAHDI_CFG_CMD
                  fi
                  RETVAL=$?

                  if [ "$LOCKFILE" != '' ]; then
                      [ $RETVAL -eq 0 ] &amp;&amp; touch $LOCKFILE
                  fi

                  if [ -x "$FXOTUNE" ] &amp;&amp; [ -r /etc/fxotune.conf ]; then
                      # Allowed to fail if e.g. Asterisk already uses channels:
                      $FXOTUNE -s || :
                  fi

                  # Do not try to call xpp_sync if there are no Astribank devices
                  # installed.
                  if test -e /sys/bus/astribanks; then
                      # Set the right Astribanks ticker:
                      LC_ALL=C xpp_sync "$XPP_SYNC"
                  fi

                  hpec_start
                  ;;
                stop)
                  # Unload drivers
                  #shutdown_dynamic # FIXME: needs test from someone with dynamic spans
                  echo -n "Unloading DAHDI hardware modules: "
                  if unload_modules; then
                      echo "done"
                  else
                      echo "error"
                  fi
                  if [ "$LOCKFILE" != '' ]; then
                      [ $RETVAL -eq 0 ] &amp;&amp; rm -f $LOCKFILE
                  fi
                  ;;
                unload)
                  unload_modules
                  ;;
                restart|force-reload)
                  $0 stop
                  $0 start
                  ;;
                reload)
                  if [ $system = debian ]; then
                      echo -n "Rerunning dahdi_cfg: "
                      $DAHDI_CFG_CMD 2&gt; /dev/null &amp;&amp; echo -n "done"
                      echo "."
                  elif [ $system = redhat ]; then
                      action "Rerunning dahdi_cfg: " $DAHDI_CFG_CMD
                  fi
                  RETVAL=$?
                  ;;
                status)
                  if [ -d /proc/dahdi ]; then
                      /usr/sbin/lsdahdi
                      RETVAL=0
                  else
                      RETVAL=3
                  fi
                  ;;
                *)
                  echo "Usage: dahdi {start|stop|restart|status|reload|unload}"
                  exit 1
              esac

              exit $RETVAL

              ​ 







              و کامند dahdi show status رو که زدم پیام زیر رو داد :



              برای بزرگتر شدن عکس روی آن کلیک کنید  نام:	Paging5.jpg نمایش ها:	0 اندازه:	20.3 KB شناسه:	30192
              آخرین ویرایش توسط Habili; در تاریخ/ساعت 01-23-2024, 04:57 PM.

              کامنت


                #8
                کامند رو جای اشتباهی وارد کردید. لطفا دستور بالا رو توی محیط شل لینوکس وارد کنید.
                آخرین ویرایش توسط masome vahid; در تاریخ/ساعت 01-23-2024, 05:01 PM.

                کامنت


                  #9
                  نوشته شده توسط Habili مشاهده پست
                  کامند رو جای اشتباهی وارد کردید. لطفا دستور بالا رو توی محیط شل لینوکس وارد کنید.
                  کد PHP:
                  [root@10 ~]# /etc/init.d/dahdi status
                  [root@10 ~]#
                  [root@10 ~]# /etc/init.d/dahdi status
                  [root@10 ~]# asterisk -rv
                  Asterisk 16.7.0Copyright (C1999 2018DigiumInc. and others.
                  Created by Mark Spencer <markster@digium.com>
                  Asterisk comes with ABSOLUTELY NO WARRANTYtype 'core show warranty' for details.
                  This is free softwarewith components licensed under the GNU General Public
                  License version 2 and other licensesyou are welcome to redistribute it under
                  certain conditions
                  Type 'core show license' for details.
                  =========================================================================
                  Connected to Asterisk 16.7.0 currently running on 10 (pid 2807)
                  10*CLI> /etc/init.d/dahdi status
                  No such command 
                  '/etc/init.d/dahdi status' (type 'core show help /etc/init.d/dahdi status' for other possible commands)​ 

                  کامنت


                  • Habili
                    Habili نظر خود را بیان کرد
                    Editing a comment
                    مشکل شما برطرف شد یا همچنان پابرجاست؟

                  #10
                  ببینید با توجه به ارور
                  Unable to open DAHDI pseudo device
                  سرویس dahdi یه مشکلی داره . حالا یا ماژولش لود نیست یا خودش نصب نیست .. باید بررسی بشه و اگه نصب نیست باید سرویس dahdi رو نصب و راه اندازی کنید و مجدد تست بگیرید.
                  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