[asterisk-users] Semicolon use in configuration?

Matthew Jordan mjordan at digium.com
Sun Oct 11 22:17:18 CDT 2015


On Sun, Oct 11, 2015 at 8:55 PM, Juan van Rooyen
<juan.vanrooyen at lightwire.co.nz> wrote:
> Hi there,
>
>
>
> Hope there is a quick answer for this.
>
> Is there an escape character in the Asterisk parser so I can use semicolon
> in asterisk configuration (specifically pjsip)?
>
>
>
> The reason I ask is that Spark NZ (previously Telecom NZ) uses BroadWorks,
> wants the Contact User to be:
> <sip:
> 01234567;tgrp=01234567;trunkcontext=telecom.co.nz at SERVER.IP:5060;transport=udp>
>
>
>
> chan_sip never supported this, so I’m trying to get pjsip’s Contact User to
> do it by specifying the User portion.
>
> However semi-colon is treated as a comment by the Asterisk parser. Adding
> quotes (“) around the setting doesn’t seem to help.
>

Use a '\', i.e.,

contact=sip:01234567\;tgrp=01234567\;trunkcontext=...

-- 
Matthew Jordan
Digium, Inc. | Director of Technology
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org



More information about the asterisk-users mailing list