Displaying 1 result from an estimated 1 matches for "sendimuser1".
Did you mean:
sendimuser2
2011 Dec 22
1
Properly Escaping Quotes and Commas
...rom ${CALLERID(all)}")
The macro looks like this:
[macro-sendimuser2]
exten => s,n,JabberSend(asterisk,user2 at gmail.com,${ARG1})
exten => s,n,JabberSend(asterisk,user2 at internal.jabber.server.tld,${ARG1})
[macro-sendim]
exten => s,1,Noop("Holder");
same => n,Macro(sendimuser1,${ARG1})
same => n,Macro(sendimuser2,${ARG1})
The issue I'm having, is if the callerID contains a command, such as:
Lastname, Firstname, ${CALLERID(all)} turns into "Lastname, Firstname"
<number>.
This seems to mess up the quoting, as the macro argument expands to be
"...