Re: [asterisk-users] Incoming INVITE with Portability Info and LRN

2016-03-20 Thread Steve Edwards
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-

Re: [asterisk-users] Incoming INVITE with Portability Info and LRN

2016-03-20 Thread Trey Hilyard
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,

Re: [asterisk-users] Incoming INVITE with Portability Info and LRN

2016-03-19 Thread Steve Edwards
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

[asterisk-users] Incoming INVITE with Portability Info and LRN

2016-03-19 Thread Trey Hilyard
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

Re: [asterisk-users] Incoming INVITE with Portability Info and LRN

2016-03-19 Thread Trey Hilyard
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

Re: [asterisk-users] Incoming INVITE with Portability Info and LRN

2016-03-19 Thread Administrator TOOTAI
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.

Re: [asterisk-users] Incoming INVITE with Portability Info and LRN

2016-03-19 Thread Trey Hilyard
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

Re: [asterisk-users] Incoming INVITE with Portability Info and LRN

2016-03-18 Thread Steve Edwards
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

Re: [asterisk-users] Incoming INVITE with Portability Info and LRN

2016-03-18 Thread Steve Edwards
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,