On Wed, Apr 17, 2019, at 12:51 PM, Brian J. Murrell wrote:
> On Wed, 2019-04-17 at 10:04 -0400, Joshua C. Colp wrote:
> > 
> > You specify the transport in the SIP URI. For example:
> > 
> > sip:[email protected];transport=tcp
> 
> Hrm. This is probably going to be pretty basic, but some googling
> didn't seem to come up with anything. How do you do this when you are
> assigning to a variable in extensions.conf such as:
> 
> FRED=PJSIP/outgoing/sip:[email protected];transport=tcp
> 
> The ; is taken as a comment starting character, isn't it?
> 
> Even in AEL:
> 
> FRED="PJSIP/outgoing/sip:[email protected];transport=tcp";
> 
> The ;transport=tcp doesn't seem to survive.
> 
> I can add it onto the end of the variable in the Dial() command:
> 
> Dial(${FRED};transport=tcp,${timeout},TtWw);

You escape the ; character by placing \ in front of it. IE:

DIal(${FRIED}\;transport=tcp,${timeout},TtWw);

-- 
Joshua C. Colp
Digium - A Sangoma Company | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to