返回列表 發帖

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.

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:

For example:

6001@your_asterisk_server_IP_address

TOP

Yes, but my IVR extension is not a real one in users.conf. It is a exten in extension.conf

TOP

Thanks to bubblestar, it works.

TOP

本帖最後由 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

TOP

One more question: is how to hang up the call? I can't hang up

TOP

Try this

[incoming]
exten => HKSAR,1,Dial(SIP/6001,,r)
exten => h,1,Hangup()                     ; signal to force hang up

TOP

回復 7# bubblestar

I try to add the PSTN tab detect silence to yes. It works as well.

Thanks.

TOP

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

TOP

回復 9# bubblestar


    You are right. While the PSTN hangs up, the sip channel does not. Both should be required.

TOP

返回列表