The S extention

i’m using flowroute as my provider when i try to makean incomming call i get the message

chan_sip.c:20152 handle_request_invite: Call from '6699****' to extension '1323313****' rejected because extension not found in context 'inbound'.

flowroute is registered, it has a context of inbound

the inbound context is as follows

exten => s,1,wait(1)
exten => s,n,Answer()
exten => s,n,Goto(main_ivr,888,1)
exten => s,n,Hangup

i guess ‘s’ shoud pick the call, as it works as a wildcard. if i hard code the number 1323313**** it works fine.

NOTE:i have replaced a the last 4 digits with **** for my privacy

s is not a wildcard. It is used when there is no user field in the incoming SIP URL. In your case you need a real wildcard (starting _) or to match the actual numbers.

we’ll I may be wrong, but i have seen when there is no extention mach in the context, the call is answered by the ‘s’ extention. (this link says the same thing … +extension)

please elighten me whats wrong and in what context is ‘s’ used if, I’m wrong

Apart from the primary use that I mentioned, I’ve never really worked out when s is used like i.

However, I think you will find that matching is stricter for incoming calls and GoSub than for GoTo.

PS Don’t believe everything you read on If you want to be certain about obscure features, you need to read the source code. Errors in often don’t get fixed.

Thanks a bunch, it worked

exten=> _.,1,Answer()

_., rather than _X. is dangerous because it also matches h, etc.

Most dialplans don’t need to call Answer(). Doing so may prematurely start charging for the caller.

_., has shortcommings…
so i’ll swithover to _X.,