Disconnect the call

4 views
Skip to first unread message

Suranga

unread,
Nov 17, 2009, 2:48:51 AM11/17/09
to mobicents-public
Hi All,

I have an application which is provide some information to user and
after he click on some button on phone call should disconnect. So
could some one tell me how I can approach to that. I'm using SIP
Servlet .

Many Thanks,

Oleg Kulikov

unread,
Nov 17, 2009, 3:18:01 AM11/17/09
to mobicent...@googlegroups.com
You need to use dtmf detection. There are tree ways of DTMF transition: SIP INFO, RFC 2833 and Inband mode. For handling SIP INFO you need SIPs only for remaining two ways you have to connect user to media server and catch DTMF from media track.

Oleg

2009/11/17 Suranga <suranga...@gmail.com>

Suranga

unread,
Nov 17, 2009, 4:02:15 AM11/17/09
to mobicents-public
Thank you for your quick response,

I have already done that part and I believe that sending BYE request
will do the thing but I have no idea to how to send it. So could
someone help me to send BYE
request so that call will be automatically disconnected.

Many Thanks,


On Nov 17, 2:18 pm, Oleg Kulikov <oleg.kulik...@gmail.com> wrote:
> You need to use dtmf detection. There are tree ways of DTMF transition: SIP
> INFO, RFC 2833 and Inband mode. For handling SIP INFO you need SIPs only for
> remaining two ways you have to connect user to media server and catch DTMF
> from media track.
>
> Oleg
>
> 2009/11/17 Suranga <suranga.her...@gmail.com>

Bartosz Baranowski

unread,
Nov 17, 2009, 4:08:36 AM11/17/09
to mobicent...@googlegroups.com
Please browse exaples first:
http://code.google.com/p/mobicents/source/browse/#svn/trunk/servers/sip-servlets/sip-servlets-examples
http://code.google.com/p/mobicents/source/browse/trunk/servers/sip-servlets/sip-servlets-examples/click-to-call/src/main/java/org/mobicents/servlet/sip/example/SimpleSipServlet.java
for code more on jsip layer see SLEE examples if there is need to unrestand headers.
--
Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.

Jean Deruelle

unread,
Nov 17, 2009, 4:08:42 AM11/17/09
to mobicent...@googlegroups.com
request.getSession().createRequest("BYE").send(); should do it

On Tue, Nov 17, 2009 at 10:02 AM, Suranga <suranga...@gmail.com> wrote:

Suranga

unread,
Nov 18, 2009, 5:13:14 AM11/18/09
to mobicents-public
Thank you all very much for this it is working now ...

Further I want to know that is mobicent provided a feature such that
when user ignore the call that he receives whether it automatically
generate call again after defined time. Also if it is not possible
could you please explain me how I can detect whether user igoner the
call so that I can think a way to handle it.

Many Thanks,
Suranga


On Nov 17, 3:08 pm, Jean Deruelle <jean.derue...@gmail.com> wrote:
> request.getSession().createRequest("BYE").send(); should do it
>

Oleg Kulikov

unread,
Nov 18, 2009, 5:16:15 AM11/18/09
to mobicent...@googlegroups.com
You can handle RINGING timeout.


2009/11/18 Suranga <suranga...@gmail.com>

Suranga

unread,
Nov 18, 2009, 5:34:19 AM11/18/09
to mobicents-public
Could you give me a URL for an example which describes same scenario

RINGING timeout

On Nov 18, 4:16 pm, Oleg Kulikov <oleg.kulik...@gmail.com> wrote:
> You can handle RINGING timeout.
>
> 2009/11/18 Suranga <suranga.her...@gmail.com>

Oleg Kulikov

unread,
Nov 18, 2009, 5:36:31 AM11/18/09
to mobicent...@googlegroups.com
take a look at any example. each call handles ringing state. 

2009/11/18 Suranga <suranga...@gmail.com>

Jean Deruelle

unread,
Nov 18, 2009, 5:38:42 AM11/18/09
to mobicent...@googlegroups.com
If the user ignore the call (ie INVITE) Mobicents Sip Servlets will automatically deliver a 408 response to the application, notifying the app that the request timedout.
Just override doErrorResponse  in your SipServlet and handle the 408 status code response.

Jean

Suranga

unread,
Nov 19, 2009, 1:40:31 AM11/19/09
to mobicents-public
Thanks for the Help I managed to do the work as expected.

On Nov 18, 4:38 pm, Jean Deruelle <jean.derue...@gmail.com> wrote:
> If the user ignore the call (ie INVITE) Mobicents Sip Servlets will
> automatically deliver a 408 response to the application, notifying the app
> that the request timedout.
> Just override doErrorResponse  in your SipServlet and handle the 408 status
> code response.
>
> Jean
>
Reply all
Reply to author
Forward
0 new messages