Can't originate a call, Message: Extension does not exist

Hi…
i have just started AMI…and trying to make a call b/w two users…according to the documents i have read from the internet…i have done the following steps…
I have added a user in manager.conf

[100]
secret=1234
permit = 127.0.0.1/255.255.255.0
read = all,system,call,log,verbose,command,agent,user,config
write = all,system,call,log,verbose,command,agent,user,config

And dial plan is also mentioned in the extensions.conf

[AMI]
exten=>100,1,Answer()
exten=>100,n,Playback(agent-loginok)
exten=>100,n,Hangup()

after using

telnet localhost 5038

i logedin with user 100

Action:login
Username:100
Secret:1234
Events:off

and after that i try…

Action: Originate
Channel: SIP/100
Context: AMI
Exten:100
Priority: 1
Callerid:100
ActionID: ABC-100

and this is what i get in result…

Response: Error
ActionID: ABC-100
Message: Extension does not exist.

i cant understand the problem…

Any help will be appreciated…Thanks in advance…

There is nothing obviously wrong.

Did you reload the configuration after changing extensions.conf

What does |the CLI command “dialplan show 100@AMI” report (hope I remembered the syntax properly).

Whilst this isn’t a permissions problem, specifying bits in the address that are not in the subnet mask is not a good idea.

yes…i have reloaded the dialplan…and also tried “dialplan show 100@AMI”

Output

There is no existence of ‘AMI’ context
Command ‘dialplan show 100@AMI’ failed

i have also tried .

Channel: SIP/100@AMI

but still …

Response: Error
ActionID: ABC-100
Message: Extension does not exist.

Does the console say anything when loading the dialplan?

yes…it was displaying a warning …i used multiple lines > of

=====================

[AMI]
exten = >…

to separate it from my other dialplan…but forgot to comment it…

after reloading the dialplan…i tried again and now it shows…

Response: Error
ActionID: ABC-100
Message: Originate failed

Show the complete console output as well as your actual configuration. We can only guess from the above.

Hi there.

In your originate command you are calling SIP/100 just to confirm in sip.conf you have a user 100 configured and a phone registered to it.

What you have above will call SIP/100 and only when it answers will it send the call to the context,exten,priority.

Also if dialplan show AMI is failing then you probably have something fundamentally wrong in extensions.conf. Please post the full config.

this is my complete extensions.conf (only 1 context)

[AMI]
exten=>100,1,Answer()
exten=>100,n,Playback(agent-loginok)
exten=>100,n,Hangup()

And this is my Sip.conf

[general]
bindport=5080
bindaddr=0.0.0.0
externip=x.x.x.x
localnet=192.168.1.254/255.255.255.0
nat=yes

[100]
type=friend
secret=1234
username=100
host=dynamic
context=AMI

[root@asterisk ~]# telnet localhost 5038
Trying ::1…
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1…
Connected to localhost (127.0.0.1).
Escape character is ‘^]’.
Asterisk Call Manager/1.3
action:login
username:100
secret:1234

Response: Success
Message: Authentication accepted

Event: FullyBooted
Privilege: system,all
Status: Fully Booted

Action: Originate
Channel: SIP/100@AMI
Context: AMI
Exten:100
Priority: 1
Callerid:100
ActionID: ABC-100

Response: Error
ActionID: ABC-100
Message: Originate failed

The Channel SIP/100@AMI is invalid. You want SIP/100 like so:

Action: Originate
Channel: SIP/100
Context: AMI
Exten:100
Priority: 1
Callerid:100
ActionID: ABC-100