[Freeswitch-users] Problem with "continue" in extension.

mszlazak at aol.com mszlazak at aol.com
Tue Mar 10 23:46:40 PDT 2009


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/e6dc106f/attachment-0002.html 


More information about the FreeSWITCH-users mailing list