Hi Martin
I tried the combination of "CDR(accountcode)" "account" "Account"
"accountcode" and nothing seems to work unfortunately.
Rick
Hi Richard,
Have you tried using "Account" instead of "CDR(accountcode)"?
The spec for the Manager API's originate action calls it "Account" --
http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate
...
If that doesn't work, it would be trivial for us to add it to the live
API as a method argument, so you can call it more directly.
Let us know :)
Martin Smith, Systems Developer
martins@be...
Bureau of Economic and Business Research
University of Florida
(352) 392-0171 Ext. 221
________________________________
From: asterisk-java-users-bounces@li...
[mailto:asterisk-java-users-bounces@li...] On Behalf Of
Richard Hamnett
Sent: Tuesday, June 03, 2008 4:38 PM
To: asterisk-java-users@li...
Subject: [Asterisk-java-users] Setting the accountcode when
firing anoriginateToExtensionAsync
I was wondering if someone can help me, i'm using
originateToExtensionAsync to create a call but I cannot figure out a way
to set the account code within the method
I tried something along the lines of:
Map<String, String> m = new HashMap<String, String>();
m.put("CDR(accountcode)", accountCode);
serverBean.getServer().originateToExtensionAsync("Local/3"+
exten + "@cmyContext/n", "myContext", companyNumber, 1, 15000L, new
CallerId(companyName, companyNumber), m, callbackBean);
Can anyone kindly suggest how to do so?
Thanks,
Richard
|