Passing Literals With Commas To Subroutine

Home » Asterisk Users » Passing Literals With Commas To Subroutine
Asterisk Users 2 Comments

Hi,

Let’s say I do:

Set(data=xxx,yyy)
Gosub(my-sub,s,1(${data}))

My subroutine will only receive “xxx” for ARG1. How can I pass a literal with a comma to a single argument in a subroutine?

(The point is: when calling the subroutine I do not know if the variable has a comma or not.)

Thanks, Daniel

2 thoughts on - Passing Literals With Commas To Subroutine