[Asterisk-Users] IAX TO IAX call between two registered servers

John Millican john at millican.us
Mon Aug 8 16:30:43 MST 2005


On Monday August 08 2005 7:06 pm, Carlos Chavez wrote:
> On Mon, 2005-08-08 at 18:42 -0400, John Millican wrote:
> > Hello all,
> > I know this has been covered on list but can not find the answer I need,
> > lots of references to no authority found, but none with an answer.
> > I have two * servers, one behind firewall with nat the other on a dmz
> > with nat.  Both servers register with each other successfully.
> > home is today's CVS-HEAD
> > away is Asterisk 1.0.7
> > on away: Registered to '165.xxx.xxx.xxx', who sees us as
> > 69.xxx.xxx.xxx:4569 on home: Registered IAX2 to '69.xxx.xxx.xxx', who
> > sees us as
> > 165.xxx.xxx.xxx:4569
> > When i place a call from home to away:
> > exten => _998, 1, Dial(IAX2/xxxxxxxxx:home at away);
>
> I guess what you are trying to do here is dial 998 and then the remote
> extension number?  If so your extension shoud be something like:
>
> exten => _998.,1,Dial(IAX2/xxxxx:home at away/${EXTEN:3})
>

I was actually just trying to get it to fall into the default context which is 
set up as follows
[default]
exten => s,1, agi,voicemail.cpp|${CALLERIDNUM}; does a db lookup 
exten => s,2, GoToIf($[${MAILUSER} = 0]?5:5);
exten => s,3, GoToIf($[${MAILUSER} = 1]?4:5);
exten => s,4, HasNewVoicemail(4400 at default:INBOX)
exten => s,5, Dial(sip/577,20);          Ring the phone on the sipura
exten => s,6, GoTo(myvoicemail,9002,1);
exten => s,105, GoTo(myvoicemail,8002,1);

so that the phone on the sipura should ring since voicemail.cpp will not find 
a listed calleridnum.  am i totally missing something?

> >  I get the following message on home:
> > Aug  8 18:31:03 WARNING[20598]: chan_iax2.c:6820 socket_read: Call
> > rejected by 69.xxx.xxx.xxx: No authority found
> >
> > and get this message on away
> > Aug  8 18:32:42 NOTICE[16923]: chan_iax2.c:5448 socket_read: Rejected
> > connect attempt from 165.xxx.xxx.xxx
> >
> > home iax.conf
> > [away]
> > type=peer
> > username=away
> > auth=plaintext
> > secret=xxxxxxxxx
> > host=dynamic
> > context=pap2
> > dissallow=all
> > allow=ulaw
> >
> > [away-in]
> > type=peer
> > auth=plaintext
> > secret=xxxxxxxxx
> > host=dynamic
> > context=pap2
> > dissallow=all
> > allow=ulaw
> >
> > [away-out]
> > type=peer
> > secret=xxxxxxxxx
> > username=away
> > host=dynamic
> > disallow=all
> > allow=ulaw
> >
> >
> > away iax.conf
> > [home]
> > type=peer
> > user=home
> > secret=xxxxxxxxx
> > host=dynamic
> > context=default
> >
> > [home-in]
> > type=user
> > username=home
> > secret=xxxxxxxxx
> > context=default
> >
> > [home-out]
> > type=peer
> > secret=xxxxxxxxx
> > username=home
> > host=my.domain.com
> >
> > any suggestions would be greatly appreciated.
> > Thank you,
> > John M



More information about the asterisk-users mailing list