Sipml5 : Sending INVITE without Registration

840 views
Skip to first unread message

Hadi Ams

unread,
Oct 1, 2012, 4:56:59 AM10/1/12
to doub...@googlegroups.com
Dear all,
I am trying to develop a specific scenario for call out options from google chrome through Asterisk.
I don't need to receive calls from other parties , so I don't need to be registered to a UAS (Asterisk).
First of all I want to make sure that sipml5 supports such capability to send invites before being registered (generally it is supported in sip), and if it is possible I need some help with the "structural approach" on how to do it .(I don't need help with coding because I know nobody has time for that.)
It's really difficult to read all the scripts and see the dependency of the code on registration.
Currently I have tried many things in call.htm to directly send invites out , but looks like everything is configured to work after registration and a new sip stack is only created when registration is happening .
And I am not even sure if invite is sent out , the rest of call establishment will happen normally or not . (SDP negotiation , Call events , etc...)
I am really stuck and any help would be really appreciated .

Thank you 

Mamadou

unread,
Oct 1, 2012, 5:33:12 AM10/1/12
to doub...@googlegroups.com, Hadi Ams
There is no relation between the REGISTER and INVITE dialogs. Doing what
you want is as simple as creating a stack then making a call.
For example, to call "1062" as "1060" without registering:

var o_stack, o_session;
o_stack = new tsip_stack("doubango.org", "1060",
"sip:10...@doubango.org", "sipml5.org", 4062,
tsip_stack.prototype.SetWebsocketServerUrl("ws://sipml5.org:8088/ws"),
tsip_stack.prototype.SetPassword("1060"));
o_stack.on_event_stack = function (evt) {
switch (evt.i_code) {
case tsip_event_code_e.STACK_STARTED:
{
o_session = new tsip_session_invite(o_stack,
tsip_session.prototype.SetToStr("1062"),
tsip_session.prototype.SetCaps("+sip.ice")
);
o_session.call(tmedia_type_e.AUDIO);
break;
}
}
};
o_stack.start();
off course the stack should be created one time
> --
>
>

Hadi Ams

unread,
Oct 1, 2012, 5:51:01 AM10/1/12
to doub...@googlegroups.com
Thanks a lot for your quick response Mamadou.
That's appreciated.
I feel relived now :) 

Karunakar

unread,
Jun 20, 2013, 6:18:06 AM6/20/13
to doub...@googlegroups.com, Hadi Ams

i am sorry ,may be i really do not understand it completely , is it something like every time you click the call button, it creates a new User on client side and makes connection possible (of course for 1 call cycle), Am i correct ?

Is it possible to make connection with out registering on client side, SIP invitation with out  source details. ???


On Monday, October 1, 2012 11:33:16 AM UTC+2, Mamadou wrote:
There is no relation between the REGISTER and INVITE dialogs. Doing what
you want is as simple as creating a stack then making a call.
For example, to call "1062" as "1060" without registering:

             var o_stack, o_session;
             o_stack = new tsip_stack("doubango.org", "1060",
"sip:...@doubango.org", "sipml5.org", 4062,

~Kanagavelu~

unread,
Jun 20, 2013, 9:48:31 AM6/20/13
to doub...@googlegroups.com, Hadi Ams
Yes It is possible to make connection with out registering on client side. But you have to start the stack which is part of function sipRegister(). If you don't want to send register request to Server then comment out the code @ function onSipEventStack :: oSipSessionRegister = this.newSession('register', {


--
You received this message because you are subscribed to the Google Groups "discuss-doubango" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mamadou

unread,
Jun 20, 2013, 10:04:56 AM6/20/13
to doub...@googlegroups.com, doub...@googlegroups.com, Hadi Ams
For clean code, check conf-call.org
We make calls without registering

Sent from my iPhone
Message has been deleted

karunakar reddy

unread,
Jun 28, 2013, 4:48:37 AM6/28/13
to doub...@googlegroups.com

As i asked before sip Call without Registration process, for this purpose i would like check your clean code (tele presence). I would be very happy if you could answer this mail. 

And one more question, If we try to hardcode the user values in the sip stack and send direct invites to server, 

Is it possible to make use of same sip stack on multiple locations n multiple browsers ? at an instance. to different destinations




On Fri, Jun 28, 2013 at 10:28 AM, karunakar reddy <karan....@gmail.com> wrote:


hello mamaodu, i tried to svn the code of telepresence, i have invite, but why it is not possible, i cant see any code in it in the download folder , Am i doing anything wrong ?, or is it only for limited members ?



--
You received this message because you are subscribed to a topic in the Google Groups "discuss-doubango" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/doubango/HVkjDGElHe4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to doubango+u...@googlegroups.com.

Mamadou DIOP

unread,
Jun 28, 2013, 11:24:58 AM6/28/13
to doub...@googlegroups.com
If you got an invitation and still trying to use SVN to get the source this means you don't carefully read the mails your receive.
Anyways, what you're looking for is the javascript code not the C/C++. For js code, just open conf-call.org and display source code for index.htm.

On Jun 28, 2013, at 10:28 AM, karunakar reddy <karan....@gmail.com> wrote:



hello mamaodu, i tried to svn the code of telepresence, i have invite, but why it is not possible, i cant see any code in it in the download folder , Am i doing anything wrong ?, or is it only for limited members ?

On Thu, Jun 20, 2013 at 4:04 PM, Mamadou <diopm...@doubango.org> wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "discuss-doubango" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/doubango/HVkjDGElHe4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to doubango+u...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages