[asterisk-users] call file vs. originate
Nathan Bell
nathanb at actarg.com
Fri Mar 30 09:35:41 MST 2007
I'm having trouble getting the manager interface to behave properly;
specifically the Originate event.
If I create an originate event as below, the calling phone will
auto-answer (as it's supposed to) but the receiving phone never rings.
It will timeout at 20 seconds.
Action: Originate
Channel: Local/201 at from-sip2
Context: from-sip
Extension: 154
Priority: 1
CallerID: John Doe <201>
This is rather odd, as if I create a nearly identical call file in
/var/spool/asterisk/outgoing (below) the receiving phone rings correctly.
Channel: Local/201 at from-sip2
Context: from-sip
Extension: 154
Priority: 1
CallerID: John Doe <201>
They both use the same contexts, but the result is drastically
different. Any thoughts on how to remedy the problem?
Here is are the two contexts from extensions.conf:
; from sip lines
[from-sip]
include => internal
[from-sip2]
exten => _X.,1,SIPAddHeader(Alert-Info: AA)
exten => _X.,n,Dial(SIP/${EXTEN},200,o)
exten => _X.,n,Hangup()
; generic interal route
[internal]
exten => s,1,Answer()
exten => 500,1,Macro(voicemail)
include => parkedcalls
include => cac-ext
include => sip-ext
include => intertel-ext
include => to-ptsn
(cac-ext, sip-ext, intertel-ext and to-ptsn route the calls to our
channel bank, sip phones, intertel pbx, and the outside world respectively.)
Below lies the results given over the manager interface:
Response: Success
Message: Originate successfully queued
Event: Newchannel
Privilege: call,all
Channel: Local/201 at from-sip2-3974,2
State: Ring
CallerID: <unknown>
CallerIDName: <unknown>
Uniqueid: 1175271459.2289
Event: Newchannel
Privilege: call,all
Channel: Local/201 at from-sip2-3974,1
State: Down
CallerID: <unknown>
CallerIDName: <unknown>
Uniqueid: 1175271459.2288
Event: Newcallerid
Privilege: call,all
Channel: Local/201 at from-sip2-3974,1
CallerID: 201
CallerIDName: Fake Name
Uniqueid: 1175271459.2288
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newcallerid
Privilege: call,all
Channel: Local/201 at from-sip2-3974,1
CallerID: 201
CallerIDName: Fake Name
Uniqueid: 1175271459.2288
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newcallerid
Privilege: call,all
Channel: Local/201 at from-sip2-3974,2
CallerID: 201
CallerIDName: Fake Name
Uniqueid: 1175271459.2289
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newexten
Privilege: call,all
Channel: Local/201 at from-sip2-3974,2
Context: from-sip2
Extension: 201
Priority: 1
Application: SIPAddHeader
AppData: Alert-Info: AA
Uniqueid: 1175271459.2289
Event: Newexten
Privilege: call,all
Channel: Local/201 at from-sip2-3974,2
Context: from-sip2
Extension: 201
Priority: 2
Application: Dial
AppData: SIP/201|200|o
Uniqueid: 1175271459.2289
Event: Newchannel
Privilege: call,all
Channel: SIP/201-08217eb0
State: Down
CallerID: <unknown>
CallerIDName: <unknown>
Uniqueid: 1175271459.2290
Event: Dial
Privilege: call,all
Source: Local/201 at from-sip2-3974,2
Destination: SIP/201-08217eb0
CallerID: 201
CallerIDName: Fake Name
SrcUniqueID: 1175271459.2289
DestUniqueID: 1175271459.2290
Event: Newstate
Privilege: call,all
Channel: SIP/201-08217eb0
State: Ringing
CallerID: 201
CallerIDName: Fake Name
Uniqueid: 1175271459.2290
Event: Newstate
Privilege: call,all
Channel: SIP/201-08217eb0
State: Up
CallerID: 201
CallerIDName: Fake Name
Uniqueid: 1175271459.2290
Event: Newstate
Privilege: call,all
Channel: Local/201 at from-sip2-3974,2
State: Up
CallerID: 201
CallerIDName: Fake Name
Uniqueid: 1175271459.2289
Event: Link
Privilege: call,all
Channel1: Local/201 at from-sip2-3974,2
Channel2: SIP/201-08217eb0
Uniqueid1: 1175271459.2289
Uniqueid2: 1175271459.2290
CallerID1: 201
CallerID2: 201
Event: Newstate
Privilege: call,all
Channel: Local/201 at from-sip2-3974,1
State: Up
CallerID: 201
CallerIDName: Fake Name
Uniqueid: 1175271459.2288
Event: Newexten
Privilege: call,all
Channel: Local/201 at from-sip2-3974,1
Context: from-sip
Extension: s
Priority: 1
Application: Answer
AppData:
Uniqueid: 1175271459.2288
Event: Rename
Privilege: call,all
Oldname: SIP/201-08217eb0
Newname: SIP/201-08217eb0<MASQ>
Uniqueid: 1175271459.2290
Event: Rename
Privilege: call,all
Oldname: Local/201 at from-sip2-3974,1
Newname: SIP/201-08217eb0
Uniqueid: 1175271459.2288
Event: Rename
Privilege: call,all
Oldname: SIP/201-08217eb0<MASQ>
Newname: Local/201 at from-sip2-3974,1<ZOMBIE>
Uniqueid: 1175271459.2290
Event: Unlink
Privilege: call,all
Channel1: Local/201 at from-sip2-3974,2
Channel2: Local/201 at from-sip2-3974,1<ZOMBIE>
Uniqueid1: 1175271459.2289
Uniqueid2: 1175271459.2290
CallerID1: 201
CallerID2: 201
Event: Hangup
Privilege: call,all
Channel: Local/201 at from-sip2-3974,1<ZOMBIE>
Uniqueid: 1175271459.2290
Cause: 16
Cause-txt: Normal Clearing
Event: Hangup
Privilege: call,all
Channel: Local/201 at from-sip2-3974,2
Uniqueid: 1175271459.2289
Cause: 16
Cause-txt: Normal Clearing
More information about the asterisk-users
mailing list