Hi,
I am generating an outbound call by connecting to event socket using "api originate command". I am generating call to PSTN netwrok via freetdm module.
Now the problem is as soon as I the call is generated and reaches the destination, it immediately drops and gets disconnected.
The Api command I am sending to the socket is "api originate freetdm/1/a/8802865008 47673501 XML public"
The dialplan in the public directory (named as 01_DID.xml) is :
<include>
<extension name="public_did">
<condition field="destination_number" expression="^(47673501)$">
<action application="python" data="test"/>
</condition>
</extension>
</include>
I have installed mod_python and when I make an incoming call to this extension. It works as expected.
--
REGARDS
============================================
Ashish Gautam