اطلاعیه

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

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

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

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

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

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

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

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

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

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

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

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

نام:	Paging3.jpg
نمایش ها:	293
اندازه:	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 & Linux Trainer
    kamailio-freeswitch-Asterisk-Issabel-fusion-Programming
    Newrock-Sangoma-Digium-Openvox-Synway-Atcom-Quintum Tenor-Polycom-Yealink-Snom-yeastar-grandstream
    Cisco Collaboration - CME-CUCM-CUPs-CUC-WEBEX
    ZABBIX-VOIPMONITOR
    Linux-Devops

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

    کامنت


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

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

      کامنت


        #4
        کد PHP:
        [2024-01-23 10:45:44] VERBOSE[30458][C-00071faa] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'Local/1270@from-queue-00053b1d;2'
        [2024-01-23 10:45:45] VERBOSE[2952][C-00071fad] netsock2.c: Using SIP RTP TOS bits 184
        [2024-01-23 10:45:45] VERBOSE[2952][C-00071fad] netsock2.c: Using SIP RTP CoS mark 5
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@from-internal:1] Goto("SIP/350-0008d7f2", "app-pagegroups,320,1") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx_builtins.c: Goto (app-pagegroups,320,1)
        [
        2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@app-pagegroups:1] Macro("SIP/350-0008d7f2", "user-callerid,") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:1] Set("SIP/350-0008d7f2", "TOUCH_MONITOR=1705994145.8612786") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:2] Set("SIP/350-0008d7f2", "AMPUSER=350") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:3] GotoIf("SIP/350-0008d7f2", "0?report") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:4] ExecIf("SIP/350-0008d7f2", "1?Set(REALCALLERIDNUM=350)") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:5] Set("SIP/350-0008d7f2", "AMPUSER=350") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:6] GotoIf("SIP/350-0008d7f2", "0?limit") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:7] Set("SIP/350-0008d7f2", "AMPUSERCIDNAME=350") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:8] GotoIf("SIP/350-0008d7f2", "0?report") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:9] Set("SIP/350-0008d7f2", "AMPUSERCID=350") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:10] Set("SIP/350-0008d7f2", "__DIAL_OPTIONS=tr") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:11] Set("SIP/350-0008d7f2", "CALLERID(all)="350" <350>") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:12] GotoIf("SIP/350-0008d7f2", "0?limit") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:13] ExecIf("SIP/350-0008d7f2", "0?Set(GROUP(concurrency_limit)=350)") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:14] ExecIf("SIP/350-0008d7f2", "0?Set(CHANNEL(language)=)") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:15] GotoIf("SIP/350-0008d7f2", "0?continue") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:16] Set("SIP/350-0008d7f2", "__TTL=64") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:17] GotoIf("SIP/350-0008d7f2", "1?continue") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx_builtins.c: Goto (macro-user-callerid,s,28)
        [
        2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:28] Set("SIP/350-0008d7f2", "CALLERID(number)=350") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:29] Set("SIP/350-0008d7f2", "CALLERID(name)=350") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:30] Set("SIP/350-0008d7f2", "CDR(cnum)=350") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:31] Set("SIP/350-0008d7f2", "CDR(cnam)=350") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [s@macro-user-callerid:32] Set("SIP/350-0008d7f2", "CHANNEL(language)=pr") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@app-pagegroups:2] Set("SIP/350-0008d7f2", "_PAGEGROUP=320") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@app-pagegroups:3] GotoIf("SIP/350-0008d7f2", "1?:busy") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@app-pagegroups:4] Set("SIP/350-0008d7f2", "DEVICE_STATE(Custom:PAGE320)=INUSE") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@app-pagegroups:5] Answer("SIP/350-0008d7f2", "") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@app-pagegroups:6] Gosub("SIP/350-0008d7f2", "app-paging,ssetup,1()") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [ssetup@app-paging:1] Set("SIP/350-0008d7f2", "_SIPURI=") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [ssetup@app-paging:2] Set("SIP/350-0008d7f2", "_ALERTINFO=Alert-Info: Ring Answer") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [ssetup@app-paging:3] Set("SIP/350-0008d7f2", "_CALLINFO=Call-Info: <uri>;answer-after=0") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [ssetup@app-paging:4] Set("SIP/350-0008d7f2", "_SIPURI=intercom=true") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [ssetup@app-paging:5] Set("SIP/350-0008d7f2", "_DOPTIONS=A()") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [ssetup@app-paging:6] Set("SIP/350-0008d7f2", "_DTIME=5") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [ssetup@app-paging:7] Set("SIP/350-0008d7f2", "_ANSWERMACRO=") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [ssetup@app-paging:8] Set("SIP/350-0008d7f2", "PAGE_CONF=1705994145418") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [ssetup@app-paging:9] Return("SIP/350-0008d7f2", "") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@app-pagegroups:7] Set("SIP/350-0008d7f2", "PAGEMODE=FPAGE") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@app-pagegroups:8] Set("SIP/350-0008d7f2", "PAGE_MEMBERS=1040") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@app-pagegroups:9] Set("SIP/350-0008d7f2", "PAGE_CONF_OPTS=1dqsxm") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@app-pagegroups:10] AGI("SIP/350-0008d7f2", "page.agi") in new stack
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/page.agi
        [2024-01-23 10:45:45] VERBOSE[30504] manager.c: Manager 'admin' logged on from 127.0.0.1
        [2024-01-23 10:45:45] VERBOSE[30507] dial.c: Called s@app-page-stream
        [2024-01-23 10:45:45] VERBOSE[30508][C-00071fae] pbx.c: Executing [s@app-page-stream:1] Wait("Local/s@app-page-stream-00053b1e;2", "1") in new stack
        [2024-01-23 10:45:45] VERBOSE[30509] dial.c: Called PAGE1040@app-paging
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [PAGE1040@app-paging:1] Macro("Local/PAGE1040@app-paging-00053b1f;2", "autoanswer,1040") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [s@macro-autoanswer:1] Set("Local/PAGE1040@app-paging-00053b1f;2", "DIAL=SIP/1040") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [s@macro-autoanswer:2] ExecIf("Local/PAGE1040@app-paging-00053b1f;2", "0?Set(DIAL=DAHDI/1040)") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [s@macro-autoanswer:3] GotoIf("Local/PAGE1040@app-paging-00053b1f;2", "0?macro") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [s@macro-autoanswer:4] Set("Local/PAGE1040@app-paging-00053b1f;2", "phone=") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [s@macro-autoanswer:5] ExecIf("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:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [s@macro-autoanswer:6] ExecIf("Local/PAGE1040@app-paging-00053b1f;2", "0?Set(ALERTINFO=Alert-Info: Intercom)") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [s@macro-autoanswer:7] ExecIf("Local/PAGE1040@app-paging-00053b1f;2", "0?Set(ALERTINFO=Alert-Info: info=Auto Answer)") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [s@macro-autoanswer:8] ExecIf("Local/PAGE1040@app-paging-00053b1f;2", "0?Set(ALERTINFO=Alert-Info: ring-answer)") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [s@macro-autoanswer:9] ExecIf("Local/PAGE1040@app-paging-00053b1f;2", "1?SipAddHeader(Alert-Info: Ring Answer)") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [s@macro-autoanswer:10] ExecIf("Local/PAGE1040@app-paging-00053b1f;2", "1?SipAddHeader(Call-Info: <uri>;answer-after=0)") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [s@macro-autoanswer:11] ExecIf("Local/PAGE1040@app-paging-00053b1f;2", "1?Set(__SIP_URI_OPTIONS=intercom=true)") in new stack
        [2024-01-23 10:45:45] VERBOSE[30512] dial.c: Called s@app-page-stream
        [2024-01-23 10:45:45] VERBOSE[30513][C-00071fb0] pbx.c: Executing [s@app-page-stream:1] Wait("Local/s@app-page-stream-00053b20;2", "1") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Executing [PAGE1040@app-paging:2] Dial("Local/PAGE1040@app-paging-00053b1f;2", "SIP/1040,5,A()") in new stack
        [2024-01-23 10:45:45] VERBOSE[30504] manager.c: Manager 'admin' logged off from 127.0.0.1
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] res_agi.c: <SIP/350-0008d7f2>AGI Script page.agi completed, returning 0
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] netsock2.c: Using SIP RTP TOS bits 184
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] netsock2.c: Using SIP RTP CoS mark 5
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] app_dial.c: Called SIP/1040
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [320@app-pagegroups:11] MeetMe("SIP/350-0008d7f2", "1705994145418,dqwxAG,,") in new stack
        [2024-01-23 10:45:45] WARNING[30500][C-00071fad] app_meetme.c: Unable to open DAHDI pseudo device
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Spawn extension (app-pagegroups, 320, 11) exited non-zero on 'SIP/350-0008d7f2'
        [2024-01-23 10:45:45] VERBOSE[30500][C-00071fad] pbx.c: Executing [h@app-pagegroups:1] ExecIf("SIP/350-0008d7f2", "1?Set(DEVICE_STATE(Custom:PAGE320)=NOT_INUSE)") in new stack
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] app_dial.c: SIP/1040-0008d7f3 is ringing
        [2024-01-23 10:45:45] VERBOSE[30509] dial.c: Local/PAGE1040@app-paging-00053b1f;1 is ringing
        [2024-01-23 10:45:45] VERBOSE[30457][C-00071faa] res_musiconhold.c: Stopped music on hold on SIP/1080-0008d7ec
        [2024-01-23 10:45:45] VERBOSE[30457][C-00071faa] pbx.c: Spawn extension (from-internal, 127, 39) exited non-zero on 'SIP/1080-0008d7ec'
        [2024-01-23 10:45:45] VERBOSE[30457][C-00071faa] pbx.c: Executing [h@from-internal:1] Hangup("SIP/1080-0008d7ec", "") in new stack
        [2024-01-23 10:45:45] VERBOSE[30457][C-00071faa] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1080-0008d7ec'
        [2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] app_dial.c: SIP/1040-0008d7f3 answered Local/PAGE1040@app-paging-00053b1f;2
        [2024-01-23 10:45:45] VERBOSE[30509] dial.c: Local/PAGE1040@app-paging-00053b1f;1 answered
        [2024-01-23 10:45:45] WARNING[30509] app_meetme.c: Unable to open DAHDI pseudo device
        [2024-01-23 10:45:45] VERBOSE[30514][C-00071faf] bridge_channel.c: Channel SIP/1040-0008d7f3 joined 'simple_bridge' basic-bridge <bdafc732-d803-471d-b785-d0f9ebf00439>
        [
        2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] bridge_channel.c: Channel Local/PAGE1040@app-paging-00053b1f;2 joined 'simple_bridge' basic-bridge <bdafc732-d803-471d-b785-d0f9ebf00439>
        [
        2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] bridge_channel.c: Channel Local/PAGE1040@app-paging-00053b1f;2 left 'simple_bridge' basic-bridge <bdafc732-d803-471d-b785-d0f9ebf00439>
        [
        2024-01-23 10:45:45] VERBOSE[30514][C-00071faf] bridge_channel.c: Channel SIP/1040-0008d7f3 left 'simple_bridge' basic-bridge <bdafc732-d803-471d-b785-d0f9ebf00439>
        [
        2024-01-23 10:45:45] VERBOSE[30510][C-00071faf] pbx.c: Spawn extension (app-paging, PAGE1040, 2) exited non-zero on 'Local/PAGE1040@app-paging-00053b1f;2'
        [2024-01-23 10:45:46] VERBOSE[30508][C-00071fae] pbx.c: Executing [s@app-page-stream:2] Answer("Local/s@app-page-stream-00053b1e;2", "") in new stack
        [2024-01-23 10:45:46] VERBOSE[30507] dial.c: Local/s@app-page-stream-00053b1e;1 answered
        [2024-01-23 10:45:46] VERBOSE[30513][C-00071fb0] pbx.c: Executing [s@app-page-stream:2] Answer("Local/s@app-page-stream-00053b20;2", "") in new stack
        [2024-01-23 10:45:46] VERBOSE[30512] dial.c: Local/s@app-page-stream-00053b20;1 answered
        [2024-01-23 10:45:46] VERBOSE[30512] file.c: <Local/s@app-page-stream-00053b20;1> Playing 'beep.gsm' (language 'en')
        [
        2024-01-23 10:45:46] VERBOSE[30513][C-00071fb0] pbx.c: Executing [s@app-page-stream:3] MeetMe("Local/s@app-page-stream-00053b20;2", "1705994145418,xq,,") in new stack
        [2024-01-23 10:45:46] VERBOSE[30513][C-00071fb0] pbx.c: Spawn extension (app-page-stream, s, 3) exited non-zero on 'Local/s@app-page-stream-00053b20;2'
        [2024-01-23 10:45:46] VERBOSE[30508][C-00071fae] pbx.c: Executing [s@app-page-stream:3] MeetMe("Local/s@app-page-stream-00053b1e;2", "1705994145418,xqA,,") in new stack
        [2024-01-23 10:45:46] VERBOSE[30508][C-00071fae] pbx.c: Spawn extension (app-page-stream, s, 3) exited non-zero on 'Local/s@app-page-stream-00053b1e;2'
        [2024-01-23 10:45:46] VERBOSE[30517] manager.c: Manager '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 & Linux Trainer
            kamailio-freeswitch-Asterisk-Issabel-fusion-Programming
            Newrock-Sangoma-Digium-Openvox-Synway-Atcom-Quintum Tenor-Polycom-Yealink-Snom-yeastar-grandstream
            Cisco Collaboration - CME-CUCM-CUPs-CUC-WEBEX
            ZABBIX-VOIPMONITOR
            Linux-Devops

            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 [ -f /etc/debian_version ]; then
                  system
              =debian
              fi

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

              if [ -f /etc/SuSE-release -o -f /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"

              [ -r /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 "$module" in xpd_*) mods="xpp_usb $mods";; esac

                  
              for mod in $mods; do
                      case 
              "$mod" in
                      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_DAHDI" = yes -a "$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_DAHDI" = yes -a "$CALLED_FROM_ATRIBANK_HOOK" = '' ]
                  
              then
                      
              exit 0
                  fi
              }

              # Initialize the Xorcom Astribank (xpp/) using perl utiliites:
              xpp_startup() {
                  if [ 
              "$ASTERISK_SUPPORTS_DAHDI_HOTPLUG" = yes ]; then
                      aas_param
              ='/sys/module/dahdi/parameters/auto_assign_spans'
                      
              aas=`cat "$aas_param" 2&gt;/dev/null`
                      if [ 
              "$aas" = 0 ]; then
                          
              echo 1&gt;&amp;2 "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_xpds; then return 0; fi

                  hotplug_exit_after_load
              }


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

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

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

                  
              # dahdihpec_enable properly installed
                  
              if [ $system = debian ]; then
                      
              echo -n "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 [ $? = 0 ]; then
                      
              echo -n "done"
                      
              echo "."
                  
              else
                      echo -
              n "Failed"
                      
              echo -n "."
                      
              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 -q ' 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.0, Copyright (C) 1999 - 2018, Digium, Inc. and others.
                  Created by Mark Spencer <markster@digium.com>
                  Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
                  This is free software, with components licensed under the GNU General Public
                  License version 2 and other licenses; you 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 & Linux Trainer
                  kamailio-freeswitch-Asterisk-Issabel-fusion-Programming
                  Newrock-Sangoma-Digium-Openvox-Synway-Atcom-Quintum Tenor-Polycom-Yealink-Snom-yeastar-grandstream
                  Cisco Collaboration - CME-CUCM-CUPs-CUC-WEBEX
                  ZABBIX-VOIPMONITOR
                  Linux-Devops

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

                  کامنت


                    #11
                    نوشته شده توسط masome vahid مشاهده پست
                    ببینید با توجه به ارور
                    Unable to open DAHDI pseudo device
                    سرویس dahdi یه مشکلی داره . حالا یا ماژولش لود نیست یا خودش نصب نیست .. باید بررسی بشه و اگه نصب نیست باید سرویس dahdi رو نصب و راه اندازی کنید و مجدد تست بگیرید.
                    این مشکل یه راه حل خیلی ساده ولی غیر قابل پیشبینی داشت !
                    اگر ایزابل روی مجازی ساز ESXi نصب باشه برای استفاده از سرویس های مشابه Dahdi باید از تنظیمات ماشین مجازی secure boot رو خاموش کرد 😑
                    چندین بار حذف و نصب و تست و عوض کردن تنظیمات لینوکس آخرش به این راه حل نه چندان تخصصی ولی به دور ذهن ختم شد

                    کامنت


                      #12
                      سلام مهندس صدیقی
                      ممنون بابت اینکه تجربه تونو به اشتراک گذاشتین.🙏🙏

                      Instagram : https://www.instagram.com/iranlinuxforum

                      Voip Trainer - Asterisk - Elastix - Agi Programming- NewRock

                      Voip & Linux Trainer
                      kamailio-freeswitch-Asterisk-Issabel-fusion-Programming
                      Newrock-Sangoma-Digium-Openvox-Synway-Atcom-Quintum Tenor-Polycom-Yealink-Snom-yeastar-grandstream
                      Cisco Collaboration - CME-CUCM-CUPs-CUC-WEBEX
                      ZABBIX-VOIPMONITOR
                      Linux-Devops

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

                      کامنت

                      در حال انجام ...
                      X