I'm using "s" extension in my dialplan: [gv-voice] exten => s,1,Verbose(callerid is "${CALLERID(all)}" or "${CALLERID(num)}") ;Set(Var_TO=${SIP_HEADER(TO)}) ; PJSIP_HEADER(read,To) same=>n,.... But when a call comes in to the gv-voice context, "s" doesn't match the extension: res_pjsip_session.c:2991 new_invite: Call from 'gv-voice' (UDP:10.10.10.80:5062) to extension '<xxxxxxxxxx>' rejected because extension not found in context 'gv-voice'. I thought "s" (as in start ?) would match any extension sent to that context. sean
On 3/28/2019 6:32 PM, sean darcy wrote:> I'm using "s" extension in my dialplan: > > [gv-voice] > exten => s,1,Verbose(callerid is "${CALLERID(all)}" or > "${CALLERID(num)}") ;Set(Var_TO=${SIP_HEADER(TO)}) ; > PJSIP_HEADER(read,To) > same=>n,.... > > But when a call comes in to the gv-voice context, "s" doesn't match > the extension: > > res_pjsip_session.c:2991 new_invite: Call from 'gv-voice' > (UDP:10.10.10.80:5062) to extension '<xxxxxxxxxx>' rejected because > extension not found in context 'gv-voice'. > > I thought "s" (as in start ?) would match any extension sent to that > context. > > sean >The "s" extension does not work because you are calling a numbered extension. If the call was coming in without an explicit number it would work. If you want to use your s extension in this case you need to add: exten => _X.,1,Goto(s,1) That will redirect any call coming in to your s extension. -- Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez +52 (55)8116-9161 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190328/49f97551/attachment.html>
Think of "s" as meaning "stupid" because calls from devices too stupid to send the dialed number are routed to the "s" extension. Any incoming calls which includes the dialed number would NOT be sent to extension "s", those calls will match whatever the dialed number is. On 03/28/2019 08:32 PM, sean darcy wrote:> I'm using "s" extension in my dialplan: > > [gv-voice] > exten => s,1,Verbose(callerid is "${CALLERID(all)}" or > "${CALLERID(num)}") ;Set(Var_TO=${SIP_HEADER(TO)}) ; PJSIP_HEADER(read,To) > same=>n,.... > > But when a call comes in to the gv-voice context, "s" doesn't match the > extension: > > res_pjsip_session.c:2991 new_invite: Call from 'gv-voice' > (UDP:10.10.10.80:5062) to extension '<xxxxxxxxxx>' rejected because > extension not found in context 'gv-voice'. > > I thought "s" (as in start ?) would match any extension sent to that > context. > > sean > >-- http://help.nyigc.net/
On 3/29/19 10:14 AM, Eric Wieling wrote:> Think of "s" as meaning "stupid" because calls from devices too stupid > to send the dialed number are routed to the "s" extension. > > Any incoming calls which includes the dialed number would NOT be sent to > extension "s", those calls will match whatever the dialed number is. > > On 03/28/2019 08:32 PM, sean darcy wrote: >> I'm using "s" extension in my dialplan: >> >> [gv-voice] >> exten => s,1,Verbose(callerid is "${CALLERID(all)}" or >> "${CALLERID(num)}") ;Set(Var_TO=${SIP_HEADER(TO)}) ; >> PJSIP_HEADER(read,To) >> same=>n,.... >> >> But when a call comes in to the gv-voice context, "s" doesn't match >> the extension: >> >> res_pjsip_session.c:2991 new_invite: Call from 'gv-voice' >> (UDP:10.10.10.80:5062) to extension '<xxxxxxxxxx>' rejected because >> extension not found in context 'gv-voice'. >> >> I thought "s" (as in start ?) would match any extension sent to that >> context. >> >> sean >> >> >OK. Thanks to both of you. I'll use _X. and I'll remember "s" as in "stupid" ! sean