Hi
thanks to everybody who has been assisting me in solving the various problems I had to dial out from Asterisk to a PSTN number with SIP using Nikotel's VoIP service.
I have drafted a mini-how-to which is available at
http://www.akabeni.com/benjk/Using_Asterisk_with_Nikotel.pdf
This is a first draft, I will amend this further, in particular the "verify and debug" section which is blank right now.
here is a plain text summary:
in sip.conf ...
------------------------------------------------------
; SIP Registration with Nikotel
;
register => myusername:[EMAIL PROTECTED]
; SIP peer definition
;
[nikotel]
type=friend
secret=mypassword
auth=md5
username=myusername
fromuser=myusername ; IMPORTANT! Nikotel requires this!
host=calamar0.nikotel.com
------------------------------------------------------
in extensions.conf
------------------------------------------------------
; Extensions
;
[globals]
CC => 81 ; Local country code (here Japan)
PSTN => Zap/1 ; incoming NTT line
REDPHONE => Zap/2 ; internal analog line
FAXPHONE => Zap/3 ; internal fax line
IPPHONE1 => SIP/Sip1 ; IP phone #1
IPPHONE2 => SIP/Sip2 ; IP phone #2
; International long distance through VoIP service
;
[voipintl]
exten => _00N.,1,Dial(SIP/${EXTEN:[EMAIL PROTECTED],60,r)
exten => _00N.,2,Congestion
[voipnatl]
;
; National long distance and local throuh VoIP service
;
exten => _0N.,1,Dial(SIP/${CC}${EXTEN:[EMAIL PROTECTED],60,r)
exten => _0N.,2,Congestion
[international]
include => voipintl
[national]
include => voipnatl
[incoming]
exten => s,1,Dial(${IPPHONE1}&${IPPHONE2),20,r)
[internal]
exten => 1001,1,Dial(${IPPHONE1},20,tr)
exten => 1001,2,Congestion
exten => 1002,1,Dial(${IPPHONE2},20,tr)
exten => 1002,2,Congestion
include => national
include => international
------------------------------------------------------
regards
bk
[Asterisk-Users] Follow-up -- Using Asterisk with Nikotel
BK [address only for mailing lists] Mon, 07 Jul 2003 13:46:18 -0700
