I setup two machines to talk to each other with IAX and it does not seem to work. When a call comes into one machine and transfers it to the other, the machine that is transferring to the other one shows: -- Accepting AUTHENTICATED call from 65.127.126.42, requested format = 4, actual format = 4 -- Executing Dial("IAX2[NuFone@NuFone]/4", "IAX2/USERNAME:SECRET@joako/320|90|r") in new stack -- Called USERNAME:SECRET@joako/320 WARNING[9226]: File chan_iax2.c, Line 4152 (socket_read): Call rejected by 66.156.244.159: No authority found And the machine that should receive the call says: *CLI> NOTICE[8201]: File chan_iax2.c, Line 4060 (socket_read): Rejected connect attempt from 69.41.227.70 Any clues? I checked the contexts in IAX.conf and they should be correct. If anything I would expect a "not found" sort of message..
Andrew Joakimsen wrote:>I setup two machines to talk to each other with IAX and it does not seem >to work. When a call comes into one machine and transfers it to the >other, the machine that is transferring to the other one shows: > > -- Accepting AUTHENTICATED call from 65.127.126.42, requested format >= 4, actual format = 4 > -- Executing Dial("IAX2[NuFone@NuFone]/4", >"IAX2/USERNAME:SECRET@joako/320|90|r") in new stack > -- Called USERNAME:SECRET@joako/320 >WARNING[9226]: File chan_iax2.c, Line 4152 (socket_read): Call rejected >by 66.156.244.159: No authority found > > >And the machine that should receive the call says: > >*CLI> NOTICE[8201]: File chan_iax2.c, Line 4060 (socket_read): Rejected >connect attempt from 69.41.227.70 > >Both of these errors mean the same exact thing, the calling party does not have the authority to call the called party. You need something like this: [USERNAME] type=user secret=SECRET context=the_appropriate context_here_containing_the_320_exten on the 69.41.227.70 machine. Also, if your not careful, calling like that would cause a Native Bridge to occur, this may or may not be something you want, depending on if you wish to bill for this telephone call or not. Thank you, drive-thru, Jeremy McNamara
I double checked the contexts and they are all using the same context right now. I also just notied this message: NOTICE[9226]: File chan_iax2.c, Line 2855 (register_verify): Peer USERNAME is not dynamic (from 66.156.244.159)> -----Original Message----- > From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users- > admin@lists.digium.com] On Behalf Of Jeremy McNamara > Sent: Friday, October 10, 2003 8:25 PM > To: asterisk-users@lists.digium.com > Subject: Re: [Asterisk-Users] IAX Not working between machines > > Andrew Joakimsen wrote: > > >I setup two machines to talk to each other with IAX and it does notseem> >to work. When a call comes into one machine and transfers it to the > >other, the machine that is transferring to the other one shows: > > > > -- Accepting AUTHENTICATED call from 65.127.126.42, requestedformat> >= 4, actual format = 4 > > -- Executing Dial("IAX2[NuFone@NuFone]/4", > >"IAX2/USERNAME:SECRET@joako/320|90|r") in new stack > > -- Called USERNAME:SECRET@joako/320 > >WARNING[9226]: File chan_iax2.c, Line 4152 (socket_read): Callrejected> >by 66.156.244.159: No authority found > > > > > >And the machine that should receive the call says: > > > >*CLI> NOTICE[8201]: File chan_iax2.c, Line 4060 (socket_read):Rejected> >connect attempt from 69.41.227.70 > > > > > > Both of these errors mean the same exact thing, the calling party does > not have the authority to call the called party. > > You need something like this: > > [USERNAME] > type=user > secret=SECRET > context=the_appropriate context_here_containing_the_320_exten > > on the 69.41.227.70 machine. > > > Also, if your not careful, calling like that would cause a NativeBridge> to occur, this may or may not be something you want, depending on ifyou> wish to bill for this telephone call or not. > > > Thank you, drive-thru, > > > Jeremy McNamara > > > > > > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users
try adding: host=dynamic to the definition of the user in iax.conf Andrew Joakimsen wrote:>I double checked the contexts and they are all using the same context >right now. > >I also just notied this message: > >NOTICE[9226]: File chan_iax2.c, Line 2855 (register_verify): Peer >USERNAME is not dynamic (from 66.156.244.159) > > > > >
I lost that when I re-arranged the configuration, but the problem to start with was that the name between brackets in IAX.conf was not the same as the username, even if I had a user= line in there.> -----Original Message----- > From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users- > admin@lists.digium.com] On Behalf Of Jared Davies > Sent: Friday, October 10, 2003 11:09 PM > To: asterisk-users@lists.digium.com > Subject: Re: [Asterisk-Users] IAX Not working between machines > > try adding: > host=dynamic > > to the definition of the user in iax.conf > > Andrew Joakimsen wrote: > > >I double checked the contexts and they are all using the same context > >right now. > > > >I also just notied this message: > > > >NOTICE[9226]: File chan_iax2.c, Line 2855 (register_verify): Peer > >USERNAME is not dynamic (from 66.156.244.159) > > > > > > > > > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users