Please
login
or
register
.
News:
#MWC19 25-28 February | YateBTS team attends Mobile World Congress 2019 |
Let's meet up >>
Home
Help
Search
Login
Register
Yate Community Forum
»
General Category
»
Yate users hangout place
»
fork wave/play then callto.3=sip
« previous
next »
Print
Pages: [
1
]
Author
Topic: fork wave/play then callto.3=sip (Read 9212 times)
dj_ndc
Newbie
Posts: 28
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
»
Logged
dj_ndc
Newbie
Posts: 28
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.
Logged
dj_ndc
Newbie
Posts: 28
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
Logged
Print
Pages: [
1
]
« previous
next »
Yate Community Forum
»
General Category
»
Yate users hangout place
»
fork wave/play then callto.3=sip