Sunny
Sunny

Reputation: 10075

"s" as a starting extension not working in Asterisk dial plan

I have

  [from-pstn]
  exten => s,1,Playback(demo-thanks) 

as the first line in the context of a dialplan. It does not work.

However, when it is replaced by this:

  [from-pstn]
  exten => _X.,1,Playback(demo-thanks)

It works. Is the "s" extension not the start extension?

This is the dialplan on a PRI line. When the caller calls in, the first line in the [from-pstn] context is triggered. The "front-pstn" context is referenced in dahdi.conf. That is not the source of the problem as it would not have worked with the _X. extension.

I am just starting to write Asterisk dialplans.

Upvotes: 1

Views: 2914

Answers (1)

arheops
arheops

Reputation: 15259

s-extensions is empty extension.

I.e it used when no number

Very likly you have number, so it go as number and match regexp X. in your dialplan.

For more info connect to asterisk console, enable verbose output and see what happens while calling

asterisk -r
core set verbose 5

Upvotes: 1

Related Questions