[Freeswitch-users] Timeout Message or something similar

Brtantunes brtantunes at gmail.com
Fri Sep 16 18:04:07 MSD 2011


Hello,

I figured it out. I'm using variables, Right now the command is:
/originate
{ringback=c:/teste.wav}[timeoutMsg=C:/teste2.wav,domain=DOMAIN,maxCallTime=30,ringTimeout=30]sofia/DOMAIN/1001
TRY_1002 XML default/

And in the dialplan i have:
/<context name="myDialPlan">
	<extension name="try to dial an extension">
	  <condition field="destination_number" expression="^TRY_(\d+)$">
		<action application="sched_hangup" data="+${maxCallTime}
allotted_timeout"/>
		<action application="bridge"
data="{fail_on_single_reject=true,ignore_early_media=true,originate_continue_on_timeout=true,ignore_early_media=true,originate_timeout=${ringTimeout}}sofia/${domain}/$1"/>
		<action application="playback" data="${timeoutMsg}"/>
		<action application="hangup"/>
	  </condition>
	</extension>
</context>/

It is working fine.
Now i just want to include the originate in the dialplan and just pass all
parameters like variables, but i'm having problems. Any sugestions? 

Tks for your help,
Greetings

--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Timeout-Message-or-something-similar-tp6783735p6801030.html
Sent from the freeswitch-users mailing list archive at Nabble.com.



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list