On Tue, 6 Jun 2017, Hans-Peter Jansen wrote:

I wonder, if I really need to grab the extension with
Set(DN=${SIP_HEADER(TO):5}) or something similar?

Yes, something like if they can't fix the R-URI:
exten => X_.,n,Set(TO=${CUT(SIP_HEADER(To),@,1)})
exten => X_.,n,Set(TO=${CUT(TO,:,2)})
exten => X_.,n,Goto(somewhereelsetopreventloops${TO},1)

Sorry for the silly question, but how do I feed the TO variable back to the
usual pattern matching? Assign to $EXTEN?

        same = n,                       goto(${CONTEXT},${TO},1)

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST
            https://www.linkedin.com/in/steve-edwards-4244281

--
_____________________________________________________________________
-- 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