Skip to main content
Participating Frequently
December 17, 2010
Question

Using Flash Media Gateway Application

  • December 17, 2010
  • 2 replies
  • 2131 views

Hi,

I got a IP Communications new account having following paramters:

                          Originating IP        Destination IP                    Protocol    Codec                  Ports

(for example)   65.154.35.210      202.124.43.256                  SIP          g729 /                  2

Now i want to use it in default application of FMG i.e:

http://download.macromedia.com/pub/labs/flashmedia_gateway/flashmedia_gateway_sample_flashphone.swf

Please tell me how to use the above information in this app, or any other app to use FMG.

Regards

Ankush

This topic has been closed for replies.

2 replies

December 22, 2010

Hi Ankush,

I made it work a month ago, I hope that I can tell you exactly what to do.

In the sip.xml config file  add the profile for the sip server.

<Profile>

<profileID> sipGateway </profileID>

<userName>myUserName</userName>

<password>myPassword</password>

<displayName> 101 </displayName>

<!-- this is the Ip address of remote server where FMG registers -->

<remoteSipHost> 64.154.41.150:5060 </remoteSipHost>

<!-- Indicates FMG registers at remote server -->

<doRegister> 1 </doRegister>

<context> sipGatewayContext </context>

</Profile>

In the workflow.xml add a rule to forward all the calls

<Context name="sipGatewayContext">

...

<Condition variable="destNum" value="^.*$">

<AppNode sequence="1" app="bridge" args="rtmp|1000@profile_default"/>

<AppNode sequence="2" app="hangup" args="null"/>

</Condition>

Now start the server and the phone application swf (the first time it registered it self with id 1000)

The server registered itself in IPComm.

When you make a call to the number you got from IPcomm , their server forward the call to the FMG.

The FMG look in the workflow and sees that it should be forward to the rtmp|1000n which is your swf phone.

I might add some codes in the FMS application but I think it's not relevant.

Hope it will help you.

Shlomo.

Participating Frequently
December 23, 2010

Thank you very much for helping me shlomo, but my problem is still not solved. I tried that application as you mentioned. It ran same as it was without Profile Id code.

Mainly I want to know 2 things:

1). How to make a call from telephone, means from telephone what number we will dial and

2). How can we confirm that the IP mentioned in the below code is being used by FMG or not because i dont have the IPComms username and password, i have just only the following values : 'Originating IP',    'Destination IP',    'Protocol Codec', and   'Ports'.

     <Profile>
        <profileID> sipGateway </profileID>
        <userName>myUserName</userName>
        <password>myPassword</password>

        <displayName> 101 </displayName>

        <!-- this is the Ip address of remote server where FMG registers -->

        <remoteSipHost> 64.154.42.141:5060 </remoteSipHost>

        <!-- Indicates FMG registers at remote server -->
        <doRegister> 1 </doRegister>

        <context> sipGatewayContext </context>

    </Profile>

Waiting for your reply shlomo ..

Message was edited by: ankushbagga

December 17, 2010

Ankush,

           Setup of FMG and FMS is a prerequisite for using Sample FlashPhone.swf.

           For using FMG the first recommended step is to walk-though the quick start guide and configure both FMG and FMS and making few demo calls like

           ->   flash to flash

           ->   Flash to SIP softphone & viceversa.

           If haven't done yet, I encourage to follow the steps listed in the  ${FMG installation-folder}\docs\FMG Quick Start Guide.pdf

         -> Once manual configuration is complete, to make calls using SIP Gateways/trunks, one requires to configure  a SIP account with G711 audio codec in SIP.xml and place call as per dialPlan(default installation value: "rtmp" ) mentioned in workflow.xml.

The example SIP account you have will not work as G729 is not a supported codec on FMG; you would need to get SIP account with G711 codec enabled.

I hope it would help you get started.

-Pankaj