Skip to main content
Participant
February 8, 2012
Question

Interfaceing Flash Media Gateway With Asterisks PBX

  • February 8, 2012
  • 1 reply
  • 2103 views

Hi,

I have successfully installed and configured Flash media gateway! I have tested the sample Flash Phone provided with the product. Both Flash media gateway and Asterisks are on the same Linux server!

Now the problem is i am unable to get Asterisks work with FMG. The scenario is:

A short code will be dialed from the web interface, now this request needs to be handled in Asterisk Extension instead of FMG's own workflow.xml !

How should i configure FMG? Please help me asap!

This topic has been closed for replies.

1 reply

February 8, 2012

Can you please elaborate with examples of number/short-code you want to dial using FMG?

VectracomAuthor
Participant
February 8, 2012

For example, i have dialed 9595, to set up this short code, i have configured workflow.xml file...its playing some sample sound file which is fine.

Now what i want is that instead of FMG to handle this request in workflow.xml, it should be handled in Asterisks.conf file!

February 8, 2012

1) In workflow.xml findout rtmp context node i.e. <Context name="rtmp">

2) Put following entry within rtmp Node (as first child);

    <Condition variable="destNum" value="^9595$">

        <AppNode sequence="1" app="bridge" args="sip|${destNum}@sipGateway"/>

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

    </Condition>

3) Ensure that sipGateway (as in above entry); points to your asterisk server & defined in sip.xml.

Alternatively, you can use <Condition variable="destNum" value="^.*$"> instead to forward all numbers to asterisk. 

This entry already exists in default workflow.xml; these conditions are matched sequentially and first match is executed. You need to ensure that the condition you intend to match does get a chance. Once you attempt a call, Core00.log will provide info to help you understand, which condition is getting matched.