[Asterisk-Users] RE: IAX Incoming/Outgoing

Douglas Garstang dgarstang at oneeighty.com
Sat Mar 25 11:22:07 MST 2006


Actually, I commented out [pbx3] on the caller, and the callee is STILL seeing pbx3 as the username. That's even more bizarre. I am sendng pbx1 as the key from the pbx1 system, and pbx2 is matching it against pbx3??? Huh???

-----Original Message-----
From: Douglas Garstang 
Sent: Saturday, March 25, 2006 11:16 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] RE: IAX Incoming/Outgoing


Well, right now I have this on box1:
 
[pbx1]
type=friend
auth=rsa
inkeys=pbx1
outkey=pbx1
context=global_pbx_transfer
host=pbx1.ipt.yyy.com
deny=0.0.0.0
permit=xxx.187.142.203
 
[pbx2]
type=friend
auth=rsa
inkeys=pbx2
outkey=pbx1
context=global_pbx_transfer
host=pbx2.ipt.yyy.com
deny=0.0.0.0
permit=xxx.187.142.233
 
[pbx3]
type=friend
auth=rsa
inkeys=pbx3
outkey=pbx1
context=global_pbx_transfer
host=pbx3.ipt.yyy.com
deny=0.0.0.0
permit=xxx.187.142.234
 
 
 
and this on box2:
[pbx1]
type=friend
auth=rsa
inkeys=pbx1
outkey=pbx2
context=global_pbx_transfer
host=pbx1.ipt.yyy.com
deny=0.0.0.0
permit=xxx.187.142.203
 
[pbx2]
type=friend
auth=rsa
inkeys=pbx2
outkey=pbx2
context=global_pbx_transfer
host=pbx2.ipt.yyy.com
deny=0.0.0.0
permit=xxx.187.142.233
 
[pbx3]
type=friend
auth=rsa
inkeys=pbx3
outkey=pbx2
context=global_pbx_transfer
host=pbx3.ipt.yyy.com
deny=0.0.0.0
permit=xxx.187.142.234
 
And for some reason the calling system is sending pbx3 as the username.... Why would it do that? 
 

-----Original Message-----
From: Steve Totaro [mailto:stotaro at asteriskhelpdesk.com]
Sent: Saturday, March 25, 2006 1:58 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] RE: IAX Incoming/Outgoing



No, you need to use different names.  You can use friend rather than having separate entries for in/out.  What do you get when you type iax2 show peers?  You should be able to use friend and the same three entries on each box with the exception of changing the IP addresses.

 


  _____  


From: Douglas Garstang [mailto:dgarstang at oneeighty.com] 
Sent: Saturday, March 25, 2006 12:37 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] RE: IAX Incoming/Outgoing

 

12 hours later... still playing with this. Anyone got any ideas?

 

Doug.

-----Original Message-----
From: Douglas Garstang 
Sent: Friday, March 24, 2006 10:53 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion; Asterisk Users Mailing List - Non-Commercial Discussion
Subject: IAX Incoming/Outgoing

I'vce got three Asterisk systems here that I'd like to be able to place calls between with IAX. As usual, I've spent several hours playing with it, really getting nowhere. Asterisk is so mentally draining. Each system, pbx1, pbx2, pbx3, should be able to connect to every other. Do I need separate user/peers or can I combine them into a single user=friend for each system? if I place a call from pbx1 to pbx2 as pbx1_outbound, it should work.... the docs say that pbx2 will look for a [pbx1_outbound] .... oh dear... this doesn't make sense any longer.

 

Has anyone got a working example they could supply? Can I do all this with just three peers and one username?

 

Thanks... Doug.

 

[pbx1_inbound]
type=user
auth=rsa
inkeys=pbx1
username=pbx1_inbound
deny=0.0.0.0
permit=xxx.187.142.203
context=global_pbx_transfer

 

[pbx1_outbound]
type=peer
auth=rsa
outkey=pbx1
username=pbx1
host=pbx1.ipt.yyy.com

 

[pbx2_inbound]
type=user
auth=rsa
inkeys=pbx2
username=pbx2_inbound
deny=0.0.0.0
permit=xxx.187.142.204
context=global_pbx_transfer

 

[pbx2_outbound]
type=peer
auth=rsa
outkey=pbx1
username=pbx1
host=pbx2.ipt.yyy.com

 

[pbx3_inbound]
type=user
auth=rsa
inkeys=pbx3
username=pbx3_inbound
deny=0.0.0.0
permit=xxx.187.142.234
context=global_pbx_transfer

 

[pbx3_outbound]
type=peer
auth=rsa
outkey=pbx1
username=pbx3
host=pbx3.ipt.yyy.com

 

-----Original Message----- 
From: George Vagenas [mailto:gvagasterisk at gmail.com] 
Sent: Fri 3/24/2006 10:30 PM 
To: Asterisk Users Mailing List - Non-Commercial Discussion 
Cc: George Vagenas 
Subject: Re: [Asterisk-Users] SIP trunk problem

Marty,

But with the same 128 bit upstream circuit, directly connecting the SJPhone the Stun server and using ulaw,  everything is perfect. The problem comes when i am putting Asterisk in the picture.



On 3/25/06, Martin Joseph < ast at stillnewt.org> wrote: 


On Mar 24, 2006, at 1:19 PM, George Vagenas wrote:

> Hi all,
>
>  I have the following problem, working with a SIP provider, if i setup
> my SJPhone to register directly to their STUN server and working over 
> a 384/128 ADSL i have a really good quality, but then if i configure
> Asterisk to register to the same provider over the same 384/128
> circuit the quality is REALLY BAD. The obvious difference is that 
> using directly the SJPhone i am using STUN, while when i am using
> Asterisk to connect to my SIP provider and the SJPhone to connect to
> Asterisk i have the following configuration for Asterisk.
>
>
>  register => user:pass at sip.provider.com
>
>  [mysip]
>  host= sip.provider.com
>  type=peer 
>  qualify=yes
>  username=user
>  secret=pass
>  nat=yes
>  disallow=all
>  allow=ulaw
>
>
>  I am using Asterisk 1.2.3.
>
>  I think that i am missing something or misconfigure something because 
> for sure its not matter of the ADSL since in both tests i am doing i
> am using the same circuit.
>
>  Any idea please????
I don't think using ulaw on a 128K bit upstream circuit is a good
choice.  I would use g729.

Marty

PS I can't be the stun server if asterisk is working, but quality is
poor.

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users  <http://lists.digium.com/mailman/listinfo/asterisk-users> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060325/f7e3e1cb/attachment.htm


More information about the asterisk-users mailing list