[Freeswitch-users] SIP, NAT and Amazon EC2

Damon Brown damon at technicate.com
Mon Sep 8 10:12:08 PDT 2008


I have verified all of my steps based on the wiki.  When I make an 
outbound call (or any call that would affect NAT), I hear the ring for a 
second than it disappears.  The console shows:

2008-09-08 17:06:54 [INFO] mod_sofia.c:1085 sofia_receive_message() 
Asked to send early media by sofia/internal/1006 at 75.101.142.208
2008-09-08 17:06:54 [INFO] mod_sofia.c:1126 sofia_receive_message() Ring 
SDP:
v=0
o=FreeSWITCH 1220867834 1220867835 IN IP4 10.251.38.32
s=FreeSWITCH
c=IN IP4 10.251.38.32
t=0 0
a=sendrecv
m=audio 25780 RTP/AVP 0 101 13
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:13 CN/8000
a=ptime:30

2008-09-08 17:06:54 [NOTICE] mod_sofia.c:1129 sofia_receive_message() 
Pre-Answer sofia/internal/1006 at 75.101.142.208!
2008-09-08 17:07:11 [NOTICE] sofia.c:2573 sofia_handle_sip_i_state() 
Hangup sofia/internal/1006 at 75.101.142.208 [CS_EXECUTE] [ORIGINATOR_CANCEL]
2008-09-08 17:07:11 [NOTICE] switch_ivr_bridge.c:384 
audio_bridge_on_exchange_media() Hangup 
sofia/external/19169621931 at sjc-primary.voicepulse.com [CS_RESET] 
[NORMAL_CLEARING]

I used the Quick and Dirty Install .... I believe I'm close and just 
missing something.  Any other thoughts?

Thanks all for your help

Damon

Chris Danielson wrote:
> Updated the wiki http://wiki.freeswitch.org/wiki/Amazon_ec2 with 
> Novak's notes.
>
> Kind Regards,
> Chris
>
> Novak Joe wrote:
>> Hi,
>>
>>   When I first tried setting up freeswitch on ec2 I attempted to do
>> this through the quick and dirty wiki:
>> http://wiki.freeswitch.org/wiki/Quick_and_Dirty_Install
>>   and the ec2 wiki
>> http://wiki.freeswitch.org/wiki/Amazon_ec2
>>
>>   This didn't work out for me.  You also need to take a careful look at
>> http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Firewall
>>
>>   then, for sip, setup a security group with the following ports enabled
>> (easiest to do with elasticfox
>> http://developer.amazonwebservices.com/connect/entry.jspa?externalID=609
>> ):
>> udp     16384:32768
>> udp     4569
>> udp     5060
>> tcp     5060
>> udp     5080
>> tcp     5080
>> tcp     8000
>> udp    8000
>>
>>   make sure you make the security group, and apply it before you boot
>> the instance.
>>   after this, the quick and dirty install guid worked just fine for
>> me.  you'll just need to tweak the default dialplan
>> to your needs.
>>
>>  cheers
>>
>> Hi Brian,
>> Did you have any luck with the EC2 instances.  I tried a few things, but
>> I just cant get RTP to run through it.  PLease let me know.
>>
>> Best
>> Damon
>>
>> Brian West wrote:
>>   
>>> Let me launch mine in 32bit and see what I can do over the weekend...
>>> I had this working without a problem.  ;/
>>>
>>> /b
>>>
>>> On Sep 6, 2008, at 12:09 AM, Damon Brown wrote:
>>>
>>>
>>>     
>>>> Ive Tried the following with no success:
>>>>
>>>> internal.xml
>>>>
>>>>    <param name="ext-rtp-ip" value="75.101.142.208"/>
>>>>    <param name="ext-sip-ip" value="75.101.142.208"/>
>>>>
>>>> Ive also tried just changing the vars.xml file.  I also tried
>>>> forwarding the incoming rtp connections to my test pc.  all with no
>>>> audio success.  I am sure im doing something wrong I jsut cant find
>>>> it.
>>>>
>>>> I found another suggestion on the wiki of creating a "double nat"
>>>> that listens on 5090.  That didnt change anything either, here is
>>>> that information:
>>>>
>>>> <settings>
>>>>       
>>
>> _______________________________________________
>> Freeswitch-users mailing list
>> Freeswitch-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080908/a86d823f/attachment-0002.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: damon.vcf
Type: text/x-vcard
Size: 290 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080908/a86d823f/attachment-0002.vcf 


More information about the FreeSWITCH-users mailing list