[asterisk-users] {s} - extension

Tzafrir Cohen tzafrir.cohen at xorcom.com
Wed Mar 5 05:47:49 CST 2008


On Wed, Mar 05, 2008 at 02:12:47PM +0400, Daniel Suleyman wrote:
> Dear all, I have small question
> 
> in sip.conf I added
> 
> [service]
> type=friend
> ;username=
> ;secret=
> qualify=900
> host=X.X.X.X
> dtmfmode = rfc2833
> disallow=all
> ;allow=g729
> allow=gsm
> allow=alaw
> allow=ulaw
> 
> and  I can proccess incoming call from soft phone only I calling on
> number that is used in extensions.conf(in example below it is 1)
> 
> exten => 1,1,Answer;
> exten => 1,2,Playback(hello-world,skip);
> exten => 1,3,Hangup;
> 
> but when I use next construction(As I understand it is used to allow
> to process any extension dialed by user)
> 
> exten => s,1,Answer;
> exten => s,2,Playback(hello-world,skip);
> exten => s,3,Hangup;
> 
> Asterisk  says call rejected due to no extension.

Chances are you got the wrong context.

Have you set a context in sip.conf? Or do you use the defualt one?

What is the output of:

  dialplan show default

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list