I will try to explain a little more.I want to write a webservice which somehow connects with SIP servlet and initiates a call to a SIP URI.. The receiver of the Call using Soft phone accepts the call. This call should play an audio file and should be capable of receiving DTMF input from the user.i.e. If a user registers with my website, I should be able to call him on a SIP URI for that user, and should play an audio "To Activate you account please enter 4 digit PIN.". User enters 4 digit pin, and i should be able to process that pin and send a response audio.On Fri, Mar 8, 2013 at 8:28 PM, Lyle Pratt <lyle...@gmail.com> wrote:
Hi!I'm a little unclear about what you're trying to do based on your description. If you want to take an inbound call on a number and connect that caller to someone else, you would typically use the <Dial></Dial> element. However, If you want to register a SIP device with RestComm you'll need to use the RestAPI to create a RestComm Client address.Lastly, before any Outbound functionality will work with RestComm, you have to configure an outbound proxy in the restcomm.xml settings file.-LyleOn Fri, Mar 8, 2013 at 5:31 AM, vixmemon <waqas...@gmail.com> wrote:
Lyle,I saw your discussion with Mobicents and RestComm team. I was more or less doing the same thing and I am kind of stuck.I have been successful in receiving calls to a registered number in RestComm Accounts and when i receive a call i play back a sound, and receive user input through DTMF.Now, i am stuck in being able to make a call from the same registered number (which receives the call). I want to be able to make a call through RestComm to a SIP address (maybe register another user.) and play same audio and receive user input. How can i do it. I am doing it through Java.
On Tuesday, 27 November 2012 22:31:45 UTC+5, Lyle Pratt wrote:I'm wondering if its possible to use RestComm to create SIP endpoints that desk IP phones could use. Plivo lets you create endpoints that these SIP devices can connect to....its a big reason to use Plivo over Twilio. Unfortunately, I don't see any way to do something like that with RestComm. Am I just missing it?Thanks,Lyle
--
You received this message because you are subscribed to a topic in the Google Groups "mobicents-public" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobicents-public/YhJctu6VoKA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to mobicents-publ...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
public static void main(String[] args) {
//I have replaces accountSID and AUTHTOKEN with my accountsid and authtoken for twilio...
TwilioRestClient client = new TwilioRestClient(ACCOUNTSID, AUTHTOKEN);parameters.put("From", "ser...@127.0.0.1:5080");
// Set the call parameters.
final Account account = client.getAccount();
final Map<String, String> parameters = new HashMap<String, String>();
parameters.put("To", "us...@127.0.0.1:5080");parameters.put("Endpoint", "http://127.0.0.1:8080/restcomm"); // i have tried with this and without this....
parameters.put("Url", "http://127.0.0.1:8080/restcomm/demo/hello-world.xml");
parameters.put("Method", "POST");
parameters.put("Timeout", "30");System.err.println(exception.getMessage());
try {
// Make the phone call.
final Call call = account.getCallFactory().create(parameters);
} catch(final TwilioRestException exception) {
exception.printStackTrace();
}
}
Exception in thread "main" java.lang.UnsupportedOperationException: text/html;charset=utf-8 not a supported content type
at com.twilio.sdk.TwilioRestResponse.getParser(TwilioRestResponse.java:230)
at com.twilio.sdk.TwilioRestResponse.toMap(TwilioRestResponse.java:243)
at com.twilio.sdk.TwilioRestException.parseResponse(TwilioRestException.java:58)
at com.twilio.sdk.TwilioRestClient.safeRequest(TwilioRestClient.java:522)
at com.twilio.sdk.resource.list.CallList.create(CallList.java:68)
at com.systems.Main.main(Main.java:61)
--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-publ...@googlegroups.com.
Thomas
Thomas
Thomas