Hi. I am using Asterisk 1.2.7 and are trying to get originate (in Asterisk API) to work. It worked flawlessly on my old Asterisk@Home, but now I get some strange problems.
When I initiate the originate-action, Asterisk calls my Ip-phone, but when I answer, it just hangs up again (without ever reaching through to the Exten).
This is my Originate:
Action: Originate
Channel:SIP/63 <-- My sip-account
Context: internt
Exten: 92626446 <-- Number i want to call
Priority: 1
Callerid: 63000063
Here is the response from the API (telnet)
[code]Response: Success
Message: Originate successfully queued
Event: Newchannel
Privilege: call,all
Channel: SIP/63-efed
State: Down
CallerID:
CallerIDName:
Uniqueid: 1151445705.128
Event: Newcallerid
Privilege: call,all
Channel: SIP/63-efed
CallerID: 63000063
CallerIDName:
Uniqueid: 1151445705.128
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newchannel
Privilege: call,all
Channel: SIP/63-efed
State: Ringing
CallerID: 63000063
CallerIDName:
Uniqueid: 1151445705.128
Event: Newstate
Privilege: call,all
Channel: SIP/63-efed
State: Up
CallerID: 63000063
CallerIDName:
Uniqueid: 1151445705.128
Event: Hangup
Privilege: call,all
Channel: SIP/63-efed
Uniqueid: 1151445705.128
Cause: 16
Cause-txt: Normal Clearing
[/code]
And here is the log from asterisk:
> Channel SIP/63-e3e2 was answered.
== Starting SIP/63-e3e2 at internt,92626446,1 failed so falling back to exten 's'
== Starting SIP/63-e3e2 at internt,s,1 still failed so falling back to context 'default'
Jun 28 00:03:27 WARNING[21357]: pbx.c:2353 __ast_pbx_run: Channel 'SIP/63-e3e2' sent into invalid extension 's' in context 'default', but no invalid handler
And here is my channel in sip.conf
[63]
type=friend
username=63
secret=XXXXX
host=dynamic
disallow=all
allow=ulaw
allow=alaw
allow=gsm
context=internt
And finally (puh), here is my extension:
[internt]
exten => _63,1,Dial(SIP/${EXTEN})
exten => _XXXX./63,1,Dial(SIP/${EXTEN}@ip24_63000063)
I would be very grateful for any help. Been trying to deal with this problem for hours…