Re: [Asterisk-java-users] Setting the accountcode when firing anoriginateToExtensionAsync
Brought to you by:
srt
From: Martin S. <ma...@be...> - 2008-06-03 20:53:15
|
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 ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Richard Hamnett Sent: Tuesday, June 03, 2008 4:38 PM To: ast...@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 |