Bruno Voigt
2006-Jan-07 17:11 UTC
[Asterisk-Users] how to configure iax account for iaxmodem?
Hi,
I'm running asterisk 1.2.1 and started to play with iaxmodem 0.0.7
running on the same box.
I wonder how to setup the iax account correctly so that I may
initiate outbound calls via iaxmodem?
registration upon iaxmodem startup is okay and I can direct calls to it.
-- Registered IAX2 'iaxmodem' (AUTHENTICATED) at 127.0.0.1:33874
But upon an outbound call setup request from iaxmodem
(ATD123) I get the following asterisk error:
Jan 8 01:06:29 NOTICE[10273]: chan_iax2.c:6778 socket_read: Rejected
connect attempt from 127.0.0.1, who was trying to reach '123@'
What is missing in the iax.conf to make asterisk accept the outbound calls?
[iaxmodem]
type=peer
callerid="iaxmodem"
username=iaxmodem
secret=password
host=dynamic
disallow=all
allow=alaw
peercontext=from-internal
context=from-internal
TIA, Bruno
Lee Howard
2006-Jan-07 17:20 UTC
[Asterisk-Users] how to configure iax account for iaxmodem?
Bruno Voigt wrote:>Hi, > >I'm running asterisk 1.2.1 and started to play with iaxmodem 0.0.7 >running on the same box. > >I wonder how to setup the iax account correctly so that I may >initiate outbound calls via iaxmodem? > >registration upon iaxmodem startup is okay and I can direct calls to it. > > -- Registered IAX2 'iaxmodem' (AUTHENTICATED) at 127.0.0.1:33874 > >But upon an outbound call setup request from iaxmodem >(ATD123) I get the following asterisk error: > >Jan 8 01:06:29 NOTICE[10273]: chan_iax2.c:6778 socket_read: Rejected >connect attempt from 127.0.0.1, who was trying to reach '123@' > >What is missing in the iax.conf to make asterisk accept the outbound calls? > >[iaxmodem] >type=peer >callerid="iaxmodem" >username=iaxmodem >secret=password >host=dynamic >disallow=all >allow=alaw >peercontext=from-internal >context=from-internal >Hrmmm... iaxmodem registers properly but gets a rejection when trying to place a call. It's probably a codec problem. Try adding allow=ulaw and allow=slinear to your iaxmodem context and see if that helps. Lee.