سوال چطور میتونم از dialstatus استفاده کنم برای اینکه اگر تماسی برقرار میشه و مثلا status callwaiting هست بخوام یه Announcement پخش بشه که تماس گیرنده متوجه بشه ؟
Announcement
Collapse
No announcement yet.
پخش annoncement هنگامی که داخلی استریسک status callwaiting میباشد
Collapse
X
-
متغير DEVICESTATE رو چك كن. با اضافه كردن notifyhold=yes به بخش general در فايل sip.conf از مقدار onhold به اين متغير اونم براي گوشي هايي كه ساپورت كنن ميشه فهميد كه در حالا hold هست.
اینستاگرام انجمن لینوکس ایران : https://www.instagram.com/iranlinuxforum
Comment
-
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
-
براي خط شهري و حتي E1 تا جايي كه يادمه نميشه progress كرد و early media فرستاد و خط بايد answer بشه تا طرف مقابل صدا رو بشنوه.Originally posted by paatimar View PostProgress کنید اگر وضعیت 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
-
یک راه دیگه استفاده از پارامتر 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
-
داخلي باشه اكيه. E1 تجربه اش رو داشتي مهندس؟ چون خيلي بدرد ميخوره منتها چند جايي كه من لازم داشتم ... اينكه امكانش هست تو pri رو ميدونم منتها مخابرات؟اینستاگرام انجمن لینوکس ایران : https://www.instagram.com/iranlinuxforum
Comment

Comment