Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<extension name="to-gateway">
    <condition field="${destination number} expression="(.*)">
<action         <action application="set" data="curl_timeout=1"/> <!-- Timeout Delay in Seconds -->

        <action application="curl" data="http://mywebserver.com/getnumber.php?number=${destination_number}"/>
        <action application="log" data="Dialing out on gateway:${curl_response_data} response-code:${curl_response_code}"/>
        <action application="bridge" data="sip/gateway/${curl_response_data}/${destination_number}/>
    </condition>
</extension>

 

...