[Asterisk-Users] IAX to IAX connect question

Raul Elizondo (wizardteam) rauleli at wizardteam.com
Thu Sep 16 04:24:11 MST 2004


I think i got the solution for what i was planing to set.  Here is a
ontheway sample (not what i got but its about the same)

Office iax.conf
---------------
register => 123456:somepass at iax2.fwdnet.net

jitterbuffer=no
tos=lowdelay

[iaxfwd]
type=user
context=fromiaxfwd
auth=rsa
inkeys=freeworlddialup
diallow=all
allow=ulaw

[myofficename]
type=peer
host=dynamic
auth=rsa
outkeys=myrsa
username=myofficename
context=somecontext

[user01]
type=friend
user=user01
host=dynamic
secret=somepass01
username=user01
context=accesslevel01

[user02]
type=friend
user=user02
host=dynamic
secret=somepass01
username=user01
context=accesslevel01

Office extensions.conf
----------------------
[general]
static=yes
writeprotect=no

[globals]
MYUSER01=IAX2/myofficename:[myrsa]@user01
MYUSER02=IAX2/myofficename:[myrsa]@user02
MYOFFICENAMECID="Some name"
MYFWDUP=IAX2/123456:somepass at iax2.fwdnet.net

[extensions]
; set of extensions
; for testing like echotest and others
; or whatever else needed

[fromiaxfwd]
exten => 123456,1,Answer
exten => 123456,2,Dial(${MYUSER01}&${MYUSER02},60,r)
exten => 123456,3,Hangup

[toiaxfwd]
exten => _8.,1,SetCallerId,${MYOFFICENAMECID}
exten => _8.,2,Dial(${MYFWDUP}/${EXTEN:1},60,r)
exten => _8.,3,Congestion

[accesslevel01]
include => extensions
ignorepat => 8
include => toiaxfwd

User01 iax.conf
---------------
register => user01:somepas01 at myofficedyn.tld

[myofficename]
type=user
context=fromoffice
auth=rsa
inkeys=myrsa

User01 extensions.conf
----------------------
[globals]
MYOFFICE=IAX2/user01:somepass01 at myofficedyn.tld
FWDCIDNAME="My name01"

[extensions]
; my local extensions

[fromoffice]
exten => s,1,goto(extensions,101,1) ; where the zap/1 is located

[toiaxfwd]
exten => _8.,1,SetCallerId,${FWDCIDNAME}
exten => _8.,1,Dial(${MYOFFICE}/${EXTEN},60,r)
exten => _8.,2,Congestion

[localaccess]
; set of local pstn access

[dialaccess]
; where zap/* or local sip phones should point
include => extensions
ignorepat => 8
include => toiaxfwd
ignorepat => 9
include => localaccess

User02 iax.conf
---------------
register => user02:somepas02 at myofficedyn.tld

[myofficename]
type=user
context=fromoffice
auth=rsa
inkeys=myrsa

User02 extensions.conf
----------------------
[globals]
MYOFFICE=IAX2/user02:somepass02 at myofficedyn.tld
FWDCIDNAME="My name02"

[extensions]
; my local extensions

[fromoffice]
exten => s,1,goto(extensions,201,1) ; where the zap/1 or sip is located

[toiaxfwd]
exten => _8.,1,SetCallerId,${FWDCIDNAME}
exten => _8.,1,Dial(${MYOFFICE}/${EXTEN},60,r)
exten => _8.,2,Congestion

[localaccess]
; set of local pstn access

[dialaccess]
; where zap/* or local sip phones should point
include => extensions
ignorepat => 8
include => toiaxfwd
ignorepat => 9
include => localaccess


So, in this way, i can keep adding users in the office using only one
context for each user with its own user/pass for validation.

Now, here it comes another thing.  When i call from user01 (or home) to FWD,
as soon as it answer it hangsup.  There was just a couple times i could do
the FWD echotest or the 411, but not anymore but incoming calls from FWD and
from office works fine.  Does anyone see something wrong?

Regards,


Raul Elizondo
FWD# 486533




More information about the asterisk-users mailing list