List of delimiters used in extension.conf

I’ve looked high & low for a list of delimiters and haven’t found one. Reading between the lines looks like space " " (but only sometimes?), <>, “”. Is there a description when to use one or another?

Please give more detail what you mean by “delimiters used in extension.conf”

Where are you thinking these delimiters are used?

Delimiters around what?

Even more helpful - what problem are you encountering which makes you ask this


Each command does its own parsing. Whilst many use standard code to do this, there can be lots of exceptions. As such getting a complete list may be rather labour intensive and version dependent. “” are not delimiters, but " is. <> are not or not commonly, used as delimiters. They are used as metacharacters in command descriptions, but they are not entered.

I can think of at least two cases specifically;
Is it Set(PJSIP_HEADER(add,P-Preferred-Identity)=sip:+12172238767) or Set(PJSIP_HEADER(add,P-Preferred-Identity)=sip:+12172238767)?? Either seems to work. The same is true of Set(CALLERID(num)=14175551212) or Set(CALLERID(num)=<14175551212>).

The other case involves strings. Is it “${avariable}” or just ${avariable} (no quotes). I have read that double quotes should always be used but it apparently sometimes works without them.

Both identity cases are invalid; SIP URIs must have a domain part. The angle brackets are SIP delimiters, not Asterisk ones. Apart from the missing domain name, both match the production in the SIP grammar.

In the caller ID, the delimiters are defined by channel driver not the dialplan interpreter. I always use it without angle brackets, but angle brackets may well work, although it might be channel driver specific, as there are some, undocumented subtleties in this area.

The caller ID is handled a bit like a SIP URI, but with no scheme and no domain.

I’ve never worked out when Asterisk strips double quotes, and it may well be command specific. I doubt that it strips them in either of these case, as it would make constructing valid P-P-I and CALLERID(all) values difficult, but I would test if I needed to, initially erring to not using quotes other than as required by the underlying syntax.

Please markup your postings correctly, using </>, the underlying markup, which you can see by looking at

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