Generate out side calls

4 views
Skip to first unread message

Suranga

unread,
Nov 22, 2009, 11:42:46 PM11/22/09
to mobicents-public
Hi All ,

I have developed a fully complete system which reads a XML file and
and generates a call for user and after he click on answer button
application plays few voice clips according to the xml file contain.
Then again according to the user in put it will react with another
voice file.

which is fully tested with SJ phone client. But my question is how I
use it for real world I need to generate call for out side users. So
what kind of arrangement I should have and what are the things I
should know. Could some one assist me on this.

Many Thanks,
Suranga

Jean Deruelle

unread,
Nov 23, 2009, 3:13:28 AM11/23/09
to mobicent...@googlegroups.com
As a first step I would suggest using a VoIP online provider(such as callwithus.com) that will act as a gateway and convert SIP and Media to the legacy telephony network.

Sachin Parnami

unread,
Nov 23, 2009, 3:14:42 AM11/23/09
to mobicent...@googlegroups.com
My Answer inline

On Mon, Nov 23, 2009 at 10:12 AM, Suranga <suranga...@gmail.com> wrote:
Hi All ,

I have developed a fully complete system which  reads a XML file and
and generates a call for user and after he click on answer button
application plays few voice clips according to the xml file contain.
Then again according to the user in put it will react with another
voice file.

which is fully tested with SJ phone client.
Hope you mean here is, tested with sip to sip.
But my question is how I
use it for real world I need to generate call for out side users.
And wants to make call to PSTN or legacy?  if yes then you need to connect to VOIP gateway to make calls to PSTN numbers, the term actually stands for TERMINATION, try looking at callwithus.com if your requirement is what i understand :)
So
what kind of arrangement I should have and what are the things I
should know. Could some one assist me on this.
 

Many Thanks,
Suranga



--
Regards,
Sachin Parnami

Suranga

unread,
Nov 23, 2009, 3:40:25 AM11/23/09
to mobicents-public
Thanks for you Reply

I tested this with a web application which is deployed in "mobicents-
all-1.2.1.GA-jboss-4.2.3.GA " server and it send INVITE request via
SIP servlet to SJ Phone sip client which is installed on my machine.

Sample invite request sends from my application to SJ Phone

sipFactory.createRequest(appSession, "INVITE",sip:my-test-
Fr...@127.0.0.1:5060, sip:17...@10.2.10.55); // 10.2.10.55 is my
local IP

I believe this is sip to sip test if not correct me . So my
understanding is (after went through callwithus.com) when I need to
call out side user (May be someone's mobile phone) first I need to
talks a SIP server if that is so what kind of thing I need to change
in code level and configuration. Kindly assist me .

On Nov 23, 2:14 pm, Sachin Parnami <sachin.mob...@gmail.com> wrote:
> My Answer inline
>
> On Mon, Nov 23, 2009 at 10:12 AM, Suranga <suranga.her...@gmail.com> wrote:
> > Hi All ,
>
> > I have developed a fully complete system which  reads a XML file and
> > and generates a call for user and after he click on answer button
> > application plays few voice clips according to the xml file contain.
> > Then again according to the user in put it will react with another
> > voice file.
>
> > which is fully tested with SJ phone client.
>
> Hope you mean here is, tested with sip to sip.
>
> > But my question is how I
> > use it for real world I need to generate call for out side users.
>
> And wants to make call to PSTN or legacy?  if yes then you need to connect
> to VOIP gateway to make calls to PSTN numbers, the term actually stands for
> *TERMINATION*, try looking at callwithus.com if your requirement is what i

Jean Deruelle

unread,
Nov 23, 2009, 10:40:05 AM11/23/09
to mobicent...@googlegroups.com
If you subscribe to callwithus.com or any other voip provider u'll have to change the To and Request URI to sip:<phone number to call>@callwithus.com and handle the request authentication/authorization.
You can take a look at the shopping demo it does it : 

Suranga

unread,
Nov 24, 2009, 10:52:56 PM11/24/09
to mobicents-public

Thank you very much for the reply

I have few quessions one this

1) Before generate the call do I need to override doSubscribe method
to register with sip.callwithus.com or what is the approach
2) if I need to generate call to person in UK and assume his number is
0044785412365414 is it generate call if I send request as follows

sipFactory.createRequest(appSession,
"INVITE",sip:what_...@10.2.10.55:5060, sip:
00447854...@sip.callwithus.com); // 10.2.10.55 is mylocal IP

here from address = sip:what_...@10.2.10.55:5060 and To address =
00447854...@sip.callwithus.com or what should be the from address
and to address.
Kindly assist me.

Many Thanks,
Suranga

On Nov 23, 9:40 pm, Jean Deruelle <jean.derue...@gmail.com> wrote:
> If you subscribe to callwithus.com or any other voip provider u'll have to
> change the To and Request URI to sip:<phone number to
> call>@callwithus.comand handle the request
> authentication/authorization.
> You can take a look at the shopping demo it does it :http://code.google.com/p/mobicents/source/browse/trunk/servers/sip-se...
>
> Jean
>
> On Mon, Nov 23, 2009 at 9:40 AM, Suranga <suranga.her...@gmail.com> wrote:
> > Thanks for you Reply
>
> > I tested this with a web application which is deployed in "mobicents-
> > all-1.2.1.GA-jboss-4.2.3.GA " server and it send INVITE request via
> > SIP servlet to SJ Phone sip client which is installed on my machine.
>
> > Sample invite request sends from my application to SJ Phone
>
> > sipFactory.createRequest(appSession, "INVITE",sip:my-test-
> > F...@127.0.0.1:5060, sip:17...@10.2.10.55 <sip%3A17...@10.2.10.55>);   //

Jean Deruelle

unread,
Nov 25, 2009, 3:10:26 PM11/25/09
to mobicent...@googlegroups.com
See inline

On Wed, Nov 25, 2009 at 4:52 AM, Suranga <suranga...@gmail.com> wrote:

Thank you very much for the reply

I have few quessions one this

1) Before generate the call  do I need to override doSubscribe method
to register with sip.callwithus.com or what is the approach

Not needed Subscribe is for presence only. You just need a callwithus account and provide the credentials to create the new invite request when you receive the 407/401 challenge response.
 
2) if I need to generate call to person in UK and assume his number is
0044785412365414 is it generate call if I send request as follows

sipFactory.createRequest(appSession,
"INVITE",sip:what_...@10.2.10.55:5060, sip:
00447854...@sip.callwithus.com);   // 10.2.10.55 is mylocal IP
here from address = sip:what_...@10.2.10.55:5060 and To address =
00447854...@sip.callwithus.com or what should be the from address
and to address.

From address might need to be your callwithus user name and in the To instead of having 00 I think you can replace by +.
Reply all
Reply to author
Forward
0 new messages