Hi,

I need to make calls from a mobile number that can be answered by Freeswitch extension playing an IVR.

To achieve this, I have configured a VOIP-GSM gateway having inserted a mobile sim that upon receiving the incoming calls forwards it to a SIP URI.

Gateway Settings:

PBX IP : ec2 public ip
Protocol : SIP
Port : 5080

Target: 9811806537


Freesswitch resides at Amazon ec2 cloud, 

Dialplan for public context is :

<extension name="mydid">
    <condition field="destination_number" expression="^(9811806537)$">
     <action application="transfer" data="4444 XML default"/>
    </condition>
  </extension>

Default Context :

<extension name="ivr_demo">
      <condition field="destination_number" expression="^4444$">
        <action application="answer"/>
        <action application="start_dtmf" />
        <action application="sleep" data="2000"/>
        <action application="ivr" data="rhd_ivr"/>
      </condition>
</extension>


where Server IP - XX.XX.XX.XX
Gateway IP- YY.YY.YY.YY


Freeswitch logs can be found here :

http://pastebin.com/7BbM5dWD

Files 
sip_profiles/external.xml
sip_profiles/internal.xml

<param name="ext-rtp-ip" value="XX.XX.XX.XX"/>
<param name="ext-sip-ip" value="XX.XX.XX.XX"/>


Any pointer to move forward would be highly appreciated

Reagrds,
Deepika