craig24x
(Craig Eustice)
April 20, 2020, 9:45pm
#1
I have a custom IVR setup, everything is great except I can’t figure out how to play a recorded name + system message to the dialed party.
This plays fine:
exten => s,n,Dial(SIP/999,30,A(/tmp/name-${rnum})
Trying to join 2 recordings doesn’t work:
exten => s,n,Dial(SIP/999,30,A(/tmp/name-${rnum}),A(conf-hasjoin))
lgaetz
(Lorne Gaetz)
April 20, 2020, 9:49pm
#2
Not sure about Dial
, but most applications take multiple recordings separated by &
characters.
craig24x
(Craig Eustice)
April 20, 2020, 9:55pm
#3
Thanks. I tried it , but only plays the first part A(/tmp/name-${rnum})
exten => s,n,Dial(SIP/250,30,A(/tmp/name-${rnum})&(conf-hasjoin))
I also tested just the system message by itself to make sure nothing was wrong with conf-hasjoin and it played fine:
exten => s,n,Dial(SIP/250,30,A(conf-hasjoin))
lgaetz
(Lorne Gaetz)
April 20, 2020, 11:30pm
#4
Too many parentheses:
A(/tmp/name-${rnum}&conf-hasjoin)
craig24x
(Craig Eustice)
April 20, 2020, 11:49pm
#5
Call fails when I try that:
exten => s,n,Dial(SIP/250,30,A(/tmp/name-${rnum}&conf-hasjoin)
If I close off the end as follows, nothing plays at all, but the call connects:
exten => s,n,Dial(SIP/250,30,A(/tmp/name-${rnum}&conf-hasjoin))
And if I do the following, it still won’t play the 2nd file
exten => s,n,Dial(SIP/250,30,A(/tmp/name-${rnum})&conf-hasjoin)
craig24x
(Craig Eustice)
April 21, 2020, 1:16pm
#6
Documentation on asterisk’s site doesn’t explicitly define combined arguments for the A option. I was hoping it was just undocumented considering other dial plan applications handle this.
Seems the Dial() A option isn’t capable of combining sound files.
system
(system)
closed
May 1, 2020, 12:33am
#7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.