Originate - AMI problem (Asterisk 1.8.10.1)

I’m having some trouble with the Asterisk 1.8.10.1 (I’m upgrading from 1.4.42)
I have an agent logged in:

[i]agent show
1642 (Felipe Buch) logged in on SIP/5998-00000017 is idle (musiconhold is ‘silencio’)

core show channels
Channel Location State Application(Data)
SIP/5998-00000017 autologin@extensions Up AgentLogin(1642)[/i]

When I try to originate a call using this action:

Action: Originate
Channel: agent/1642
Context: extensions-1
Exten: 61234567
Priority: 1
Callerid: "“campaignid:4” <1642>"
Timeout: null
Async: true

It doesn’t works. It’s the same action I used in the Asterisk 1.4.42.

I’m logged in using the Line 1 of the Twinkle.
And if I try to do:

Action: Originate
Channel: SIP/5998
Context: extensions-1
Exten: 61234567
Priority: 1
Callerid: "“campaignid:4” <1642>"
Timeout: null
Async: true

It works, but the call is directed to the Line 2 of the Twinkle. I think the problem is with the channel.
I’m using the same configuration (“sip.conf”, “extensions.conf”, etc.) that I used in the Asterisk 1.4.42.

CLI> core show channel SIP/5998-0000000c
– General –
Name: SIP/5998-0000000c
Type: SIP
UniqueID: 1347307924.13
LinkedID: 1347307924.13
Caller ID: 5998
Caller ID Name: teste2
Connected Line ID: (N/A)
Connected Line ID Name: (N/A)
DNID Digits: *54
Language: pt_BR
State: Up (6)
Rings: 0
NativeFormats: 0x8 (alaw)
WriteFormat: 0x8 (alaw)
ReadFormat: 0x8 (alaw)
WriteTranscode: No
ReadTranscode: No
1st File Descriptor: 22
Frames in: 38
Frames out: 441
Time to Hangup: 0
Elapsed Time: 0h0m11s
Direct Bridge:
Indirect Bridge:
– PBX –
Context: extensions-1
Extension: *54
Priority: 4
Call Group: 0
Pickup Group: 0
Application: AgentLogin
Data: (Empty)
Blocking in: ast_waitfor_nandfds
Variables:
SYSTEMSTATUS=SUCCESS
SIPCALLID=aiipbqcpgopjxvm@devel5-isolve
SIPDOMAIN=172.16.0.116
SIPURI=sip:5998@172.16.0.52

CDR Variables:
level 1: dnid=*54
level 1: clid=“teste2” <5998>
level 1: src=5998
level 1: dst=*54
level 1: dcontext=extensions-1
level 1: channel=Agent/1642

level 1: lastapp=AgentLogin
level 1: start=2012-09-10 17:12:04
level 1: answer=2012-09-10 17:12:04
level 1: duration=11
level 1: billsec=11
level 1: disposition=ANSWERED
level 1: amaflags=DOCUMENTATION
level 1: uniqueid=1347307924.13
level 1: linkedid=1347307924.13
level 1: sequence=15

CLI> sip show peer 5998

  • Name : 5998
    Secret :
    MD5Secret :
    Remote Secret:
    Context : extensions-1
    Subscr.Cont. :
    Language : pt_BR
    AMA flags : Unknown
    Transfer mode: open
    CallingPres : Presentation Allowed, Not Screened
    Callgroup :
    Pickupgroup :
    MOH Suggest : default
    Mailbox : 5998@default
    VM Extension : asterisk
    LastMsgsSent : 32767/65535
    Call limit : 10
    Max forwards : 0
    Dynamic : Yes
    Callerid : “teste2” <5998>
    MaxCallBR : 384 kbps
    Expire : 3231
    Insecure : no
    Force rport : Yes
    ACL : No
    DirectMedACL : No
    T.38 support : Yes
    T.38 EC mode : FEC
    T.38 MaxDtgrm: -1
    DirectMedia : No
    PromiscRedir : No
    User=Phone : No
    Video Support: Yes
    Text Support : No
    Ign SDP ver : No
    Trust RPID : No
    Send RPID : No
    Subscriptions: No
    Overlap dial : Yes
    DTMFmode : rfc2833
    Timer T1 : 500
    Timer B : 32000
    ToHost :
    Addr->IP : 172.16.0.52:5060
    Defaddr->IP : (null)
    Prim.Transp. : UDP
    Allowed.Trsp : UDP
    Def. Username: 5998
    SIP Options : 100rel norefersub replaces replace
    Codecs : 0x80000000010c (ulaw|alaw|g729|testlaw)
    Codec Order : (g729:20,alaw:20,ulaw:20)
    Auto-Framing : No
    Status : Unmonitored
    Useragent : Twinkle/1.4.2
    Reg. Contact : sip:5998@172.16.0.52

    Qualify Freq : 60000 ms
    Sess-Timers : Accept
    Sess-Refresh : uas
    Sess-Expires : 1800 secs
    Min-Sess : 90 secs
    RTP Engine : asterisk
    Parkinglot :
    Use Reason : No
    Encryption : No