[Asterisk-java-users] dial number then pause then dial extension
Brought to you by:
srt
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-06-26 17:29:26
|
Hello all, I was wondering if there was a way to do the following: =20 =20 I currently use the following method to join a conference =20 [code] { userID =3D "8505551212"; OriginateAction oAction; ManagerResponse mResponse; oAction =3D new OriginateAction(); oAction.setApplication("MeetMe"); oAction.setData(confID); oAction.setChannel(userID); oAction.setCallerId(callerID); oAction.setTimeout(new Long(30000)); oAction.setAsync(Boolean.TRUE); if(! managerConnection.isConnected()) { managerConnection.login(); } mResponse =3D managerConnection.sendAction(oAction,30000); managerConnection.logoff(); =20 } [/code] =20 This works fine. Now I have a device that interfaces with radios, it has a 9 digit number = 8505551211. Dial this number and you get the option to dial an extension = 100,101,102,103,etc.. for each radio. So if you dial the extension you = are connected to a radio. =20 I wanted to be able to use the method above but also dial the extension = so I need to dial 8505551212 wait N seconds and then dial the extension = 101. =20 My question is: is the setExten() method designed for this? If so how is this accomplished? If not is there a way to do this in *-J? If not I guess I can do this in the asterisk conf files with a extension = or something. =20 Thanks! |