<HTML>
<HEAD>
<TITLE>Re: [asterisk-users] Voice only works from one way.</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:9.0px'>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:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:9.0px'><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]">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 Phoenix, Arizona<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 Phoenix, Arizona<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><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:9.0px'><BR>
<BR>
Thank you<BR>
<BR>
Sang-Kil (Sam) Suh<BR>
System administrator<BR>
<BR>
-- <BR>
Ticoon Technology Inc.<BR>
56 The Esplanade, Suite 404<BR>
Toronto, Ontario<BR>
M5E 1A7<BR>
<BR>
Tel: (416) 513-9524 (ext. 299)<BR>
Cell: (416) 902-2890<BR>
Fax: (416) 513-9525<BR>
</SPAN></FONT>
</BODY>
</HTML>