CS, thanks, both this ways I already went, but they don't solve the problem.

The originate way originates my call, but the agent has to press the 
acknowledge button on his phone, which shall not occur (the call shall be 
established without the agent needing to use the hardware phone). The dialplan 
is entered much too late by using this way, it's entered *after* the user has 
pressed a key on the phone (cancel or acknowledge).

Here's the event log coming from Asterisk (times inserted by my logging app).
At 17:37:19, the phone starts ringing, without the dialplan even being reached 
(SIPAddHeader!)
At 17:37:32, I acknowledge on the phone, then come into the dialplan, and can 
call SIPAddHeader, that's too late.


29.11.  17:37:19,060 Action: Originate
Channel: SIP/2000
Context: originating
Exten: #*00123456798
Priority: 1
CallerID: 2000
Variable: Outbound_CALLERID=07615987654321
ActionID: ORIGINATE_452


29.11.  17:37:32,660 Response: Success
ActionID: ORIGINATE_452
Message: Originate successfully queued

Event: Newchannel
Privilege: call,all
Channel: SIP/2000-08bba8b8
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 
CallerIDName: 
AccountCode: 
Uniqueid: 1259512663.0

<...>

Event: Newexten
Privilege: dialplan,all
Channel: SIP/2000-08bba8b8
Context: originating
Extension: #*00123456798
Priority: 2
Application: SIPAddHeader
AppData: Call-Info: sip:\;answer-after=0
Uniqueid: 1259512663.0

<...>

Event: Newexten
Privilege: dialplan,all
Channel: SIP/2000-08bba8b8
Context: originating
Extension: 00123456798
Priority: 3
Application: Dial
AppData: 00123456798
Uniqueid: 1259512663.0




-----Ursprüngliche Nachricht-----
Von: asterisk-biz-boun...@lists.digium.com 
[mailto:asterisk-biz-boun...@lists.digium.com] Im Auftrag von 
c.savinov...@itntelecom.com
Gesendet: Sonntag, 29. November 2009 15:32
An: asterisk-biz@lists.digium.com
Betreff: Re: [asterisk-biz] auto-answering an originated call, dialplan / 
manager interface problem


Alexander:

Once you get the handle of it, it ain't difficult:


AMI Example:

Action: Originate
Channel: ---> this is leg 1, the extension/channel "making" the call.
(actually, asterisk will call this extension /channel first)
Context: ---> Here is the context name in your dialplan(leg 2), for
example, "mycontext"
Exten:   ---> Exten, example "myexten"

Dialplan Example:

[mycontext]
myexten, 1, SipAddHeader(headertext)
myexten, 2, Dial(dialstring)


C. Savinovich



_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-biz mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-biz

Reply via email to