Brian J. Murrell
2019-Apr-17 16:20 UTC
[asterisk-users] IPv6 transport results in ICE with only IPv6 candidates
On Wed, 2019-04-17 at 11:56 -0400, Joshua C. Colp wrote:> On Wed, Apr 17, 2019, at 12:51 PM, Brian J. Murrell wrote: > > > > I can add it onto the end of the variable in the Dial() command: > > > > Dial(${FRED};transport=tcp,${timeout},TtWw);[ the part you trimmed ]: and it has the desired effect, but of course specifying at the point where the Dial command is sets the transport policy much too broadly.> You escape the ; character by placing \ in front of it. IE: > > DIal(${FRIED}\;transport=tcp,${timeout},TtWw);So per the above ("has the desired effect") one doesn't even have to escape the ; in the Dial() command. But I don't want the ";transport=tcp" hard-coded into the Dial() command argument where the Dial() command is executed. That is making a transport policy (i.e. not every destination that gets to that Dial() command should use tcp) decision for far too many destinations. The ";transport=tcp" needs to be added where the destination is defined into a variable: FRED=PJSIP/outgoing/sip:fred at sip.example.com;transport=tcp in extensions.conf or: FRED="PJSIP/outgoing/sip:fred at sip.example.com;transport=tcp"; in extensions.ael. Cheers, b. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190417/f582fa62/attachment.sig>
Joshua C. Colp
2019-Apr-17 17:50 UTC
[asterisk-users] IPv6 transport results in ICE with only IPv6 candidates
On Wed, Apr 17, 2019, at 2:06 PM, Brian J. Murrell wrote:> On Wed, 2019-04-17 at 11:56 -0400, Joshua C. Colp wrote: > > On Wed, Apr 17, 2019, at 12:51 PM, Brian J. Murrell wrote: > > > > > > I can add it onto the end of the variable in the Dial() command: > > > > > > Dial(${FRED};transport=tcp,${timeout},TtWw); > > [ the part you trimmed ]: > > and it has the desired effect, but of course specifying at the point > where the Dial command is sets the transport policy much too broadly. > > > You escape the ; character by placing \ in front of it. IE: > > > > DIal(${FRIED}\;transport=tcp,${timeout},TtWw); > > So per the above ("has the desired effect") one doesn't even have to > escape the ; in the Dial() command. > > But I don't want the ";transport=tcp" hard-coded into the Dial() > command argument where the Dial() command is executed. That is making > a transport policy (i.e. not every destination that gets to that Dial() > command should use tcp) decision for far too many destinations. > > The ";transport=tcp" needs to be added where the destination is defined > into a variable: > > FRED=PJSIP/outgoing/sip:fred at sip.example.com;transport=tcp > > in extensions.conf or: > > FRED="PJSIP/outgoing/sip:fred at sip.example.com;transport=tcp"; > > in extensions.ael.The same escaping should apply there for extensions.conf as it's a config file thing, I don't use AEL and don't know anything in that regard. It may work the same way there. -- 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
Brian J. Murrell
2019-Apr-17 18:07 UTC
[asterisk-users] IPv6 transport results in ICE with only IPv6 candidates
On Wed, 2019-04-17 at 13:50 -0400, Joshua C. Colp wrote:> > The same escaping should apply there for extensions.conf as it's a > config file thing, I don't use AEL and don't know anything in that > regard. It may work the same way there.How very odd. It is working now. I am sure I did nothing different than the first time. Cheers, b. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190417/b5ec19bd/attachment.sig>