[Asterisk-java-users] Setting the accountcode when firing an originateToExtensionAsync
Brought to you by:
srt
From: Richard H. <ri...@ha...> - 2008-06-03 20:38:17
|
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 |