Help about playback in .call files

Hello,
I am beginner in Asterisk.
I pass .call files with argument for Playback(), for example (SetVar: Sound=custom/1_Messages0201&custom/20c…).
But when this string is more than 240 characters an error occurred, otherwise call pass without errors

and sound file after 240-th character is trimmed

I know about limitation in dial string:

Is there any way to remove this limitation, or to increase dial string size

Asterisk version:

Dial plan:

exten => 123,1,AGI(monitor.php,outgoing,Outgoing_UNLIMITED,${CALLERID(num)},${EXTEN},Set(CALLERID(num)=024372202)) exten => 123,1,Dial(SIP/6845987568/${EXTEN:0},30,T) exten => 123,2,Set(CDR(userfield)=${NumberDialed}) exten => 123,3,Playback(${Sound})

Call file:

Channel: SIP/XXXXX/XXXXXX CallerID: XXXXXXX MaxRetries: 2 RetryTime: 15 Context: XXXXXX Extension: 123 Priority: 1 Account: XXXXXX SetVar: Sound=custom/1_Messages0201&custom/20c&custom/i&custom/1om&custom/March&custom/2c&custom/hiliadi&custom/i&custom/13of&custom/godina&custom/1_Messages0202&custom/3c&custom/3c&custom/3c&custom/3c&custom/3c&custom/3c&custom/3c&custom/3c&custom/1_Messages0203&custom/200c&custom/50c&custom/i&custom/6c&custom/leva&custom/i&custom/70c&custom/i&custom/8c&custom/stotinki&custom/1_Messages0204 SetVar: NumberDialed=XXXXXXXX

Probaly not without a massive source code change.

Wouldn’t it be eazier to shorten the names of files?

Thanks for the answer.
Unfortunately I have no control over the file names.
Till now I solve my problems with following changes in my dialplan:

exten => 123,3,Set(i=1);
exten => 123,n,While($[${i} <= ${file_max}])
exten => 123,n,Playback(${file${i}})
exten => 123,n,Set(i=$[ ${i} + 1 ])
exten => 123,n,EndWhile

You could have multiple SetVars like sound1, sound2 and so on and you could scan them at the dialplan level. What are you building?

I have multiple Setvar’s and use them in my dialplan:

Channel: SIP/XXXXXX/XXXXX CallerID: XXXXXX MaxRetries: 2 RetryTime: 60 Context: XXXXXX Extension: 123 Priority: 1 Account: XXXXXXX Setvar: NumberDialed=XXXXX Setvar: file_max=31 Setvar: file1=custom/1_Messages0201 Setvar: file2=custom/20c Setvar: file3=custom/i Setvar: file4=custom/1om Setvar: file5=custom/March Setvar: file6=custom/2c Setvar: file7=custom/hiliadi Setvar: file8=custom/i Setvar: file9=custom/13of Setvar: file10=custom/godina Setvar: file11=custom/1_Messages0202 Setvar: file12=custom/3c Setvar: file13=custom/3c Setvar: file14=custom/3c Setvar: file15=custom/3c ..........

exten => 123,3,Set(i=1); exten => 123,n,While($[${i} <= ${file_max}]) exten => 123,n,Playback(${file${i}}) exten => 123,n,Set(i=$[ ${i} + 1 ]) exten => 123,n,EndWhile

Hi,
Is there any solution here for playing files to a conf bridge instead?

Im currently doing:

Channel: Local/s@announce
Set: ARG1=2
Application: Playback
Data: /files (where this is a bunch of sound&files&to&play)

Dial plan:

[announce]
exten => s,1,NoOp
same => n,Answer
same => n,ConfBridge(${ARG1},bridge,user)
same => n,Hangup

but I am running into the (very very stupid and archaic) 240 char limit. Any way around this?

Asterisk 14.2.0