Skip to main content
May 5, 2011
Question

answering machine

  • May 5, 2011
  • 1 reply
  • 2862 views

Is there solution how to play the special record when someone answered on my call? He have to hear this record instead of my voice. I guess it will be set in some settings file

This topic has been closed for replies.

1 reply

Known Participant
May 5, 2011

Change workflow.xml context like below example

<WorkFlow>

<Context name="examples">

<!-- Ask for 4 digit rtmp extension to be dialed

then make a call to this extension -->

<Condition variable="destNum" value="^2222$">

<AppNode sequence="1" app="playfile" args="welcome.raw"/>

<AppNode sequence="2" app="getDTMF" args="4|4|3|6|desired-exten.raw|valid-exten.raw"/>

<AppNode sequence="3" app="statusCheck" args="4|7"/>

<AppNode sequence="4" app="bridge" args="rtmp|${dtmfDigits}@profile_default"/>

<AppNode sequence="5" app="statusCheck" args="6|7"/>

<AppNode sequence="6" app="hangup" args="null"/>

<AppNode sequence="7" app="playfile" args="valid-exten.raw"/>

<AppNode sequence="8" app="Goto" args="1"/>

</Condition>

<!-- Continous playback of file moh.raw -->

<Condition variable="destNum" value="^3333$">

<AppNode sequence="1" app="playfile" args="moh.raw"/>

<AppNode sequence="2" app="Goto" args="1"/>

</Condition>

<!-- Wait for 100 seconds -->

<Condition variable="destNum" value="^6666$">

<AppNode sequence="1" app="wait" args="100000"/>

<AppNode sequence="2" app="hangup" args="null"/>

</Condition>

</Context>

</ContextList>

</WorkFlow>

welcome.raw is prerecord voice message

Message was edited by: selvancs

May 6, 2011

I can't understand where's mistake?

I make a call from flash phone to mobile, i have the next condition in my workflow.xml

<Condition variable="destNum" value="^.*$">

<AppNode sequence="1" app="playfile" args="myfile.raw"/>

<AppNode sequence="1" app="bridge" args="sip|${destNum}@sipGateway"/>

<AppNode sequence="2" app="hangup" args="null"/>

</Condition>

but it doesn't work. I don't hear the sound on my mobile

Known Participant
May 7, 2011

Hi ,

Try below one

<Condition variable="destNum" value="^.*$">

<AppNode sequence="1" app="playfile" args="myfile.raw"/>

<AppNode sequence="2" app="bridge" args="sip|${destNum}@sipGateway"/>

<AppNode sequence="3" app="hangup" args="null"/>

</Condition>