summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-03-10 15:53:23 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-03-23 09:41:25 +0100
commit0cea3df01d85de7a4e2411356ea43a2f9e97e376 (patch)
treeec8a22e743f9bed41d290a6bd09f087f646478f9
parent3d9ae085bf498c24a5c338e80929369ba9f851d1 (diff)
testpbx: Add another number that will just play a ringback
This will enable early media to play a ringback to the phone. Change-Id: I4c778b1f0e7484a755716133f91767af8b1102c0
-rw-r--r--contrib/testpbx/configs/public.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/testpbx/configs/public.xml b/contrib/testpbx/configs/public.xml
index d9b1d17..e5d2bcc 100644
--- a/contrib/testpbx/configs/public.xml
+++ b/contrib/testpbx/configs/public.xml
@@ -59,6 +59,16 @@
</extension>
-->
+ <extension name="ring-play">
+ <condition field="destination_number" expression="^6666$">
+ <action application="set" data="domain_name=$${domain}"/>
+ <action application="set" data="ringback=%(2000, 4000, 440.0, 480.0)"/>
+ <action application="pre_answer" />
+ <action application="playback" data="tone_stream://%(2000,4000,440,480);loops=-1"/>
+ <action application="sleep" data="180000"/>
+ <action application="respond" data="reponse_info" data="407"/>
+ </condition>
+ </extension>
<extension name="transfer_to_default">
<condition>
<action application="transfer" data="${destination_number} XML default"/>