On Sun, 20 Mar 2016, Trey Hilyard wrote:
On Mar 18, 2016 8:27 PM, "Steve Edwards" wrote:
>>
>> On Fri, 18 Mar 2016, Trey Hilyard wrote:
>>
>>> I thought this would be as easy as
>>> exten => _XX\;rn=+1913663,1,Goto(from_pstn,${EXTEN:0:10})
>
>
> How about something like:
>
> [parse-
On Mar 18, 2016 8:27 PM, "Steve Edwards" wrote:
>>
>> On Fri, 18 Mar 2016, Trey Hilyard wrote:
>>
>>> I thought this would be as easy as
>>> exten => _XX\;rn=+1913663,1,Goto(from_pstn,${EXTEN:0:10})
>
>
> How about something like:
>
> [parse-lrn]
> exten = _x.,1,
On Fri, 18 Mar 2016, Trey Hilyard wrote:
I thought this would be as easy as
exten => _XX\;rn=+1913663,1,Goto(from_pstn,${EXTEN:0:10})
Have you tried the '_!.' pattern?
--
Thanks in advance,
-
Steve Edwards
I am trying to set up my Asterisk server so that it will recognize an
incoming call to the Asterisk's own Location Routing Number (LRN),
validating the "rn" in the INVITE and then using the Called Number from the
INVITE as the extension in the dialplan.
The INVITE R-URI looks like:
INVITE
sip:+19
On Fri, Mar 18, 2016 at 10:49 AM Administrator TOOTAI
wrote:
> Le 18/03/2016 16:20, Trey Hilyard a écrit :
> > I am trying to set up my Asterisk server so that it will recognize an
> > incoming call to the Asterisk's own Location Routing Number (LRN),
> > validating the "rn" in the INVITE and the
Le 18/03/2016 16:20, Trey Hilyard a écrit :
I am trying to set up my Asterisk server so that it will recognize an
incoming call to the Asterisk's own Location Routing Number (LRN),
validating the "rn" in the INVITE and then using the Called Number from
the INVITE as the extension in the dialplan.
I thought this would be as easy as
exten => _XX\;rn=+1913663,1,Goto(from_pstn,${EXTEN:0:10})
But it appears that the pattern match doesn't work once I get to the "r" in
"rn". I am assuming that the pattern match doesn't like dealing with
characters without taking the entire URI.
I am
On Fri, 18 Mar 2016, Steve Edwards wrote:
Have you tried the '_!.' pattern?
The '_x.' pattern works fine.
--
Thanks in advance,
-
Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST
https
On Fri, 18 Mar 2016, Trey Hilyard wrote:
I thought this would be as easy as
exten => _XX\;rn=+1913663,1,Goto(from_pstn,${EXTEN:0:10})
How about something like:
[parse-lrn]
exten = _x.,1, verbose(1,[${EXTEN}@${CONTEXT}])
same = n,