Author Topic: fork wave/play then callto.3=sip  (Read 2160 times)

dj_ndc

  • Newbie
  • *
  • Posts: 28
    • View Profile
fork wave/play then callto.3=sip
« on: April 29, 2016, 04:04:50 PM »
Hello

I need to play progress wave file, before I place a call to destination PBX.
I use fork for this, but after playing wav, when call goes to PBX DTMF doesn't works, they are not forwarded to target PBX, but collected by yrtpwrapper:

<yrtp:INFO> YRTPWrapper::gotDTMF('9') [0x1596290]

I am using:

.*$=fork;callto.1=wave/play//greeting.au;autoprogress=yes;callto.2=|;callto.3=sip/sip:${called}@10.11.20.15;rtp_forward=yes;formats=alaw,g729;stoperror=busy;maxcall=20000;callto.1.fork.calltype=persistent;callto.1.fork.autoring=true;callto.1.fork.automessage=call.progress

is it possible to do ? When I place call only by:

.*$=sip/sip:${called}@10.11.20.15;rtp_forward=yes;formats=alaw,g729

dtmf in rfc2833 is forwarded to destination pbx.

« Last Edit: April 29, 2016, 04:06:45 PM by dj_ndc »

dj_ndc

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: fork wave/play then callto.3=sip
« Reply #1 on: April 30, 2016, 06:53:24 AM »
I would line to do something in Asterisk style:

exten => _X.,1,Answer()
exten => _X.,2,Playback(greetings)
exten => _X.,3,Dial(SIP/${EXTEN}@10.11.20.15,,)
exten => _X.,4,Hangup()

but I would like to do it by regexroute, not ivr scripting.

dj_ndc

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: fork wave/play then callto.3=sip
« Reply #2 on: May 02, 2016, 11:23:03 AM »
Hello

I have solved it by second Yate that works only as wave/player.
So I use the same fork, but I have changed:

callto.1=wave/play//greeting.au;autoprogress=yes

to:

callto.1=sip/sip:${called}@10.11.20.55;rtp_forward=yes;formats=alaw,g729

where in default I have:

^123456789$=wave/play//greeting.au;autoprogress=yes

Then after progress playback, fork return to callto.3, and forward RTP from Gateway, not try to use own rtpproxy.

Greetings
Andrzej