Page Source for PersNumbersConfig
=begin options
write = root
=end options
=head2 VOIP devices configuration for using personal numbers
There are two ways how you can use your VOIP device together with
Diamondcard personal numbers.
First may be used when you are on the static IP address or using
Dynamic DNS service. That's preferable for server setup.
Second will work when you are on dynamic IP address. In this case your
VOIP device should keep registration with our server. That's preferable
method for IP phones, ATAs, etc.
=head3 Without registration
When you configure personal numbers you select "Redirect to:" option
from picklist and specify SIP or IAX url which should contain
authentication information and your host name.
SIP phone numbers specified as
SIP/user@domain.com:port
IAX phone numbers specified as
IAX2/user:pass@domain.com/number
You may also L<include dialed DID|DidInFwdRule> in called URL.
E.g.:
SIP/\${EXTEN}@mypbxhost.net
IAX2/fromdc:2324tret@mypbxhost.net/\${EXTEN}
\${EXTEN} - will be replaced with the DID number being used at the
moment.
Here is an example on how to setup your L<Asterisk|Asterisk> to
accept calls routed by Diamondcard.
iax.conf
; User entry for incoming calls from Diamondcard.us personal numbers
[diamondcard]
type=user
disallow=all
allow=gsm,ulaw
context=from-diamondcard ; Context where calls to personal numbers
should go.
secret=3Jkys7y42w ; You SHOULD change this password.
extensions.conf
; Context for incoming calls from Diamondcard.us personal numbers
[from-diamondcard]
exten => 555,1,Answer
exten => 555,2,.....
Such L<Asterisk|Asterisk> configuration expect "Redirect to:" or
"Phone Number" fields to look like:
IAX2/diamondcard:3Jkys7y42w@yourasteriskdomain.com/555
555 - in this example is an extension where the call should terminate.
You can forward the call to a default extension "s" of
"from-diamondcard" context specifying number like:
IAX2/diamondcard:3JenIes72w@yourasteriskdomain.com
=head3 With registration
Your VOIP equipment should be set to register on one of our gatways
with your AccounId and PIN code.
Then in web admin center using "personal #'s" link you should create
<redirect profile|RedirectProfile> which will forward calls to
"Your IP phone". After that <redirect profile|RedirectProfile>
should be assigned to your personal number.
Here is example of L<Asterisk|Asterisk> configuration:
If you want to use SIP protocol
sip.conf
; Add this near other 'register' statements
register => Your_AccountID:Your_PIN_code@diamondcard
;...
; Add this at the end of sip.conf file
[diamondcard]
type=peer
qualify=110
username=Your_AccountID
fromuser=Your_AccountID
secret=Your_PIN_code
host=sip.diamondcard.us
disallow=all
allow=gsm,ulaw
context=from-diamondcard
insecure=invite
If you want to use IAX2 protocol
iax2.conf
; Add this near other 'register' statements
; eu1.ast.diamondcard.us host should be used if you are closer to
Europe.
; usgw.ast.diamondcard.us host should be used if you are closer to USA.
register => Your_AccountID:Your_PIN_code@usgw.ast.diamondcard.us
;...
; Add this at the end of iax2.conf file
[Your_AccountID]
type=user
secret=Your_PIN_code
disallow=all
allow=gsm,ulaw
context=from-diamondcard
For both SIP and IAX2 protocols
extensions.conf
; Add this at the end of extensions.conf file
[from-diamondcard]
exten => s,1,Noop
exten => s,n,Answer
exten => s,n,......
exten => s,n,Hangup
X<SIP IAX did Asterisk iax2>
Tags for this page: asterisk
did
iax
iax2
sip