[Freeswitch-users] Problem with "continue" in extension.
Michael Jerris
mike at jerris.com
Wed Mar 11 04:34:38 PDT 2009
The continue works fine, it just hangs up befoer that due to:
<action application="set" data="hangup_after_bridge=true"/>
Mike
On Mar 11, 2009, at 2:46 AM, mszlazak at aol.com wrote:
> I have the following in my dialplan.
>
> Individually, each extension does what it's suppose to do when
> dialing 1111.
> However, if I place continue=true in the first extension then it
> alone gets executed and the succeeding extension does not.
> I thought condition=true would allow the extension afterward to
> execute.
>
> My test hardware for this dialplan is a single PSTN line.
> A call comes in that line and "myExtension" executes then hopefully
> hangs up to free the line.
> Afterward, I want "myExtension_Continued" to execute the .js
> application and dial out that single PSTN line.
>
> I need help in getting this scenerio to work.
>
> Thanks.
>
> <extension name="myExtension" continue="true">
> <condition field="destination_number" expression="^1111$">
> <action application="info"/>
> <action application="set" data="bypass_media=true"/>
> <action application="set"
> data="effective_caller_id_number=${caller_id_number}"/>
> <action application="set"
> data="hangup_after_bridge=true"/>
> <action application="bridge" data="sofia/internal/${sip_to_user}@127.0.0.1
> :5068"/>
> </condition>
> </extension>
>
> <extension name="myExtension_Continued">
> <condition field="destination_number" expression="^1111$">
> <action application="javascript" data="myScript.js"/>
> </condition>
> </extension>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090311/c33d4357/attachment-0002.html
More information about the FreeSWITCH-users
mailing list