[asterisk-dev] Numbered placeholders in dialplan's SPRINTF function

Olivier oza.4h07 at gmail.com
Tue Nov 4 05:45:56 CST 2014


Hello,

If I'm not mistaken, numbered placeholders are not supported by
dialplan's SPRINTF function.
Though this is strictly not blocking, having them would allow concise
expressions such as:

Dial(${SPRINTF(${PJSIPFORMAT},mytrunk,123456789)})

with :

Set(PJSIPFORMAT="PJSIP/%2$s@%1$s")
Set(SIPFORMAT="SIP/%2$s@%1$s")
or
Set(DAHDIFORMAT="DAHDI/%1$s/%2$s")

What do you think of this ?

Regards



More information about the asterisk-dev mailing list