Announcement

Collapse
No announcement yet.

پخش annoncement هنگامی که داخلی استریسک status callwaiting میباشد

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    پخش annoncement هنگامی که داخلی استریسک status callwaiting میباشد

    سوال چطور میتونم از dialstatus استفاده کنم برای اینکه اگر تماسی برقرار میشه و مثلا status callwaiting هست بخوام یه Announcement پخش بشه که تماس گیرنده متوجه بشه ؟

    #2
    از متغییر ${DIALSTATUS} استفاده کنید. البته بعد از اجرای دستور Dial میتونید ازش استفاده کنید. حالا با در خط بعد یا در اکسنشن h
    ولی state callwaiting در DIALSTATUS نداریم!

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

    Comment


      #3
      Originally posted by amir View Post
      از متغییر ${DIALSTATUS} استفاده کنید. البته بعد از اجرای دستور Dial میتونید ازش استفاده کنید. حالا با در خط بعد یا در اکسنشن h
      ولی state callwaiting در DIALSTATUS نداریم!
      بله درست می فرمایید ولی آیا راهکاری وجود داره برای این منظور

      Comment


        #4
        متغير DEVICESTATE رو چك كن. با اضافه كردن notifyhold=yes به بخش general در فايل sip.conf از مقدار onhold به اين متغير اونم براي گوشي هايي كه ساپورت كنن ميشه فهميد كه در حالا hold هست.

        اینستاگرام انجمن لینوکس ایران : https://www.instagram.com/iranlinuxforum

        Comment


          #5
          قبلا انجام شده و اینکه این فقط یه پیام هست که برخی از گوشی ها نمایش میدن. منظورم این بود تماس گیرنده یه پیام بشنوه.

          Comment


            #6
            Progress کنید اگر وضعیت busy بود پیام پخش کنید.
            Code:
            Use the Progress() application in your dial plan before you Answer() the line. Use the Background() application with the 'n' flag or the Playback() application with the 'noanswer' flag to play your announcement, so that the line is not answered automatically for you.
            اینستاگرام انجمن لینوکس ایران : https://www.instagram.com/iranlinuxforum

            Comment


              #7
              Originally posted by paatimar View Post
              Progress کنید اگر وضعیت busy بود پیام پخش کنید.
              Code:
              Use the Progress() application in your dial plan before you Answer() the line. Use the Background() application with the 'n' flag or the Playback() application with the 'noanswer' flag to play your announcement, so that the line is not answered automatically for you.
              براي خط شهري و حتي E1 تا جايي كه يادمه نميشه progress كرد و early media فرستاد و خط بايد answer بشه تا طرف مقابل صدا رو بشنوه.
              اینستاگرام انجمن لینوکس ایران : https://www.instagram.com/iranlinuxforum

              Comment


                #8
                یک راه دیگه استفاده از پارامتر m در دستور dial هستش که تا زمان جواب دادن شخص موزیک انتظار پخش میکنه که میتونه شامل یک پام هم باشه که داخلی در حال مکالمه است یا اشغال است و ...

                - - - Updated - - -

                Originally posted by behrooz View Post
                براي خط شهري و حتي e1 تا جايي كه يادمه نميشه progress كرد و early media فرستاد و خط بايد answer بشه تا طرف مقابل صدا رو بشنوه.
                روی آنالوگ نمیشه.
                روی e1 شدنی هستش.
                ولی ایشون روی داخلی میخوان چک کنن.
                PHP Code:

                exten 
                => 500,1,Progress()

                exten => 500,n,Wait(1)

                exten => 500,n,Playback(WeAreClosedGoAway,noanswer)

                exten => 500,n,Hangup() 
                Code:
                ; Allow inband audio (progress) when a call is RELEASEd by the far end of a PRI
                ;
                ;inbanddisconnect=yes
                ;
                ; PRI Out of band indications.
                ; Enable this to report Busy and Congestion on a PRI using out-of-band
                ; notification. Inband indication, as used by Asterisk doesn't seem to work
                ; with all telcos.
                ; 
                ; outofband:      Signal Busy/Congestion out of band with RELEASE/DISCONNECT
                ; inband:         Signal Busy/Congestion using in-band tones (default)
                اینستاگرام انجمن لینوکس ایران : https://www.instagram.com/iranlinuxforum

                Comment


                  #9
                  داخلي باشه اكيه. E1 تجربه اش رو داشتي مهندس؟ چون خيلي بدرد ميخوره منتها چند جايي كه من لازم داشتم ... اينكه امكانش هست تو pri رو ميدونم منتها مخابرات؟
                  اینستاگرام انجمن لینوکس ایران : https://www.instagram.com/iranlinuxforum

                  Comment

                  Working...
                  X