標題: Questions of PSTN to SPA3000 to Asterisk - Solved [打印本頁] 作者: ckleea 時間: 2011-1-18 14:04 標題: Questions of PSTN to SPA3000 to Asterisk - Solved
本帖最後由 ckleea 於 2011-1-18 15:30 編輯
I have a question on the set up. My scenario is as follow
PSTN in -> SPA3000 -> PIN acceptted -> to use asterisk dial plan.
Both Line1 and PSTN of SPA3000 have been registered into the asterisk server. Upon external call dial in, upon no pick up, SPA3000 responded and prompt for PIN, accepted, when to do need if I want to go into the asterisk IVR.作者: bubblestar 時間: 2011-1-18 14:38
If I don't get you wrong, you have to put your desired asterisk IVR extension into one of the eight Dial Plans in the DIAL PLAN section under PSTN TAB. Once you are accepted with the correct PIN, you will be put through to the IVR extension as below:
Yes, but my IVR extension is not a real one in users.conf. It is a exten in extension.conf作者: ckleea 時間: 2011-1-18 15:29
Thanks to bubblestar, it works.作者: bubblestar 時間: 2011-1-18 16:05
本帖最後由 bubblestar 於 2011-1-18 16:12 編輯
Glad that you did it.
Actually, the principle of accessing the extension not depends on real extension you created. It depends on the extension@your_server_ip that matches the incoming registration request. Hence, a virtual extension also works. This method is always used to apply in URI dialing
We don't need a real extension in users.conf.
For example, you can create a virtual extention called HKSAR and put it into your extensions.conf like:
[incoming]
exten => HKSAR,1,Dial(SIP/6001,,r)
When someone calls HKSAR@your_server_ip, it will be directed to your * Server and if it matches with the one in incoming context, your real extension 6001 will ring.
The concept here is very useful in terms of extensions management and security. You can change the named extension without changing your real extension number. Also, you don't need to disclose your real extension to strangers to strengthen security. In addition, it will be more user-friendly for your friends to remember your NAME rather than number. What do you think if you use ckleea@ckleea.com.hk? If you do, I can throw away my phone book right away作者: ckleea 時間: 2011-1-18 19:53
One more question: is how to hang up the call? I can't hang up作者: bubblestar 時間: 2011-1-18 21:53
Try this
[incoming]
exten => HKSAR,1,Dial(SIP/6001,,r)
exten => h,1,Hangup() ; signal to force hang up作者: ckleea 時間: 2011-1-18 21:57
I try to add the PSTN tab detect silence to yes. It works as well.
Thanks.作者: bubblestar 時間: 2011-1-18 22:07
Yes. SPA3000 has such silence detection feature as well. It depends on which ways suit you best. I use both ways in SPA3102 and Asterisk Server extension.conf作者: ckleea 時間: 2011-1-19 08:25