How to play multiple sound files to dialed party

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))

Not sure about Dial, but most applications take multiple recordings separated by & characters.

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))

Too many parentheses:

A(/tmp/name-${rnum}&conf-hasjoin)

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)

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.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.