[Asterisk-Users] Using IAXTel to dial FWD

Karl Brose karlbrose at optonline.net
Sun May 2 12:43:14 MST 2004



> I can connect to FWD on my asterisk - but FWD only see me as an external
> SIP agent and not a SIP client of the FWD network.  DOn't know exactly why
> - so would luv to compare your conf files.
>

There is really not much you can do about that with your local
configuration.
The problem is on FWD's Asterisk, it doesn't properly log an IAX user into
the
SIP Express router.  The only service that is broken because of it seems to
be
PSTN access.  There has been a long discussion about this in the FWD forum.
You can see this in your received calls log on FWD. The registration realm
is
not proper, it's just the IP address of the asterisk server.

The following configuration should help those who would like to give this a
try.

Finally, a note regarding the FWD setup with unauthenticated calls and host
access
only, as shown below in the [fwd-in] section and the FWD website:
Technically this is an incorrect configuration and security hole, as there
should be some
authentication token, either a secret or a key (as the IAXTEL people are
using)
Since FWD IAX was announced, the chan_iax driver has been changed to allow
this without failure if you have more than one such client in your config
file (it had to
be the last one, before the change, or you had to accept the call totally
unauthenticated
through the default context, which was a major bug.

Note also that you have to have g711 enabled with FWD.


IAX.CONF
==================================
[general]
;   ..............  other things here most likely
;
disallow=all
allow=ulaw            ; and perhaps others

register=##FWDNO##:*****@iax2.fwdnet.net


[fwd-in]
type=user
deny=0.0.0.0/0.0.0.0
permit=65.39.205.0/255.255.255.0
accountcode=IAXFWD.01
context=fwd-iax-inbound

[fwd-peer]
type=peer
host=iax2.fwdnet.net
username=##FWDNO##
secret=******
accountcode=IAXFWD.02
qualify=yes
context=NOACCESS



EXTENSIONS.CONF
======================================
[some_where_in_your_dial_plan]
exten=_**393.,1,Macro,fwd_iax_call,${EXTEN:5}

[fwd-iax-inbound]
 exten=##FWDNO##,1,Answer
;    and whatever you want to do for an incoming call


[macro-fwd_iax_call]            Macro to place an IAX call through FWD
;   ${ARG1} - number to call
  exten= s,1,SetCIDNum(##FWDNO##)
  exten= s,2,SetCIDName(##your name##)
  exten= s,3,Dial(IAX2/##FWDNO##@fwd-peer/${ARG1})
  exten= s,4,Hangup
  exten= s,104,Hangup
  exten= s,105,Congestion




More information about the asterisk-users mailing list