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