<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=blue link=blue>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff size=2>Well,
right now I have this on box1:</FONT></SPAN></DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff
size=2>[pbx1]<BR>type=friend<BR>auth=rsa<BR>inkeys=pbx1<BR>outkey=pbx1<BR>context=global_pbx_transfer<BR>host=pbx1.ipt.yyy.com<BR>deny=0.0.0.0<BR>permit=xxx.187.142.203</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff
size=2>[pbx2]<BR>type=friend<BR>auth=rsa<BR>inkeys=pbx2<BR>outkey=pbx1<BR>context=global_pbx_transfer<BR>host=pbx2.ipt.yyy.com<BR>deny=0.0.0.0<BR>permit=xxx.187.142.233</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff
size=2>[pbx3]<BR>type=friend<BR>auth=rsa<BR>inkeys=pbx3<BR>outkey=pbx1<BR>context=global_pbx_transfer<BR>host=pbx3.ipt.yyy.com<BR>deny=0.0.0.0<BR>permit=xxx.187.142.234</FONT></SPAN></DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=049121418-25032006></SPAN> </DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff size=2>and
this on box2:</FONT></SPAN></DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff
size=2>[pbx1]<BR>type=friend<BR>auth=rsa<BR>inkeys=pbx1<BR>outkey=pbx2<BR>context=global_pbx_transfer<BR>host=pbx1.ipt.yyy.com<BR>deny=0.0.0.0<BR>permit=xxx.187.142.203</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff
size=2>[pbx2]<BR>type=friend<BR>auth=rsa<BR>inkeys=pbx2<BR>outkey=pbx2<BR>context=global_pbx_transfer<BR>host=pbx2.ipt.yyy.com<BR>deny=0.0.0.0<BR>permit=xxx.187.142.233</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff
size=2>[pbx3]<BR>type=friend<BR>auth=rsa<BR>inkeys=pbx3<BR>outkey=pbx2<BR>context=global_pbx_transfer<BR>host=pbx3.ipt.yyy.com<BR>deny=0.0.0.0<BR>permit=xxx.187.142.234</FONT></SPAN></DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff size=2>And
for some reason the calling system is sending pbx3 as the username.... Why would
it do that? </FONT></SPAN></DIV>
<DIV><SPAN class=049121418-25032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Steve Totaro
[mailto:stotaro@asteriskhelpdesk.com]<BR><B>Sent:</B> Saturday, March 25, 2006
1:58 PM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial
Discussion<BR><B>Subject:</B> RE: [Asterisk-Users] RE: IAX
Incoming/Outgoing<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Douglas
Garstang [mailto:dgarstang@oneeighty.com] <BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Saturday, March 25, 2006 12:37
PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Asterisk Users Mailing
List - Non-Commercial Discussion<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Asterisk-Users] RE: IAX
Incoming/Outgoing</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">12 hours later...
still playing with this. Anyone got any
ideas?</SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Doug.</SPAN></FONT><o:p></o:p></P></DIV>
<BLOCKQUOTE
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; MARGIN: 5pt 0in 5pt 3.75pt; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face=Tahoma
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original
Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Douglas
Garstang <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday,
March 24, 2006 10:53 PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B>
Asterisk Users Mailing List - Non-Commercial Discussion; Asterisk Users
Mailing List - Non-Commercial Discussion<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> IAX
Incoming/Outgoing</SPAN></FONT><o:p></o:p></P>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">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.<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">Has anyone got a working example they could supply?
Can I do all this with just three peers and one
username?<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">Thanks... Doug.<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">[pbx1_inbound]<BR>type=user<BR>auth=rsa<BR>inkeys=pbx1<BR>username=pbx1_inbound<BR>deny=0.0.0.0<BR>permit=xxx.187.142.203<BR>context=global_pbx_transfer<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">[pbx1_outbound]<BR>type=peer<BR>auth=rsa<BR>outkey=pbx1<BR>username=pbx1<BR>host=pbx1.ipt.yyy.com<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">[pbx2_inbound]<BR>type=user<BR>auth=rsa<BR>inkeys=pbx2<BR>username=pbx2_inbound<BR>deny=0.0.0.0<BR>permit=xxx.187.142.204<BR>context=global_pbx_transfer<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">[pbx2_outbound]<BR>type=peer<BR>auth=rsa<BR>outkey=pbx1<BR>username=pbx1<BR>host=pbx2.ipt.yyy.com<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">[pbx3_inbound]<BR>type=user<BR>auth=rsa<BR>inkeys=pbx3<BR>username=pbx3_inbound<BR>deny=0.0.0.0<BR>permit=xxx.187.142.234<BR>context=global_pbx_transfer<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">[pbx3_outbound]<BR>type=peer<BR>auth=rsa<BR>outkey=pbx1<BR>username=pbx3<BR>host=pbx3.ipt.yyy.com<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<BLOCKQUOTE
style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt; MARGIN-RIGHT: 0in"><DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT
face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">-----Original
Message----- <BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B>
George Vagenas [mailto:gvagasterisk@gmail.com] <BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Fri 3/24/2006 10:30 PM
<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Asterisk Users
Mailing List - Non-Commercial Discussion <BR><B><SPAN
style="FONT-WEIGHT: bold">Cc:</SPAN></B> George Vagenas <BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Asterisk-Users] SIP
trunk problem</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT
face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">Marty,<BR><BR>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.<BR><BR><o:p></o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><SPAN class=gmailquote><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt">On 3/25/06, <B><SPAN
style="FONT-WEIGHT: bold">Martin Joseph</SPAN></B> <<A
href="mailto:ast@stillnewt.org">ast@stillnewt.org</A>>
wrote:</SPAN></FONT></SPAN> <o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><BR>On Mar 24, 2006, at 1:19 PM, George Vagenas
wrote:<BR><BR>> Hi all,<BR>><BR>> I have the following
problem, working with a SIP provider, if i setup<BR>> my SJPhone to
register directly to their STUN server and working over <BR>> a 384/128
ADSL i have a really good quality, but then if i configure<BR>>
Asterisk to register to the same provider over the same 384/128<BR>>
circuit the quality is REALLY BAD. The obvious difference is that <BR>>
using directly the SJPhone i am using STUN, while when i am using<BR>>
Asterisk to connect to my SIP provider and the SJPhone to connect
to<BR>> Asterisk i have the following configuration for
Asterisk.<BR>><BR>><BR>> register => <A
href="mailto:user:pass@sip.provider.com">user:pass@sip.provider.com</A><BR>><BR>> [mysip]<BR>> host=<A
href="http://sip.provider.com">sip.provider.com</A><BR>> type=peer
<BR>> qualify=yes<BR>> username=user<BR>> secret=pass<BR>> nat=yes<BR>> disallow=all<BR>> allow=ulaw<BR>><BR>><BR>> I
am using Asterisk 1.2.3.<BR>><BR>> I think that i am
missing something or misconfigure something because <BR>> for sure its
not matter of the ADSL since in both tests i am doing i<BR>> am using
the same circuit.<BR>><BR>> Any idea please????<BR>I
don't think using ulaw on a 128K bit upstream circuit is a
good<BR>choice. I would use g729.<BR><BR>Marty<BR><BR>PS I
can't be the stun server if asterisk is working, but quality
is<BR>poor.<BR><BR>_______________________________________________<BR>--Bandwidth
and Colocation provided by <A href="http://Easynews.com">Easynews.com</A>
--<BR><BR>Asterisk-Users mailing list<BR>To UNSUBSCRIBE or update options
visit:<BR> <A
href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</A><o:p></o:p></SPAN></FONT></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P></BLOCKQUOTE></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE></BODY></HTML>