<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns3="http://schemas.microsoft.com/office/2004/12/omml">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[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]-->
<title>Re: [asterisk-users] Voice only works from one way.</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--a:link
        {mso-style-priority:99;}
span.MSOHYPERLINK
        {mso-style-priority:99;}
a:visited
        {mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority:99;}
p
        {mso-style-priority:99;}

 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Well to be honest, our experience with
asterisk never works with under NAT. if you got DMZ then it will otherwise don&#8217;t
hold your breath for it.<br>
<br>
If you want to use it as a production server<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Your option is 1. Get a Real IP<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>2. there is no 2 really just get an ReaL
Public IP<br>
Sam<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Fidel Garcia<br>
<b><span style='font-weight:bold'>Sent:</span></b> Saturday, June 21, 2008 6:19
AM<br>
<b><span style='font-weight:bold'>To:</span></b> '<st1:PersonName w:st="on">Asterisk
 Users Mailing List - Non-Commercial Discussion</st1:PersonName>'<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-users]
Voice only works from one way.</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>I was never able to
get it to work that way. When I had Asterisk in NAT I was able to make calls,
but most of the times they were one way voice.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>I was able to get
two-way voice when I configured the remote phone using STUN and Symetrical RTP.
However, the calls dropped every 19-20 seconds. I read several threads online,
but nobody explained the requirements in details. Everything works fine if you
have a public IP address or DMZ on Asterisk.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Good luck and please
let me know if you get it up and running.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Fidel Garcia<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>System Engineer<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>sysTeam.<o:p></o:p></span></font></p>

<p class=MsoNormal><st1:Street w:st="on"><st1:address w:st="on"><font size=2
  color=black face=Calibri><span style='font-size:11.0pt;font-family:Calibri;
  color:black'>7205 NW 19th Street, Suite 302</span></font></st1:address></st1:Street><br>
<st1:place w:st="on"><st1:City w:st="on"><font size=2 color=black face=Calibri><span
  style='font-size:11.0pt;font-family:Calibri;color:black'>Miami</span></font></st1:City><font
 size=2 color=black face=Calibri><span style='font-size:11.0pt;font-family:
 Calibri;color:black'>, <st1:State w:st="on">Florida</st1:State> <st1:PostalCode
 w:st="on">33126</st1:PostalCode></span></font></st1:place><font size=2
color=black face=Calibri><span style='font-size:11.0pt;font-family:Calibri;
color:black'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Email:
fgarcia@systeamusa.com <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Tel: (305)-477-7303
Fax: (305)-477-0013 <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>http://www.systeamusa.com<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Sang-Kil (Sam) Suh<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, June 20, 2008 3:48
PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Asterisk
 Users Mailing List - Non-Commercial Discussion</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-users]
Voice only works from one way.<o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Verdana><span style='font-size:7.0pt;
font-family:Verdana'>Yes, both Asterisk and Cisco are behind Nat.<br>
<br>
<br>
On 6/20/08 3:26 PM, &quot;Sam Tam&quot; &lt;samtam888@gmail.com&gt; wrote:</span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=1 face=Verdana><span
style='font-size:7.0pt;font-family:Verdana'><br>
Are you using NAT?<br>
<br>
-----Original Message-----<br>
From: asterisk-users-bounces@lists.digium.com<br>
[<a href="mailto:asterisk-users-bounces@lists.digium.com%5d">mailto:asterisk-users-bounces@lists.digium.com]</a>
On Behalf Of Sang-Kil (Sam)<br>
Suh<br>
Sent: Saturday, June 21, 2008 3:14 AM<br>
To: asterisk-users@lists.digium.com<br>
Subject: [asterisk-users] Voice only works from one way.<br>
<br>
Hello, everyone.<br>
<br>
Right now, we are trying launch our own PBX system based on Asterisk(Fedora)<br>
with Cisco 2611. Cisco has 2 port FXO card installed on it.<br>
<br>
For testing, I have 2611 hooked into phone line with number of xxx-xxx-xxxx<br>
fine. (I'll call it F). Using softphone, I can dial in extension 1001 on<br>
asterisk, which should talk to cisco. After initial connection to Asterisk,<br>
I have try to call F, and it will ring. Voice from softphone to F carries<br>
over and I can hear it; however, no voice from F to softphone will carry. I<br>
have been experimenting with different codec and other cisco/asterisk config<br>
tips from the web. None had worked so far.<br>
<br>
If anyone have experienced such problem and knows how to solve this, I will<br>
be eternally grateful.<br>
<br>
&lt; sip.conf &gt;<br>
[general]<br>
port = 5060<br>
bindaddr = 0.0.0.0<br>
context = bogon-calls<br>
disallow = all<br>
nat=yes<br>
canreinvite=yes<br>
allowguest=no<br>
allow=ulaw<br>
allow=alaw<br>
allow=g711<br>
allow=g729<br>
allow=gsm<br>
allow=ilbc<br>
<br>
<br>
[2000]<br>
type=friend<br>
context=my-phones<br>
secret=<br>
allow=ulaw<br>
host=dynamic<br>
<br>
[2001]<br>
type=friend<br>
context=my-phones<br>
secret=<br>
allow=ulaw<br>
host=dynamic<br>
<br>
[2002]<br>
type=friend<br>
context=my-phones<br>
secret=<br>
allow=ulaw<br>
host=dynamic<br>
<br>
[2003]<br>
type=friend<br>
context=my-phones<br>
secret=<br>
allow=ulaw<br>
host=dynamic<br>
<br>
[xxx.xxx.xxx.yyy]<br>
context=pstn-incoming<br>
type=friend<br>
host=xxx.xxx.xxx.yyy ; IP address of Cisco gateway<br>
dtmfmode=rfc2833<br>
disallow=all<br>
allow=ulaw<br>
insecure=very<br>
<br>
[1001]<br>
context=local-phones<br>
type=friend<br>
username=1001<br>
secret=secret<br>
host=dynamic<br>
mailbox=1001<br>
insecure=very<br>
<br>
&lt; extensions.conf &gt;<br>
[my-phones]<br>
exten =&gt; 2000,1,Dial(SIP/2000)<br>
exten =&gt; 2001,1,Dial(SIP/2001)<br>
exten =&gt; 2002,1,Dial(SIP/2002)<br>
exten =&gt; 2003,1,Dial(SIP/2003)<br>
exten =&gt; 6000,1,MeetMe(600,i,54321)<br>
;include =&gt; lan-phones<br>
<br>
[bogon-calls]<br>
exten =&gt; _.,1,Congestion<br>
<br>
[pstn-incoming]<br>
include =&gt; lan-phones<br>
<br>
[local-phones]<br>
include =&gt; lan-phones<br>
include =&gt; pstn-outbound<br>
<br>
[pstn-outbound]<br>
; Calls starting with 9 have the 9 stripped &amp; are then routed out to the<br>
PSTN<br>
exten =&gt; _9.,1,Dial(SIP/${EXTEN:1}@xxx.xxx.xxx.yyy) ; IP address of Cisco<br>
gateway<br>
; 9 stripped by Cisco gateway<br>
;exten =&gt; _9XXXX,1,Dial,SIP/${EXTEN}@xxx.xxx.xxx.yyy ; IP address of Cisco<br>
gateway<br>
;exten =&gt; _9XXXX,2,Congestion<br>
exten =&gt; _9.,2,Congestion<br>
<br>
[lan-phones]<br>
exten =&gt; 1001,1,Dial(SIP/1001,20)<br>
exten =&gt; 1001,2,Voicemail(u1001)<br>
exten =&gt; 1001,3,Answer(SIP/1001)<br>
exten =&gt; 1001,102,Voicemail(b1001)<br>
exten =&gt; 1001,103,Hangup<br>
<br>
&lt; Cisco 2611 config &gt;<br>
<br>
Building configuration...<br>
<br>
Current configuration : 2030 bytes<br>
!<br>
version 12.2<br>
service config<br>
service timestamps debug datetime msec<br>
service timestamps log datetime msec<br>
no service password-encryption<br>
!<br>
hostname fxroute<br>
!<br>
logging queue-limit 100<br>
enable secret<br>
enable password<br>
!<br>
clock timezone GMT 0<br>
ip subnet-zero<br>
no ip routing<br>
!<br>
!<br>
!<br>
ip audit notify log<br>
ip audit po max-events 100<br>
!<br>
!<br>
!<br>
!<br>
!<br>
voice rtp send-recv<br>
!<br>
voice service voip<br>
&nbsp;sip<br>
!<br>
voice class codec 1<br>
&nbsp;codec preference 1 g711ulaw<br>
&nbsp;codec preference 2 g711alaw<br>
&nbsp;codec preference 3 gsmefr<br>
&nbsp;codec preference 4 gsmfr<br>
!<br>
!<br>
!<br>
!<br>
!<br>
!<br>
!<br>
no voice hpi capture buffer<br>
no voice hpi capture destination<br>
!<br>
!<br>
mta receive maximum-recipients 0<br>
!<br>
!<br>
!<br>
!<br>
interface Ethernet0/0<br>
&nbsp;ip address xxx.xxx.xxx.yyy 255.255.255.0<br>
&nbsp;no ip route-cache<br>
&nbsp;no ip mroute-cache<br>
&nbsp;full-duplex<br>
&nbsp;no cdp enable<br>
!<br>
interface Ethernet0/1<br>
&nbsp;no ip address<br>
&nbsp;no ip route-cache<br>
&nbsp;no ip mroute-cache<br>
&nbsp;shutdown<br>
&nbsp;half-duplex<br>
&nbsp;no cdp enable<br>
!<br>
ip http server<br>
no ip http secure-server<br>
ip classless<br>
!<br>
!<br>
!<br>
!<br>
call rsvp-sync<br>
!<br>
voice-port 1/0/0<br>
&nbsp;input gain 10<br>
&nbsp;output attenuation 10<br>
&nbsp;no comfort-noise<br>
&nbsp;connection plar opx 1001<br>
&nbsp;station-id number 100<br>
&nbsp;caller-id enable<br>
!<br>
voice-port 1/0/1<br>
&nbsp;input gain 10<br>
&nbsp;output attenuation 10<br>
&nbsp;no comfort-noise<br>
&nbsp;caller-id enable<br>
!<br>
voice-port 1/1/0<br>
!<br>
voice-port 1/1/1<br>
!<br>
!<br>
mgcp profile default<br>
!<br>
dial-peer cor custom<br>
!<br>
!<br>
!<br>
dial-peer voice 100 pots<br>
&nbsp;destination-pattern .T<br>
&nbsp;progress_ind setup enable 3<br>
&nbsp;progress_ind progress enable 8<br>
&nbsp;port 1/0/0<br>
!<br>
dial-peer voice 2 voip<br>
&nbsp;destination-pattern 1...<br>
&nbsp;progress_ind setup enable 3<br>
&nbsp;progress_ind progress enable 8<br>
&nbsp;voice-class codec 1<br>
&nbsp;session protocol sipv2<br>
&nbsp;session target ipv4:xxx.xxx.xxx.xxx:5060<br>
&nbsp;session transport udp<br>
&nbsp;dtmf-relay h245-alphanumeric<br>
&nbsp;clid strip<br>
&nbsp;no vad<br>
!<br>
dial-peer voice 1 pots<br>
!<br>
sip-ua<br>
&nbsp;retry invite 3<br>
&nbsp;retry response 3<br>
&nbsp;retry bye 3<br>
&nbsp;retry cancel 3<br>
&nbsp;timers trying 1000<br>
&nbsp;sip-server ipv4:xxx.xxx.xxx.xxx<br>
!<br>
!<br>
!<br>
telephony-service<br>
&nbsp;transfer-pattern ....<br>
&nbsp;transfer-system full-blind<br>
!<br>
!<br>
line con 0<br>
&nbsp;exec-timeout 0 0<br>
line aux 0<br>
line vty 0 4<br>
&nbsp;password<br>
&nbsp;login<br>
!<br>
!<br>
end<br>
<br>
Thank you<br>
<br>
Sang-Kil (Sam) Suh<br>
System administrator<br>
<br>
--<br>
Ticoon Technology Inc.<br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a>
--<br>
<br>
AstriCon 2008 - September 22 - 25 <st1:place w:st="on"><st1:City w:st="on">Phoenix</st1:City>,
 <st1:State w:st="on">Arizona</st1:State></st1:place><br>
Register Now: <a href="http://www.astricon.net">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
&nbsp;&nbsp;&nbsp;<a
href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a>
--<br>
<br>
AstriCon 2008 - September 22 - 25 <st1:place w:st="on"><st1:City w:st="on">Phoenix</st1:City>,
 <st1:State w:st="on">Arizona</st1:State></st1:place><br>
Register Now: <a href="http://www.astricon.net">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
&nbsp;&nbsp;&nbsp;<a
href="http://lists.digium.com/mailman/listinfo/asterisk-user">http://lists.digium.com/mailman/listinfo/asterisk-user</a></span></font><o:p></o:p></p>

<p class=MsoNormal><font size=1 face=Verdana><span style='font-size:7.0pt;
font-family:Verdana'><br>
<br>
Thank you<br>
<br>
Sang-Kil (Sam) Suh<br>
System administrator<br>
<br>
-- <br>
Ticoon Technology Inc.<br>
56 The Esplanade, <st1:address w:st="on"><st1:Street w:st="on">Suite</st1:Street>
 404</st1:address><br>
<st1:place w:st="on"><st1:City w:st="on">Toronto</st1:City>, <st1:State w:st="on">Ontario</st1:State></st1:place><br>
M5E 1A7<br>
<br>
Tel: (416) 513-9524 (ext. 299)<br>
Cell: (416) 902-2890<br>
Fax: (416) 513-9525</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>No
virus found in this incoming message.<br>
Checked by AVG.<br>
Version: 8.0.100 / Virus Database: 270.4.1/1510 - Release Date: 6/19/2008 3:21
PM</span></font><o:p></o:p></p>

</div>

</body>

</html>