Can you give me an example to go directly into voicemail for unanswer after 30 sec?作者: 角色 時間: 2010-9-8 09:45
This is not belong to IVR system. I believe it is belong to the general voicemail setting for some extensions.
YH作者: ckleea 時間: 2010-9-8 09:48
I mean to implement in 2 ways,
1. without going into IVR, just answering machine, go into voicemail after non-attendance for 30 sec
2. in the IVR, branch to voicemail after pressing certain keys to save the incoming message of caller.作者: 角色 時間: 2010-9-8 09:55
本帖最後由 角色 於 2010-9-8 10:33 編輯
For the first question, you may use the following codes
#
[from-pstn-1]
exten => s,1,Dial(SIP/6001,30,)
exten => s,2,Voicemail (........) since I am not familiar with voicemail, I am not sorry that I am not able to provide the codes
複製代碼
For the second second, you make take a look at the Future of Telephony: Asterisk, you may find the answer.
u denotes unavailable作者: bubblestar 時間: 2010-9-8 10:38
本帖最後由 bubblestar 於 2010-9-8 10:40 編輯
如果唔想為每一條內線都設定相同的CODE,可以試下咁樣。
sip.conf
[globals]
RINGTIME=30
[internal]
; If nobody picks up within 30 seconds, the call is sent to voicemail
; If the extension is busy, the call is sent to voicemail
exten => _6[0-3]XX,1,Set(TARGETNO=${EXTEN})
exten => _6[0-3]XX,n,Dial(SIP/${EXTEN},${RINGTIME})
; routes the call to the status priority (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
exten => _6[0-3]XX,n,Goto(s-${DIALSTATUS},1)
; person at extension "is unavailable" message
exten => s-NOANSWER,1,VoiceMail(${TARGETNO},u)
; person at extension "is busy" message
exten => s-BUSY,1,VoiceMail(${TARGETNO},b)
; to be safe, clean up the call after an answer by hanging up
exten => s-ANSWER,1,Hangup()
; handle any unhandled status the same way we handle NOANSWER
exten => _s-.,1,Goto(s-NOANSWER,1)
Both notebook and remarks are good practice. But the problem for me is that we add, delete and edit the scripts. After a while, I forget what have been done.作者: ckleea 時間: 2010-10-24 21:53
Would like to ask about second stage dialing, the example allows to go to inside extensions. But how about dealing with next stage of dialing example go for outside call or IDD via VOIP?
I always got invalid extension.作者: 角色 時間: 2010-10-24 22:37
I believe that some of extensions are not seen within the context of your ivr.
Using YH's example for further illustration as below. You may add another context in extensions.conf to enhance the usage. Assume that you are going to use or dial PSTN===> VoIP ===> PSTN. This implementation must be used subject to the availability of 2 PSTN lines.
dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Sun Aug 29 15:00:16 2010
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
[viaPSTN]
; use any first available PSTN line of Group 0 to dial out your IDD or outside line. It will be more flexible if you have 2 or more PSTN lines.
exten => _5.,1,Dial(DAHDI/g0/${EXTEN:1},,r)
exten => _5.,2,Congestion
or
[viaPSTN]
; use designated PSTN line 1 to dial out IDD or outside line
exten => _5.,1,Dial(DAHDI/1/${EXTEN:1},,r)
exten => _5.,2,Congestion作者: ckleea 時間: 2010-10-25 06:07
Thanks, bubblestar. I always have the assumption that when passing to another extensions, I can get hold of the dialplan as well. Will try.作者: ckleea 時間: 2010-10-25 06:08
本帖最後由 ckleea 於 2010-10-25 07:29 編輯
Thanks, bubblestar. I always have the assumption that when passing to another extensions, I can get hold of the dialplan as well. Will try.
Follow up:
It works very well. Next, is to work out a better configuration and do a more detailed IVR. Perhaps to include password protected.作者: bubblestar 時間: 2010-10-25 09:53
本帖最後由 bubblestar 於 2010-10-25 10:00 編輯
Good to hear that it works for you. Always put your own dialplan using the include => XXX which can create different kinds of combination that suits your own needs.
Regarding the inclusion of password (for IDD protection or avoid being abused), you may insert just one line in the first place as below:
[viaPSTN]
; use any first available PSTN line of Group 0 to dial out your IDD or outside line. It will be more flexible if you have 2 or more PSTN lines.
exten => _5.,1,Authenticate(8888,,4)
exten => _5.,n,Dial(DAHDI/g0/${EXTEN:1},,r)
exten => _5.,n,Congestion
or
[viaPSTN]
; use designated PSTN line 1 to dial out IDD or outside line
exten => _5.,1,Authenticate(8888,,4)
exten => _5.,n,Dial(DAHDI/1/${EXTEN:1},,r)
exten => _5.,n,Congestion
I think some other more effective, secure and better method can do the same. If anyone of you can provide your settings, please be generous to share.
Many thanks作者: ckleea 時間: 2010-10-25 10:06
Excellent, you help me a lot.
謝謝 Bubblestar 兄。
Security is the major issue for us to work on.
My next task is to migrate some of the scripts to the switchfin driven IP01. I will then put it in UK for another 落腳點。作者: ckleea 時間: 2010-10-25 16:50
One more question: If I allow to dial IDD or go via gizmo to US, how can I extend the duration of waitexten long enough to capture all the input? I can be able to input 9 digits but when I input 01747XXXXXXX, the script accepts only 01 and then fails.作者: bubblestar 時間: 2010-10-25 17:30