[Asterisk-Users] sip provider
Thore
thore at usmail.no
Sun Mar 27 08:55:01 MST 2005
Hi
I have a voip provider use sip. To telephones with exten. 201 and 202.
My voip provider give me this numbers 33297540 and 33297545.
Is it possible to get exten 201 to ring out on 33297540 and 202 -> 33297545 ?
This is my config now :
sip.conf:
[general]
context=default
realm=olsen.com
port=5060
bindaddr=0.0.0.0
srvlookup=yes
; fjern ";" fra følgende hvis Asterisk er bag NAT og har statisk IP:
;externip=1.2.3.4 ; erstat med din statiske IP adresse
register =>33297540:nisse at voip.dk/33297540
register => 33297545:nisse at voip.dk/33297545
; Voip
[33297540]
type=friend
host=voip.dk
dtmfmode=rfc2833
canreinvite=no
username=33297540
secret=nisse
context=voip_incoming
nat=yes
fromuser=33297540
fromdomain=voip.dk
insecure=very
[33297545]
type=friend
host=voip.dk
dtmfmode=rfc2833
canreinvite=no
username=33297545
secret=nisse
context=voip_incoming
nat=yes
fromuser=33297545
fromdomain=voip.dk
insecure=very
; SPA-2000 Line 1
[201]
type=friend
host=dynamic
context=dialout
username=201
secret=spapassword
callerid="Thore" <201>
nat=
[202]
type=friend
host=dynamic
context=dialout
username=202
secret=spapassword
callerid="Tom" <202>
nat=no ;
extensions.conf:
[general]
static=yes
writeprotect=no
[globals]
[voip_outgoing]
exten => _X.,1,Dial(Sip/voip/${EXTEN},120)
exten => _X.,2,Congestion
[dialout]
include => voip_outgoing
[voip_incoming]
exten => 33297540,1,Dial(Sip/201,120)
exten => 33297540,2,Congestion
exten => 33297545,1,Dial(Sip/202,120)
exten => 33297545,2,Congestion
Thore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050327/a1371e86/attachment.htm
More information about the asterisk-users
mailing list