opensipstack-devel Mailing List for OpenSIPStack (Page 5)
Brought to you by:
joegenbaclor
You can subscribe to this list here.
2006 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(5) |
Jun
(12) |
Jul
(4) |
Aug
(3) |
Sep
(24) |
Oct
(45) |
Nov
(41) |
Dec
(67) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(51) |
Feb
(93) |
Mar
(54) |
Apr
(76) |
May
(114) |
Jun
(133) |
Jul
(124) |
Aug
(180) |
Sep
(53) |
Oct
(41) |
Nov
(109) |
Dec
(92) |
2008 |
Jan
(52) |
Feb
(40) |
Mar
(29) |
Apr
(40) |
May
(83) |
Jun
(68) |
Jul
(30) |
Aug
(72) |
Sep
(50) |
Oct
(48) |
Nov
(25) |
Dec
(80) |
2009 |
Jan
(9) |
Feb
(2) |
Mar
(32) |
Apr
(67) |
May
|
Jun
(7) |
Jul
(7) |
Aug
(4) |
Sep
(3) |
Oct
|
Nov
(6) |
Dec
(2) |
2010 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
(10) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(5) |
Dec
|
2011 |
Jan
|
Feb
|
Mar
(1) |
Apr
(2) |
May
(2) |
Jun
|
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ramu <con...@gm...> - 2009-04-14 04:58:53
|
Hi, Thanks for your quick reply. I am here with attaching level 5 log files 1) opensbc-invite-private-contact.zip file, it shows ACK problem (ACK is going to private contact) 2) opensbc-register.zip file, it shows REGISTER log file. On Tue, Apr 14, 2009 at 6:38 AM, Joegen Baclor <joe...@gm...>wrote: > I don't get it. ACK is a mid-dialog request and has nothing to do with the > Registration contact. The registration contact would only be significant > when routing INVITE. The fact that the call reaches the destination UA > proves that everything is in order as far as routing through the registrar > is concerned. Please send an ethereal capture as well as the level 5 log > of OpenSBC so we can see what is exactly happening to the ACK. > > Joegen > > -------------------------------------------------- > From: "Ramu" <con...@gm...> > Sent: Tuesday, April 14, 2009 1:05 AM > To: <ope...@li...> > Subject: [OpenSIPStack] OpenSBC UpperRegistration Query > > > Hi, > > > > We are using OpenSBC in upper registration mode. > > > > When we register phones OpenSBC storing private contact (please see the > > attachment) > > > > As it is storing private contact when we try to make calls to registered > > user ACK is going to private contact which is not reaching phone. > > > > Please see full details of this problem in below thread. > > > > http://www.opensourcesip.org:8080/clearspacex/message/9442 > > > > I appreciate your hep. > > > > Thanks, > > Ramu > > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > High Quality Requirements in a Collaborative Environment. > > Download a free trial of Rational Requirements Composer Now! > > http://p.sf.net/sfu/www-ibm-com > > > > > _______________________________________________ > > opensipstack-devel mailing list > > ope...@li... > > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > > > > > > > No virus found in this incoming message. > > Checked by AVG - www.avg.com > > Version: 8.0.238 / Virus Database: 270.11.54/2055 - Release Date: > 04/12/09 > > 13:14:00 > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > -- Ramu |
From: Joegen B. <joe...@gm...> - 2009-04-14 01:08:21
|
I don't get it. ACK is a mid-dialog request and has nothing to do with the Registration contact. The registration contact would only be significant when routing INVITE. The fact that the call reaches the destination UA proves that everything is in order as far as routing through the registrar is concerned. Please send an ethereal capture as well as the level 5 log of OpenSBC so we can see what is exactly happening to the ACK. Joegen -------------------------------------------------- From: "Ramu" <con...@gm...> Sent: Tuesday, April 14, 2009 1:05 AM To: <ope...@li...> Subject: [OpenSIPStack] OpenSBC UpperRegistration Query > Hi, > > We are using OpenSBC in upper registration mode. > > When we register phones OpenSBC storing private contact (please see the > attachment) > > As it is storing private contact when we try to make calls to registered > user ACK is going to private contact which is not reaching phone. > > Please see full details of this problem in below thread. > > http://www.opensourcesip.org:8080/clearspacex/message/9442 > > I appreciate your hep. > > Thanks, > Ramu > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.54/2055 - Release Date: 04/12/09 > 13:14:00 > |
From: Ramu <con...@gm...> - 2009-04-13 17:05:55
|
Hi, We are using OpenSBC in upper registration mode. When we register phones OpenSBC storing private contact (please see the attachment) As it is storing private contact when we try to make calls to registered user ACK is going to private contact which is not reaching phone. Please see full details of this problem in below thread. http://www.opensourcesip.org:8080/clearspacex/message/9442 I appreciate your hep. Thanks, Ramu |
From: Joegen B. <joe...@gm...> - 2009-04-13 10:29:11
|
In that case see Registrar.cxx:191 void Registrar::OnReceivedMessage( const SIPMessage & message, SIPTransaction * transaction ); in particular, the code block Contact contact; Registration::RequestAction action = registration->ProcessRequest( message, contact ); if( action == Registration::Accept ) { LOG_CONTEXT( LogDetail(), message.GetCallId(), "*** LOCAL REG *** Registration Accepted" ); SIPMessage * response = new SIPMessage(); message.CreateResponse( *response, SIPMessage::Code200_Ok ); if( contact.GetSize() > 0 ) { ContactList clist; clist.Append( contact ); response->SetContactList( clist ); } transaction->EnqueueEvent(new SIPEvent( response )); } From: kishore kumar Sent: Monday, April 13, 2009 6:00 PM To: Joegen Baclor ; ope...@li... Subject: Re: [OpenSIPStack] query regarding Response 200_OK i am running opesbc as server application using the command:#./opensbc -d -p pidfile.txt . in this server application from where the server application is sending 200_ok. On Mon, Apr 13, 2009 at 10:38 AM, Joegen Baclor <joe...@gm...> wrote: -------------------------------------------------- From: "kishore kumar" <kk...@gm...> Sent: Monday, April 13, 2009 12:28 PM To: "Joegen Baclor" <jo...@op...>; <ope...@li...> Subject: Re: [OpenSIPStack] query regarding Response 200_OK > On server side i am running opensipstack and sending REGISTER from > TestRegistration application as client application i am getting 200_OK > from > the stack. > > my question is from which part of the stack i am getting 200_ok. So that i > know which call back method is calling in the stack. I am almost ready to give up. OpenSIPStack is not an application. It's a library. It won't send 200 Ok by itself. Can you just publish the server code so we have something in common to look at? > > One more Question is is there any client application for sending and > receiving Instant messages to work with opensipstack? as we have sjphone > for > call control application. OSSPhone and ATLSIP > > On Mon, Apr 13, 2009 at 9:27 AM, Joegen Baclor > <joe...@gm...>wrote: > >> TestRegistration is a client program. it doesn't send a 200 Ok. What >> application is running on the server side? >> >> -------------------------------------------------- >> From: "kishore kumar" <kk...@gm...> >> Sent: Monday, April 13, 2009 11:45 AM >> To: "Joegen Baclor" <jb...@so...>; >> <ope...@li...> >> Subject: Re: [OpenSIPStack] query regarding Response 200_OK >> >> > Yes, i am running TestRegestration in opensbc/Tools/TestRegistration... >> > >> > On Mon, Apr 13, 2009 at 6:08 AM, Joegen Baclor >> > <joe...@gm...>wrote: >> > >> >> What application is running as the registrar? Is it OpenSBC? >> >> >> >> -------------------------------------------------- >> >> From: "kishore kumar" <kk...@gm...> >> >> Sent: Wednesday, April 08, 2009 8:49 PM >> >> To: <ope...@li...> >> >> Subject: [OpenSIPStack] query regarding Response 200_OK >> >> >> >> > Hi all, >> >> > >> >> > Can anyone tell me from where we are sending 200_ok message when we >> are >> >> > getting the REGISTER call to the stack. >> >> > >> >> > i am running stack on 2 machines and sending REGISTER message using >> the >> >> > TestRegestration application, from one machine to another machine. i >> am >> >> > able >> >> > to get the response as 200_ok from the another machine, but i am not >> >> > able >> >> > to >> >> > find in which part of the stack sending this 200_OK response. >> >> > >> >> > >> >> > can any one of you clear this doubt please.. >> >> > >> >> > BR, >> >> > Kishore. >> >> > >> >> >> ------------------------------------------------------------------------------ >> >> > This SF.net email is sponsored by: >> >> > High Quality Requirements in a Collaborative Environment. >> >> > Download a free trial of Rational Requirements Composer Now! >> >> > http://p.sf.net/sfu/www-ibm-com >> >> > _______________________________________________ >> >> > opensipstack-devel mailing list >> >> > ope...@li... >> >> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> >> >> >> >> > >> >> > No virus found in this incoming message. >> >> > Checked by AVG - www.avg.com >> >> > Version: 8.0.238 / Virus Database: 270.11.53/2054 - Release Date: >> >> 04/11/09 >> >> > 10:51:00 >> >> > >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> This SF.net email is sponsored by: >> >> High Quality Requirements in a Collaborative Environment. >> >> Download a free trial of Rational Requirements Composer Now! >> >> http://p.sf.net/sfu/www-ibm-com >> >> _______________________________________________ >> >> opensipstack-devel mailing list >> >> ope...@li... >> >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> > >> ------------------------------------------------------------------------------ >> > This SF.net email is sponsored by: >> > High Quality Requirements in a Collaborative Environment. >> > Download a free trial of Rational Requirements Composer Now! >> > http://p.sf.net/sfu/www-ibm-com >> > _______________________________________________ >> > opensipstack-devel mailing list >> > ope...@li... >> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> > >> >> >> >> > >> > No virus found in this incoming message. >> > Checked by AVG - www.avg.com >> > Version: 8.0.238 / Virus Database: 270.11.54/2055 - Release Date: >> 04/12/09 >> > 13:14:00 >> > >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.54/2055 - Release Date: 04/12/09 > 13:14:00 > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ opensipstack-devel mailing list ope...@li... https://lists.sourceforge.net/lists/listinfo/opensipstack-devel -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.11.54/2055 - Release Date: 04/12/09 13:14:00 |
From: kishore k. <kk...@gm...> - 2009-04-13 10:00:08
|
i am running opesbc as server application using the command:#./opensbc -d -p pidfile.txt . in this server application from where the server application is sending 200_ok. On Mon, Apr 13, 2009 at 10:38 AM, Joegen Baclor <joe...@gm...>wrote: > -------------------------------------------------- > From: "kishore kumar" <kk...@gm...> > Sent: Monday, April 13, 2009 12:28 PM > To: "Joegen Baclor" <jo...@op...>; > <ope...@li...> > Subject: Re: [OpenSIPStack] query regarding Response 200_OK > > > On server side i am running opensipstack and sending REGISTER from > > TestRegistration application as client application i am getting 200_OK > > from > > the stack. > > > > my question is from which part of the stack i am getting 200_ok. So that > i > > know which call back method is calling in the stack. > > I am almost ready to give up. OpenSIPStack is not an application. It's a > library. It won't send 200 Ok by itself. Can you just publish the server > code so we have something in common to look at? > > > > > One more Question is is there any client application for sending and > > receiving Instant messages to work with opensipstack? as we have sjphone > > for > > call control application. > > OSSPhone and ATLSIP > > > > > > On Mon, Apr 13, 2009 at 9:27 AM, Joegen Baclor > > <joe...@gm...>wrote: > > > >> TestRegistration is a client program. it doesn't send a 200 Ok. What > >> application is running on the server side? > >> > >> -------------------------------------------------- > >> From: "kishore kumar" <kk...@gm...> > >> Sent: Monday, April 13, 2009 11:45 AM > >> To: "Joegen Baclor" <jb...@so...>; > >> <ope...@li...> > >> Subject: Re: [OpenSIPStack] query regarding Response 200_OK > >> > >> > Yes, i am running TestRegestration in > opensbc/Tools/TestRegistration... > >> > > >> > On Mon, Apr 13, 2009 at 6:08 AM, Joegen Baclor > >> > <joe...@gm...>wrote: > >> > > >> >> What application is running as the registrar? Is it OpenSBC? > >> >> > >> >> -------------------------------------------------- > >> >> From: "kishore kumar" <kk...@gm...> > >> >> Sent: Wednesday, April 08, 2009 8:49 PM > >> >> To: <ope...@li...> > >> >> Subject: [OpenSIPStack] query regarding Response 200_OK > >> >> > >> >> > Hi all, > >> >> > > >> >> > Can anyone tell me from where we are sending 200_ok message when we > >> are > >> >> > getting the REGISTER call to the stack. > >> >> > > >> >> > i am running stack on 2 machines and sending REGISTER message using > >> the > >> >> > TestRegestration application, from one machine to another machine. > i > >> am > >> >> > able > >> >> > to get the response as 200_ok from the another machine, but i am > not > >> >> > able > >> >> > to > >> >> > find in which part of the stack sending this 200_OK response. > >> >> > > >> >> > > >> >> > can any one of you clear this doubt please.. > >> >> > > >> >> > BR, > >> >> > Kishore. > >> >> > > >> >> > >> > ------------------------------------------------------------------------------ > >> >> > This SF.net email is sponsored by: > >> >> > High Quality Requirements in a Collaborative Environment. > >> >> > Download a free trial of Rational Requirements Composer Now! > >> >> > http://p.sf.net/sfu/www-ibm-com > >> >> > _______________________________________________ > >> >> > opensipstack-devel mailing list > >> >> > ope...@li... > >> >> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >> >> > >> >> > >> >> > >> >> > > >> >> > No virus found in this incoming message. > >> >> > Checked by AVG - www.avg.com > >> >> > Version: 8.0.238 / Virus Database: 270.11.53/2054 - Release Date: > >> >> 04/11/09 > >> >> > 10:51:00 > >> >> > > >> >> > >> >> > >> >> > >> > ------------------------------------------------------------------------------ > >> >> This SF.net email is sponsored by: > >> >> High Quality Requirements in a Collaborative Environment. > >> >> Download a free trial of Rational Requirements Composer Now! > >> >> http://p.sf.net/sfu/www-ibm-com > >> >> _______________________________________________ > >> >> opensipstack-devel mailing list > >> >> ope...@li... > >> >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >> >> > >> > > >> > ------------------------------------------------------------------------------ > >> > This SF.net email is sponsored by: > >> > High Quality Requirements in a Collaborative Environment. > >> > Download a free trial of Rational Requirements Composer Now! > >> > http://p.sf.net/sfu/www-ibm-com > >> > _______________________________________________ > >> > opensipstack-devel mailing list > >> > ope...@li... > >> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >> > > >> > >> > >> > >> > > >> > No virus found in this incoming message. > >> > Checked by AVG - www.avg.com > >> > Version: 8.0.238 / Virus Database: 270.11.54/2055 - Release Date: > >> 04/12/09 > >> > 13:14:00 > >> > > >> > >> > >> > ------------------------------------------------------------------------------ > >> This SF.net email is sponsored by: > >> High Quality Requirements in a Collaborative Environment. > >> Download a free trial of Rational Requirements Composer Now! > >> http://p.sf.net/sfu/www-ibm-com > >> _______________________________________________ > >> opensipstack-devel mailing list > >> ope...@li... > >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >> > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > High Quality Requirements in a Collaborative Environment. > > Download a free trial of Rational Requirements Composer Now! > > http://p.sf.net/sfu/www-ibm-com > > _______________________________________________ > > opensipstack-devel mailing list > > ope...@li... > > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > > > > > No virus found in this incoming message. > > Checked by AVG - www.avg.com > > Version: 8.0.238 / Virus Database: 270.11.54/2055 - Release Date: > 04/12/09 > > 13:14:00 > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > |
From: Joegen B. <joe...@gm...> - 2009-04-13 05:08:23
|
-------------------------------------------------- From: "kishore kumar" <kk...@gm...> Sent: Monday, April 13, 2009 12:28 PM To: "Joegen Baclor" <jo...@op...>; <ope...@li...> Subject: Re: [OpenSIPStack] query regarding Response 200_OK > On server side i am running opensipstack and sending REGISTER from > TestRegistration application as client application i am getting 200_OK > from > the stack. > > my question is from which part of the stack i am getting 200_ok. So that i > know which call back method is calling in the stack. I am almost ready to give up. OpenSIPStack is not an application. It's a library. It won't send 200 Ok by itself. Can you just publish the server code so we have something in common to look at? > > One more Question is is there any client application for sending and > receiving Instant messages to work with opensipstack? as we have sjphone > for > call control application. OSSPhone and ATLSIP > > On Mon, Apr 13, 2009 at 9:27 AM, Joegen Baclor > <joe...@gm...>wrote: > >> TestRegistration is a client program. it doesn't send a 200 Ok. What >> application is running on the server side? >> >> -------------------------------------------------- >> From: "kishore kumar" <kk...@gm...> >> Sent: Monday, April 13, 2009 11:45 AM >> To: "Joegen Baclor" <jb...@so...>; >> <ope...@li...> >> Subject: Re: [OpenSIPStack] query regarding Response 200_OK >> >> > Yes, i am running TestRegestration in opensbc/Tools/TestRegistration... >> > >> > On Mon, Apr 13, 2009 at 6:08 AM, Joegen Baclor >> > <joe...@gm...>wrote: >> > >> >> What application is running as the registrar? Is it OpenSBC? >> >> >> >> -------------------------------------------------- >> >> From: "kishore kumar" <kk...@gm...> >> >> Sent: Wednesday, April 08, 2009 8:49 PM >> >> To: <ope...@li...> >> >> Subject: [OpenSIPStack] query regarding Response 200_OK >> >> >> >> > Hi all, >> >> > >> >> > Can anyone tell me from where we are sending 200_ok message when we >> are >> >> > getting the REGISTER call to the stack. >> >> > >> >> > i am running stack on 2 machines and sending REGISTER message using >> the >> >> > TestRegestration application, from one machine to another machine. i >> am >> >> > able >> >> > to get the response as 200_ok from the another machine, but i am not >> >> > able >> >> > to >> >> > find in which part of the stack sending this 200_OK response. >> >> > >> >> > >> >> > can any one of you clear this doubt please.. >> >> > >> >> > BR, >> >> > Kishore. >> >> > >> >> >> ------------------------------------------------------------------------------ >> >> > This SF.net email is sponsored by: >> >> > High Quality Requirements in a Collaborative Environment. >> >> > Download a free trial of Rational Requirements Composer Now! >> >> > http://p.sf.net/sfu/www-ibm-com >> >> > _______________________________________________ >> >> > opensipstack-devel mailing list >> >> > ope...@li... >> >> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> >> >> >> >> > >> >> > No virus found in this incoming message. >> >> > Checked by AVG - www.avg.com >> >> > Version: 8.0.238 / Virus Database: 270.11.53/2054 - Release Date: >> >> 04/11/09 >> >> > 10:51:00 >> >> > >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> This SF.net email is sponsored by: >> >> High Quality Requirements in a Collaborative Environment. >> >> Download a free trial of Rational Requirements Composer Now! >> >> http://p.sf.net/sfu/www-ibm-com >> >> _______________________________________________ >> >> opensipstack-devel mailing list >> >> ope...@li... >> >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> > >> ------------------------------------------------------------------------------ >> > This SF.net email is sponsored by: >> > High Quality Requirements in a Collaborative Environment. >> > Download a free trial of Rational Requirements Composer Now! >> > http://p.sf.net/sfu/www-ibm-com >> > _______________________________________________ >> > opensipstack-devel mailing list >> > ope...@li... >> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> > >> >> >> >> > >> > No virus found in this incoming message. >> > Checked by AVG - www.avg.com >> > Version: 8.0.238 / Virus Database: 270.11.54/2055 - Release Date: >> 04/12/09 >> > 13:14:00 >> > >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.54/2055 - Release Date: 04/12/09 > 13:14:00 > |
From: kishore k. <kk...@gm...> - 2009-04-13 04:28:56
|
On server side i am running opensipstack and sending REGISTER from TestRegistration application as client application i am getting 200_OK from the stack. my question is from which part of the stack i am getting 200_ok. So that i know which call back method is calling in the stack. One more Question is is there any client application for sending and receiving Instant messages to work with opensipstack? as we have sjphone for call control application. On Mon, Apr 13, 2009 at 9:27 AM, Joegen Baclor <joe...@gm...>wrote: > TestRegistration is a client program. it doesn't send a 200 Ok. What > application is running on the server side? > > -------------------------------------------------- > From: "kishore kumar" <kk...@gm...> > Sent: Monday, April 13, 2009 11:45 AM > To: "Joegen Baclor" <jb...@so...>; > <ope...@li...> > Subject: Re: [OpenSIPStack] query regarding Response 200_OK > > > Yes, i am running TestRegestration in opensbc/Tools/TestRegistration... > > > > On Mon, Apr 13, 2009 at 6:08 AM, Joegen Baclor > > <joe...@gm...>wrote: > > > >> What application is running as the registrar? Is it OpenSBC? > >> > >> -------------------------------------------------- > >> From: "kishore kumar" <kk...@gm...> > >> Sent: Wednesday, April 08, 2009 8:49 PM > >> To: <ope...@li...> > >> Subject: [OpenSIPStack] query regarding Response 200_OK > >> > >> > Hi all, > >> > > >> > Can anyone tell me from where we are sending 200_ok message when we > are > >> > getting the REGISTER call to the stack. > >> > > >> > i am running stack on 2 machines and sending REGISTER message using > the > >> > TestRegestration application, from one machine to another machine. i > am > >> > able > >> > to get the response as 200_ok from the another machine, but i am not > >> > able > >> > to > >> > find in which part of the stack sending this 200_OK response. > >> > > >> > > >> > can any one of you clear this doubt please.. > >> > > >> > BR, > >> > Kishore. > >> > > >> > ------------------------------------------------------------------------------ > >> > This SF.net email is sponsored by: > >> > High Quality Requirements in a Collaborative Environment. > >> > Download a free trial of Rational Requirements Composer Now! > >> > http://p.sf.net/sfu/www-ibm-com > >> > _______________________________________________ > >> > opensipstack-devel mailing list > >> > ope...@li... > >> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >> > >> > >> > >> > > >> > No virus found in this incoming message. > >> > Checked by AVG - www.avg.com > >> > Version: 8.0.238 / Virus Database: 270.11.53/2054 - Release Date: > >> 04/11/09 > >> > 10:51:00 > >> > > >> > >> > >> > ------------------------------------------------------------------------------ > >> This SF.net email is sponsored by: > >> High Quality Requirements in a Collaborative Environment. > >> Download a free trial of Rational Requirements Composer Now! > >> http://p.sf.net/sfu/www-ibm-com > >> _______________________________________________ > >> opensipstack-devel mailing list > >> ope...@li... > >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >> > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > High Quality Requirements in a Collaborative Environment. > > Download a free trial of Rational Requirements Composer Now! > > http://p.sf.net/sfu/www-ibm-com > > _______________________________________________ > > opensipstack-devel mailing list > > ope...@li... > > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > > > > > > > No virus found in this incoming message. > > Checked by AVG - www.avg.com > > Version: 8.0.238 / Virus Database: 270.11.54/2055 - Release Date: > 04/12/09 > > 13:14:00 > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > |
From: Joegen B. <joe...@gm...> - 2009-04-13 03:57:22
|
TestRegistration is a client program. it doesn't send a 200 Ok. What application is running on the server side? -------------------------------------------------- From: "kishore kumar" <kk...@gm...> Sent: Monday, April 13, 2009 11:45 AM To: "Joegen Baclor" <jb...@so...>; <ope...@li...> Subject: Re: [OpenSIPStack] query regarding Response 200_OK > Yes, i am running TestRegestration in opensbc/Tools/TestRegistration... > > On Mon, Apr 13, 2009 at 6:08 AM, Joegen Baclor > <joe...@gm...>wrote: > >> What application is running as the registrar? Is it OpenSBC? >> >> -------------------------------------------------- >> From: "kishore kumar" <kk...@gm...> >> Sent: Wednesday, April 08, 2009 8:49 PM >> To: <ope...@li...> >> Subject: [OpenSIPStack] query regarding Response 200_OK >> >> > Hi all, >> > >> > Can anyone tell me from where we are sending 200_ok message when we are >> > getting the REGISTER call to the stack. >> > >> > i am running stack on 2 machines and sending REGISTER message using the >> > TestRegestration application, from one machine to another machine. i am >> > able >> > to get the response as 200_ok from the another machine, but i am not >> > able >> > to >> > find in which part of the stack sending this 200_OK response. >> > >> > >> > can any one of you clear this doubt please.. >> > >> > BR, >> > Kishore. >> > >> ------------------------------------------------------------------------------ >> > This SF.net email is sponsored by: >> > High Quality Requirements in a Collaborative Environment. >> > Download a free trial of Rational Requirements Composer Now! >> > http://p.sf.net/sfu/www-ibm-com >> > _______________________________________________ >> > opensipstack-devel mailing list >> > ope...@li... >> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> > >> > No virus found in this incoming message. >> > Checked by AVG - www.avg.com >> > Version: 8.0.238 / Virus Database: 270.11.53/2054 - Release Date: >> 04/11/09 >> > 10:51:00 >> > >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.54/2055 - Release Date: 04/12/09 > 13:14:00 > |
From: kishore k. <kk...@gm...> - 2009-04-13 03:45:34
|
Yes, i am running TestRegestration in opensbc/Tools/TestRegistration... On Mon, Apr 13, 2009 at 6:08 AM, Joegen Baclor <joe...@gm...>wrote: > What application is running as the registrar? Is it OpenSBC? > > -------------------------------------------------- > From: "kishore kumar" <kk...@gm...> > Sent: Wednesday, April 08, 2009 8:49 PM > To: <ope...@li...> > Subject: [OpenSIPStack] query regarding Response 200_OK > > > Hi all, > > > > Can anyone tell me from where we are sending 200_ok message when we are > > getting the REGISTER call to the stack. > > > > i am running stack on 2 machines and sending REGISTER message using the > > TestRegestration application, from one machine to another machine. i am > > able > > to get the response as 200_ok from the another machine, but i am not able > > to > > find in which part of the stack sending this 200_OK response. > > > > > > can any one of you clear this doubt please.. > > > > BR, > > Kishore. > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > High Quality Requirements in a Collaborative Environment. > > Download a free trial of Rational Requirements Composer Now! > > http://p.sf.net/sfu/www-ibm-com > > _______________________________________________ > > opensipstack-devel mailing list > > ope...@li... > > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > > > > > No virus found in this incoming message. > > Checked by AVG - www.avg.com > > Version: 8.0.238 / Virus Database: 270.11.53/2054 - Release Date: > 04/11/09 > > 10:51:00 > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > |
From: Joegen B. <joe...@gm...> - 2009-04-13 00:38:48
|
What application is running as the registrar? Is it OpenSBC? -------------------------------------------------- From: "kishore kumar" <kk...@gm...> Sent: Wednesday, April 08, 2009 8:49 PM To: <ope...@li...> Subject: [OpenSIPStack] query regarding Response 200_OK > Hi all, > > Can anyone tell me from where we are sending 200_ok message when we are > getting the REGISTER call to the stack. > > i am running stack on 2 machines and sending REGISTER message using the > TestRegestration application, from one machine to another machine. i am > able > to get the response as 200_ok from the another machine, but i am not able > to > find in which part of the stack sending this 200_OK response. > > > can any one of you clear this doubt please.. > > BR, > Kishore. > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.53/2054 - Release Date: 04/11/09 > 10:51:00 > |
From: kishore k. <kk...@gm...> - 2009-04-08 12:49:48
|
Hi all, Can anyone tell me from where we are sending 200_ok message when we are getting the REGISTER call to the stack. i am running stack on 2 machines and sending REGISTER message using the TestRegestration application, from one machine to another machine. i am able to get the response as 200_ok from the another machine, but i am not able to find in which part of the stack sending this 200_OK response. can any one of you clear this doubt please.. BR, Kishore. |
From: Joegen B. <joe...@gm...> - 2009-04-07 12:30:09
|
Hi, Sorry for the late response. You can get incoming SIPMessages in SIPUserAgent::ProcessEvent(). If you are using TestRegistration as your basis, then TestRegistration::ProcessEvent() is where you should look at. Add the following code inside that function to get the BYE request if( event->GetType() == SIPStackEvent::Message ) { SIPMessageArrival & msgEvent = (SIPMessageArrival&)*event; SIPMessage bye = msgEvent.GetMessage(); SIPMessage ok; bye.CreateResponse( SIPMessage::Code200_Ok, ok ); SendRequest( ok ); } HTH, Joegen -------------------------------------------------- From: "Jyothsna Banda" <jyo...@gm...> Sent: Tuesday, April 07, 2009 3:10 PM To: "Joegen Baclor" <jb...@so...> Cc: <ope...@li...> Subject: Re: [OpenSIPStack] Call back for an Invite Response in theTestapplication > Hi All, > > Please can any one look into this issue? > > For the issue please check the below mails. > > > Br, > Jyothsna > On Mon, Apr 6, 2009 at 11:42 AM, Jyothsna Banda > <jyo...@gm...>wrote: > >> Hi Joegen, >> >> Can u help?Iam stucked at this point. >> >> Not getting call back to the test application when the BYE is sent from >> the other end(SJPhone) >> >> >> Thanks in advance >> Br, >> Jyothsna >> >> On Thu, Apr 2, 2009 at 5:59 PM, Jyothsna Banda >> <jyo...@gm... >> > wrote: >> >>> Hi Joegen, >>> >>> Yes the ACk was not formed properly. >>> >>> Now I corrected and able to send the message.Call is established. >>> >>> Now at the other end(SJPhone) call is ended.So the BYE is sent from the >>> SJPhone,Iam not getting call back to the Test application. >>> >>> Where will we i get the call back for the BYE request?I have kept a >>> break >>> point at SIPStack onreceived message also.But not received. >>> >>> >>> >>> Br, >>> Jyothsna >>> >>> >>> >>> >>> On Thu, Apr 2, 2009 at 5:06 PM, Joegen Baclor >>> <joe...@gm...>wrote: >>> >>>> You should start by reading RFC 3261. ACK should follow the rules of >>>> constructing messages within the dialog. Looking briefly at the code, >>>> the >>>> ACK that will be sent out will be missing a to-tag. This must be why >>>> the >>>> UAS is discarding the ACK. >>>> >>>> >>>> >>>> *From:* Jyothsna Banda <jyo...@gm...> >>>> *Sent:* Thursday, April 02, 2009 3:24 PM >>>> *To:* Joegen Baclor <jb...@so...> >>>> *Cc:* ope...@li... >>>> *Subject:* Re: [OpenSIPStack] Call back for an Invite Response in the >>>> Testapplication >>>> >>>> Hi Joegen, >>>> >>>> If i send the message in the below way,if we chekc in th wireshar ACK >>>> message is having >>>> CSeq as 1 INVITE only. >>>> >>>> so what i did is: >>>> >>>> >>>> Send_ACK( >>>> const SIPMessage & message) >>>> >>>> { >>>> >>>> SIPMessage ack; >>>> >>>> SIPMessage sdp; >>>> >>>> const Via & via = message.GetTopVia(); >>>> >>>> OString branch = via.GetBranch(); >>>> >>>> if( sdp.HasSDP() ) >>>> >>>> { >>>> >>>> ack.SetBody( sdp.GetBody() ); >>>> >>>> } >>>> >>>> ack.SetInterfaceAddress(via.GetAddress()); >>>> >>>> ack.SetInterfacePort(via.GetPort()); >>>> >>>> CSeq cseq; >>>> >>>> cseq.SetMethod( >>>> "ACK" ); >>>> >>>> cseq.SetSequence( message.GetCSeqNumber() ); >>>> >>>> ack.SetCSeq( cseq ); >>>> >>>> if >>>> ( message.GetTransaction() != NULL ) >>>> >>>> { >>>> >>>> SIPFSM::InviteClientTransaction * trn = >>>> dynamic_cast<SIPFSM::InviteClientTransaction*>(message.GetTransaction()); >>>> >>>> >>>> if( trn != NULL ) >>>> >>>> trn->SetFinalACK( ack ); >>>> >>>> } >>>> >>>> m_UA->GetStack().EnqueueTransportWriteEvent(ack); >>>> >>>> } >>>> >>>> but when i debug the code internally in the >>>> EnqueueTransportWriteEvent(),it is calling SIPMessage method >>>> ProcessOutBound >>>> there it is cleaning all the message varaibles and deleting the >>>> event.so the >>>> message is not at all going from one to the other end. >>>> >>>> How to proceed further?Please can u look in to this? >>>> >>>> >>>> Br, >>>> Jyothsna >>>> On Thu, Apr 2, 2009 at 11:11 AM, Jyothsna Banda < >>>> jyo...@gm...> wrote: >>>> >>>>> Hi Joegen, >>>>> >>>>> Thanks again for the quick response. >>>>> >>>>> By using that method iam sending the ACK,in wireshark it is showing >>>>> ,but >>>>> the SJphone is not receiving the ACK message? check the below sample >>>>> code >>>>> how iam sending from the test application. >>>>> >>>>> /*********** sample code ***********/ >>>>> >>>>> >>>>> OStringStream msg; >>>>> >>>>> msg << >>>>> "ACK " << "sip:" << m_Domain <<":"<<"5060"<< " SIP/2.0" << "\r\n"; >>>>> >>>>> msg << >>>>> "From: <sip:" << m_ListenerIP<< ">" << ";tag=" << >>>>> ParserTools::GenTagParameter() << "\r\n"; >>>>> >>>>> msg << >>>>> "To: <sip:" << m_ToUser << m_Domain << ">" << "\r\n"; >>>>> >>>>> msg << >>>>> "Contact: " << "<" << m_ContactURI << ">" << "\r\n"; >>>>> >>>>> msg << >>>>> "Via:" << "SIP/2.0/UDP " << m_ListenerIP <<";branch=" << >>>>> ParserTools::GenBranchParameter() << "\r\n"; >>>>> >>>>> msg << >>>>> "CSeq: 1 ACK" << "\r\n"; >>>>> >>>>> msg << >>>>> "Max-Forwards:" << "70" << "\r\n"; >>>>> >>>>> msg << >>>>> "Call-ID: " << ParserTools::GenGUID() << "\r\n"; >>>>> >>>>> msg << >>>>> "Content-Length: 0" <<"\r\n"; >>>>> >>>>> Parse( msg.str() ); >>>>> >>>>> TransactionId tid; >>>>> >>>>> m_UA->GetStack().EnqueueTransportWriteEvent(* >>>>> this); >>>>> >>>>> /************************************************************************/ >>>>> Can we use call session from test application,How to call the call >>>>> session methods? >>>>> >>>>> where it is being used? >>>>> >>>>> i think call session is having full functionality for call >>>>> establishment? >>>>> >>>>> >>>>> Can u tell me the code flow for eatblishing a call from my test >>>>> application? >>>>> >>>>> >>>>> Br, >>>>> Jyothsna >>>>> On Thu, Apr 2, 2009 at 6:03 AM, Joegen Baclor < >>>>> joe...@gm...> wrote: >>>>> >>>>>> Ahhh, I see what you are doing wrong. You don’t use >>>>>> FindTransactionAndAddEvent() to send ACK because ACK never creates a >>>>>> transaction. Instead you must use >>>>>> GetStack().EnqueueTransportWriteEvent( >>>>>> ack ); >>>>>> Look at BOOL CallSession::SendAck( const SIPMessage & response, >>>>>> constSIPMessage & sdp ) for a sample implementation. >>>>>> >>>>>> HTH, >>>>>> >>>>>> Joegen >>>>>> >>>>>> *From:* Jyothsna Banda <jyo...@gm...> >>>>>> *Sent:* Wednesday, April 01, 2009 8:41 PM >>>>>> *To:* Joegen Baclor <jb...@so...> ; >>>>>> ope...@li... >>>>>> *Subject:* Re: [OpenSIPStack] Call back for an Invite Response in the >>>>>> Testapplication >>>>>> >>>>>> >>>>>> Hi Joegen, >>>>>> >>>>>> Thanks for the reply. >>>>>> >>>>>> Iam using the same test registration application. >>>>>> >>>>>> Scenario: Sending Invite from Testapplication to SJPhone(running in >>>>>> another system) >>>>>> >>>>>> I have added few methods in Register Class for Invite,ACK and 200_OK. >>>>>> >>>>>> Instead of sending the Registration ,iam calling the Invite method >>>>>> which i have added. >>>>>> >>>>>> Find the attached Source file and XML ,reading the values from this >>>>>> file. >>>>>> >>>>>> Now iam getting call back (200OK)to onreceived message,there iam >>>>>> preparing the ACK and sending back.but ACk is not going. >>>>>> >>>>>> Please check the code and let me know whether iam doing something >>>>>> wrong >>>>>> . >>>>>> >>>>>> Br, >>>>>> Jyothsna >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Apr 1, 2009 at 5:14 PM, Joegen Baclor >>>>>> <joe...@gm... >>>>>> > wrote: >>>>>> >>>>>>> Can you publish the test application code? I want to see how you >>>>>>> are >>>>>>> sending the INVITE out so we have something in common to look at. >>>>>>> Tools/TestRegistration sample application in OpenSBC demonstrates >>>>>>> pretty >>>>>>> basic transaction callbacks. You might want to start with that as >>>>>>> well. >>>>>>> >>>>>>> >>>>>>> -------------------------------------------------- >>>>>>> From: "Jyothsna Banda" <jyo...@gm...> >>>>>>> Sent: Wednesday, April 01, 2009 5:53 PM >>>>>>> To: <ope...@li...> >>>>>>> Subject: [OpenSIPStack] Call back for an Invite Response in the >>>>>>> Testapplication >>>>>>> >>>>>>> > Hi, >>>>>>> > >>>>>>> > I have tried two scenarios for sending an Invite Request: >>>>>>> > >>>>>>> > First Scenario: >>>>>>> > >>>>>>> > Iam sending an Invite request thru test application to SJPhone >>>>>>> running on >>>>>>> > another machine. >>>>>>> > >>>>>>> > receiving the 200 Ok from Sjphone to test application. Where will >>>>>>> > we >>>>>>> get >>>>>>> > the >>>>>>> > call back in Test application, so that we can send an Ack for the >>>>>>> 200 ok >>>>>>> > response. >>>>>>> > >>>>>>> > Second Scenario: >>>>>>> > >>>>>>> > when sending the Invite message from test application to >>>>>>> OpensipStack >>>>>>> > server >>>>>>> > running on the other message, >>>>>>> > getting the 100 Trying call back in the test application >>>>>>> > Onreceived >>>>>>> > message.Here how to send the 200 ok response from test application >>>>>>> acting >>>>>>> > as >>>>>>> > a user agent server.Also how to set the test application as User >>>>>>> Agent >>>>>>> > server? >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > Can any one please help. >>>>>>> > >>>>>>> > Br, >>>>>>> > Jyothsna >>>>>>> > >>>>>>> ------------------------------------------------------------------------------ >>>>>>> > _______________________________________________ >>>>>>> > opensipstack-devel mailing list >>>>>>> > ope...@li... >>>>>>> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>>> >>>>>>> >>>>>>> >>>>>>> > >>>>>>> > No virus found in this incoming message. >>>>>>> > Checked by AVG - www.avg.com >>>>>>> > Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: >>>>>>> 03/31/09 >>>>>>> > 13:05:00 >>>>>>> > >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> _______________________________________________ >>>>>>> opensipstack-devel mailing list >>>>>>> ope...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>>> >>>>>> >>>>>> ------------------------------ >>>>>> >>>>>> >>>>>> No virus found in this incoming message. >>>>>> Checked by AVG - www.avg.com >>>>>> Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: >>>>>> 03/31/09 13:05:00 >>>>>> >>>>>> >>>>> >>>> ------------------------------ >>>> >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG - www.avg.com >>>> Version: 8.0.238 / Virus Database: 270.11.37/2036 - Release Date: >>>> 04/01/09 21:02:00 >>>> >>>> >>> >> > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.44/2044 - Release Date: 04/06/09 > 18:59:00 > |
From: Jyothsna B. <jyo...@gm...> - 2009-04-07 07:10:45
|
Hi All, Please can any one look into this issue? For the issue please check the below mails. Br, Jyothsna On Mon, Apr 6, 2009 at 11:42 AM, Jyothsna Banda <jyo...@gm...>wrote: > Hi Joegen, > > Can u help?Iam stucked at this point. > > Not getting call back to the test application when the BYE is sent from > the other end(SJPhone) > > > Thanks in advance > Br, > Jyothsna > > On Thu, Apr 2, 2009 at 5:59 PM, Jyothsna Banda <jyo...@gm... > > wrote: > >> Hi Joegen, >> >> Yes the ACk was not formed properly. >> >> Now I corrected and able to send the message.Call is established. >> >> Now at the other end(SJPhone) call is ended.So the BYE is sent from the >> SJPhone,Iam not getting call back to the Test application. >> >> Where will we i get the call back for the BYE request?I have kept a break >> point at SIPStack onreceived message also.But not received. >> >> >> >> Br, >> Jyothsna >> >> >> >> >> On Thu, Apr 2, 2009 at 5:06 PM, Joegen Baclor <joe...@gm...>wrote: >> >>> You should start by reading RFC 3261. ACK should follow the rules of >>> constructing messages within the dialog. Looking briefly at the code, the >>> ACK that will be sent out will be missing a to-tag. This must be why the >>> UAS is discarding the ACK. >>> >>> >>> >>> *From:* Jyothsna Banda <jyo...@gm...> >>> *Sent:* Thursday, April 02, 2009 3:24 PM >>> *To:* Joegen Baclor <jb...@so...> >>> *Cc:* ope...@li... >>> *Subject:* Re: [OpenSIPStack] Call back for an Invite Response in the >>> Testapplication >>> >>> Hi Joegen, >>> >>> If i send the message in the below way,if we chekc in th wireshar ACK >>> message is having >>> CSeq as 1 INVITE only. >>> >>> so what i did is: >>> >>> >>> Send_ACK( >>> const SIPMessage & message) >>> >>> { >>> >>> SIPMessage ack; >>> >>> SIPMessage sdp; >>> >>> const Via & via = message.GetTopVia(); >>> >>> OString branch = via.GetBranch(); >>> >>> if( sdp.HasSDP() ) >>> >>> { >>> >>> ack.SetBody( sdp.GetBody() ); >>> >>> } >>> >>> ack.SetInterfaceAddress(via.GetAddress()); >>> >>> ack.SetInterfacePort(via.GetPort()); >>> >>> CSeq cseq; >>> >>> cseq.SetMethod( >>> "ACK" ); >>> >>> cseq.SetSequence( message.GetCSeqNumber() ); >>> >>> ack.SetCSeq( cseq ); >>> >>> if >>> ( message.GetTransaction() != NULL ) >>> >>> { >>> >>> SIPFSM::InviteClientTransaction * trn = >>> dynamic_cast<SIPFSM::InviteClientTransaction*>(message.GetTransaction()); >>> >>> >>> if( trn != NULL ) >>> >>> trn->SetFinalACK( ack ); >>> >>> } >>> >>> m_UA->GetStack().EnqueueTransportWriteEvent(ack); >>> >>> } >>> >>> but when i debug the code internally in the >>> EnqueueTransportWriteEvent(),it is calling SIPMessage method ProcessOutBound >>> there it is cleaning all the message varaibles and deleting the event.so the >>> message is not at all going from one to the other end. >>> >>> How to proceed further?Please can u look in to this? >>> >>> >>> Br, >>> Jyothsna >>> On Thu, Apr 2, 2009 at 11:11 AM, Jyothsna Banda < >>> jyo...@gm...> wrote: >>> >>>> Hi Joegen, >>>> >>>> Thanks again for the quick response. >>>> >>>> By using that method iam sending the ACK,in wireshark it is showing ,but >>>> the SJphone is not receiving the ACK message? check the below sample code >>>> how iam sending from the test application. >>>> >>>> /*********** sample code ***********/ >>>> >>>> >>>> OStringStream msg; >>>> >>>> msg << >>>> "ACK " << "sip:" << m_Domain <<":"<<"5060"<< " SIP/2.0" << "\r\n"; >>>> >>>> msg << >>>> "From: <sip:" << m_ListenerIP<< ">" << ";tag=" << >>>> ParserTools::GenTagParameter() << "\r\n"; >>>> >>>> msg << >>>> "To: <sip:" << m_ToUser << m_Domain << ">" << "\r\n"; >>>> >>>> msg << >>>> "Contact: " << "<" << m_ContactURI << ">" << "\r\n"; >>>> >>>> msg << >>>> "Via:" << "SIP/2.0/UDP " << m_ListenerIP <<";branch=" << >>>> ParserTools::GenBranchParameter() << "\r\n"; >>>> >>>> msg << >>>> "CSeq: 1 ACK" << "\r\n"; >>>> >>>> msg << >>>> "Max-Forwards:" << "70" << "\r\n"; >>>> >>>> msg << >>>> "Call-ID: " << ParserTools::GenGUID() << "\r\n"; >>>> >>>> msg << >>>> "Content-Length: 0" <<"\r\n"; >>>> >>>> Parse( msg.str() ); >>>> >>>> TransactionId tid; >>>> >>>> m_UA->GetStack().EnqueueTransportWriteEvent(* >>>> this); >>>> >>>> /************************************************************************/ >>>> Can we use call session from test application,How to call the call >>>> session methods? >>>> >>>> where it is being used? >>>> >>>> i think call session is having full functionality for call >>>> establishment? >>>> >>>> >>>> Can u tell me the code flow for eatblishing a call from my test >>>> application? >>>> >>>> >>>> Br, >>>> Jyothsna >>>> On Thu, Apr 2, 2009 at 6:03 AM, Joegen Baclor < >>>> joe...@gm...> wrote: >>>> >>>>> Ahhh, I see what you are doing wrong. You don’t use >>>>> FindTransactionAndAddEvent() to send ACK because ACK never creates a >>>>> transaction. Instead you must use GetStack().EnqueueTransportWriteEvent( >>>>> ack ); >>>>> Look at BOOL CallSession::SendAck( const SIPMessage & response, constSIPMessage & sdp ) for a sample implementation. >>>>> >>>>> HTH, >>>>> >>>>> Joegen >>>>> >>>>> *From:* Jyothsna Banda <jyo...@gm...> >>>>> *Sent:* Wednesday, April 01, 2009 8:41 PM >>>>> *To:* Joegen Baclor <jb...@so...> ; >>>>> ope...@li... >>>>> *Subject:* Re: [OpenSIPStack] Call back for an Invite Response in the >>>>> Testapplication >>>>> >>>>> >>>>> Hi Joegen, >>>>> >>>>> Thanks for the reply. >>>>> >>>>> Iam using the same test registration application. >>>>> >>>>> Scenario: Sending Invite from Testapplication to SJPhone(running in >>>>> another system) >>>>> >>>>> I have added few methods in Register Class for Invite,ACK and 200_OK. >>>>> >>>>> Instead of sending the Registration ,iam calling the Invite method >>>>> which i have added. >>>>> >>>>> Find the attached Source file and XML ,reading the values from this >>>>> file. >>>>> >>>>> Now iam getting call back (200OK)to onreceived message,there iam >>>>> preparing the ACK and sending back.but ACk is not going. >>>>> >>>>> Please check the code and let me know whether iam doing something wrong >>>>> . >>>>> >>>>> Br, >>>>> Jyothsna >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, Apr 1, 2009 at 5:14 PM, Joegen Baclor <joe...@gm... >>>>> > wrote: >>>>> >>>>>> Can you publish the test application code? I want to see how you are >>>>>> sending the INVITE out so we have something in common to look at. >>>>>> Tools/TestRegistration sample application in OpenSBC demonstrates >>>>>> pretty >>>>>> basic transaction callbacks. You might want to start with that as >>>>>> well. >>>>>> >>>>>> >>>>>> -------------------------------------------------- >>>>>> From: "Jyothsna Banda" <jyo...@gm...> >>>>>> Sent: Wednesday, April 01, 2009 5:53 PM >>>>>> To: <ope...@li...> >>>>>> Subject: [OpenSIPStack] Call back for an Invite Response in the >>>>>> Testapplication >>>>>> >>>>>> > Hi, >>>>>> > >>>>>> > I have tried two scenarios for sending an Invite Request: >>>>>> > >>>>>> > First Scenario: >>>>>> > >>>>>> > Iam sending an Invite request thru test application to SJPhone >>>>>> running on >>>>>> > another machine. >>>>>> > >>>>>> > receiving the 200 Ok from Sjphone to test application. Where will we >>>>>> get >>>>>> > the >>>>>> > call back in Test application, so that we can send an Ack for the >>>>>> 200 ok >>>>>> > response. >>>>>> > >>>>>> > Second Scenario: >>>>>> > >>>>>> > when sending the Invite message from test application to >>>>>> OpensipStack >>>>>> > server >>>>>> > running on the other message, >>>>>> > getting the 100 Trying call back in the test application Onreceived >>>>>> > message.Here how to send the 200 ok response from test application >>>>>> acting >>>>>> > as >>>>>> > a user agent server.Also how to set the test application as User >>>>>> Agent >>>>>> > server? >>>>>> > >>>>>> > >>>>>> > >>>>>> > Can any one please help. >>>>>> > >>>>>> > Br, >>>>>> > Jyothsna >>>>>> > >>>>>> ------------------------------------------------------------------------------ >>>>>> > _______________________________________________ >>>>>> > opensipstack-devel mailing list >>>>>> > ope...@li... >>>>>> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>> >>>>>> >>>>>> >>>>>> > >>>>>> > No virus found in this incoming message. >>>>>> > Checked by AVG - www.avg.com >>>>>> > Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: >>>>>> 03/31/09 >>>>>> > 13:05:00 >>>>>> > >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> _______________________________________________ >>>>>> opensipstack-devel mailing list >>>>>> ope...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> No virus found in this incoming message. >>>>> Checked by AVG - www.avg.com >>>>> Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: >>>>> 03/31/09 13:05:00 >>>>> >>>>> >>>> >>> ------------------------------ >>> >>> >>> No virus found in this incoming message. >>> Checked by AVG - www.avg.com >>> Version: 8.0.238 / Virus Database: 270.11.37/2036 - Release Date: >>> 04/01/09 21:02:00 >>> >>> >> > |
From: Joegen B. <joe...@gm...> - 2009-04-02 12:24:06
|
see atlsip\OSSPhone\vc80-mfc \OSSPhoneDlg.cpp From: kishore kumar Sent: Thursday, April 02, 2009 8:14 PM To: Joegen Baclor ; ope...@li... Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... Hi, Great thanks for the input, i downloaded the OSSPHONE code from CVS but when i open the OSSPhone.cpp it is opening as some script. i am not able to find any code in it. I am not able to find anyone of the file in that atlsip\OSSPhone\vc80-mfc directory. can anyone look into mu issue please...... BR, Kishore. On Thu, Apr 2, 2009 at 4:53 PM, Joegen Baclor <joe...@gm...> wrote: Yes that is correct. In addition to that, you can find a sample implementation of how to use SoftPhoneInterface by looking at OSSPhone-mfc. This is a simple MFC dialog that subclasses SoftPhoneInterface. It goes with the ATLSIP module. Just download atlsip from CVS and you will find it under atlsip\OSSPhone\vc80-mfc directory. -------------------------------------------------- From: "Matthias Dreißig" <mdr...@gm...> Sent: Thursday, April 02, 2009 7:04 PM To: <ope...@li...> Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... > Hi Kishore, > > when I look at the code of this TestRegistration I think you have to add > your own callback to the method > > Scenario_Normal::OnReceivedMessage(const SIPMessage & message, > SIPTransaction * transaction) > > > Something like: > > if( message.IsResponse() ) > { > switch( message.GetStatusCode() ) > { > case( SIPMessage::Code401_Unauthorized ): > m_Reg.SendAuthenticator( message ); > break; > case( SIPMessage::Code200_Ok ): > m_Reg.StartRefreshTimer( message ); > break; > default: > m_Reg.StartRefreshTimer( 10 ); > break; > } > } > } else { > OString method = message.GetMethod().ToUpper(); > > if ( method == "MESSAGE" ) { > m_Reg.OnInstantMessageReceived(message); > } > } > > And in class REGISTER there you have to create the callback > OnInstantMessageReceived(const SIPMessage & message). > > But if you want to implement your own SIP client it is better to use the > Softphone/SoftphoneInterface from opensipstack. There are already all > callbacks and methods to send MESSAGEs and you don't have to implement > it by yourself. > > Joegen if there are any mistakes please correct me. > > Regards, > Matthias > > kishore kumar schrieb: >> Hi Matthias, >> find the answers for your questions: >> 1. How do you send the message? >> Ans: I kept one more test application called TestMessaging in >> opensbc/Tools >> just as TestRegistration. >> Using the same code in the TestRegistration.cxx. but instead of REGISTER >> method, i am sending MESSAGE method. >> >> 2. How do you use the other callbacks? >> Ans: After sending the MESSAGE method i am able to get the call back to >> void >> REGISTER::OnReceivedMessage for 200_ok from the other opensipstack which >> is >> running on another machine. >> >> 3. Are you using the OpalOSSEndPoint directly or do use the >> SoftPhone/SoftPhoneInterface? >> Ans: I am not using any Softphoe/SoftPhoneInterface on the other side. I >> am >> running one more opensipstack in other machine, to where i am sending the >> MESSAGE method. in this stack i am expecting callback at >> OpalOSSEndPoint::OnInstantMessaging(), which is not implemented yet and >> not >> able to keep the break point itself. >> >> Regards, >> Kishore. >> >> 2009/4/1 Matthias Dreißig <mdr...@gm...> >> >> >>> I have some questions so I can give you any solution for your problem. >>> >>> How do you send the message? >>> >>> How do you use the other callbacks? >>> >>> Are you using the OpalOSSEndPoint directly or do use the >>> SoftPhone/SoftPhoneInterface? >>> >>> Regards, >>> Matthias >>> >>> >>> kishore kumar schrieb: >>> >>>> Hi Matthias, >>>> >>>> Thanks for the quick reply. >>>> >>>> the call back you mentioned is not implemented yet it seems. and i am >>>> not >>>> able to keep the call back in that file. and i am explaining my >>>> scenario >>>> more clearly here. >>>> >>>> USER 1: >>>> >>>> 1. Running OpenSIPStack. >>>> 2. An application called USER 1 is registered to that stack on the same >>>> machine just as TestResgistration application. >>>> 3. Expecting callback from USER 2 which is sending MESSSAGE to USER >>>> 1(for >>>> which call back we are getting in USER 1 OpenSIPStack. and from where >>>> we >>>> >>> are >>> >>>> sending the 200_OK to USER 2)---This is the actual question. >>>> >>>> USER 2: >>>> >>>> 1. Running OpenSIPStack. >>>> 2. Sending MESSAGE to USER 1 which is already registered on another >>>> machine. >>>> 3. Got 200_ok response from USER 1. >>>> >>>> I think this description may help you people to understand the scenario >>>> clearly.. >>>> >>>> Regards, >>>> Kishore. >>>> >>>> On Wed, Apr 1, 2009 at 5:15 PM, Joegen Baclor <joe...@gm... >>>> wrote: >>>> >>>> >>>> >>>>> Yes, that is absolutely correct. >>>>> >>>>> -------------------------------------------------- >>>>> From: "Matthias Dreißig" <mdr...@gm...> >>>>> Sent: Wednesday, April 01, 2009 6:45 PM >>>>> To: <ope...@li...> >>>>> Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... >>>>> >>>>> >>>>> >>>>>> Hello Kishore, >>>>>> >>>>>> I think what you are looking for is this callback >>>>>> >>>>>> virtual void OpalOSSEndPoint::OnReceivedInstantMessage( const >>>>>> >>> SIPMessage >>> >>>>>> & message ) >>>>>> >>>>>> >>>>>> Regards, >>>>>> Matthias >>>>>> >>>>>> kishore kumar schrieb: >>>>>> >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> I am trying to send MESSAGE from the opensipstack to the another >>>>>>> opensipstack which is running on the other machine. >>>>>>> I am able to send MESSAGE and able to get the 200_OK from the other >>>>>>> machine >>>>>>> where another opensipstack is running. >>>>>>> >>>>>>> But i am not able to find the call back in opensipstack, which is >>>>>>> >>>>>>> >>>>> calling >>>>> >>>>> >>>>>>> when MESSAGE is received to other machine and from where it is >>>>>>> sending >>>>>>> the >>>>>>> 200_OK in opensipstack, >>>>>>> >>>>>>> Can anyone look in to this please. >>>>>>> >>>>>>> Regards, >>>>>>> Kishore. >>>>>>> >>>>>>> >>>>>>> >>> ------------------------------------------------------------------------------ >>> >>>>>>> _______________________________________________ >>>>>>> opensipstack-devel mailing list >>>>>>> ope...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>>> >>>>>>> >>>>>>> >>>>>> >>> ------------------------------------------------------------------------------ >>> >>>>>> _______________________________________________ >>>>>> opensipstack-devel mailing list >>>>>> ope...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>> >>>>>> >>>>> >>>>>> No virus found in this incoming message. >>>>>> Checked by AVG - www.avg.com >>>>>> Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: >>>>>> >>>>>> >>>>> 03/31/09 >>>>> >>>>> >>>>>> 13:05:00 >>>>>> >>>>>> >>>>>> >>> ------------------------------------------------------------------------------ >>> >>>>> _______________________________________________ >>>>> opensipstack-devel mailing list >>>>> ope...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>> >>>>> >>>>> >>> ------------------------------------------------------------------------------ >>> >>>> _______________________________________________ >>>> opensipstack-devel mailing list >>>> ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>> >>>> >>>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> > > ------------------------------------------------------------------------------ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.37/2036 - Release Date: 04/01/09 > 21:02:00 > ------------------------------------------------------------------------------ _______________________________________________ opensipstack-devel mailing list ope...@li... https://lists.sourceforge.net/lists/listinfo/opensipstack-devel -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.11.37/2036 - Release Date: 04/01/09 21:02:00 |
From: kishore k. <kk...@gm...> - 2009-04-02 12:14:37
|
Hi, Great thanks for the input, i downloaded the OSSPHONE code from CVS but when i open the OSSPhone.cpp it is opening as some script. i am not able to find any code in it. I am not able to find anyone of the file in that atlsip\OSSPhone\vc80-mfc directory. can anyone look into mu issue please...... BR, Kishore. On Thu, Apr 2, 2009 at 4:53 PM, Joegen Baclor <joe...@gm...>wrote: > Yes that is correct. In addition to that, you can find a sample > implementation of how to use SoftPhoneInterface by looking at OSSPhone-mfc. > This is a simple MFC dialog that subclasses SoftPhoneInterface. It goes > with the ATLSIP module. Just download atlsip from CVS and you will find it > under atlsip\OSSPhone\vc80-mfc directory. > > -------------------------------------------------- > From: "Matthias Dreißig" <mdr...@gm...> > Sent: Thursday, April 02, 2009 7:04 PM > To: <ope...@li...> > Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... > > > Hi Kishore, > > > > when I look at the code of this TestRegistration I think you have to add > > your own callback to the method > > > > Scenario_Normal::OnReceivedMessage(const SIPMessage & message, > > SIPTransaction * transaction) > > > > > > Something like: > > > > if( message.IsResponse() ) > > { > > switch( message.GetStatusCode() ) > > { > > case( SIPMessage::Code401_Unauthorized ): > > m_Reg.SendAuthenticator( message ); > > break; > > case( SIPMessage::Code200_Ok ): > > m_Reg.StartRefreshTimer( message ); > > break; > > default: > > m_Reg.StartRefreshTimer( 10 ); > > break; > > } > > } > > } else { > > OString method = message.GetMethod().ToUpper(); > > > > if ( method == "MESSAGE" ) { > > m_Reg.OnInstantMessageReceived(message); > > } > > } > > > > And in class REGISTER there you have to create the callback > > OnInstantMessageReceived(const SIPMessage & message). > > > > But if you want to implement your own SIP client it is better to use the > > Softphone/SoftphoneInterface from opensipstack. There are already all > > callbacks and methods to send MESSAGEs and you don't have to implement > > it by yourself. > > > > Joegen if there are any mistakes please correct me. > > > > Regards, > > Matthias > > > > kishore kumar schrieb: > >> Hi Matthias, > >> find the answers for your questions: > >> 1. How do you send the message? > >> Ans: I kept one more test application called TestMessaging in > >> opensbc/Tools > >> just as TestRegistration. > >> Using the same code in the TestRegistration.cxx. but instead of REGISTER > >> method, i am sending MESSAGE method. > >> > >> 2. How do you use the other callbacks? > >> Ans: After sending the MESSAGE method i am able to get the call back to > >> void > >> REGISTER::OnReceivedMessage for 200_ok from the other opensipstack which > >> is > >> running on another machine. > >> > >> 3. Are you using the OpalOSSEndPoint directly or do use the > >> SoftPhone/SoftPhoneInterface? > >> Ans: I am not using any Softphoe/SoftPhoneInterface on the other side. I > >> am > >> running one more opensipstack in other machine, to where i am sending > the > >> MESSAGE method. in this stack i am expecting callback at > >> OpalOSSEndPoint::OnInstantMessaging(), which is not implemented yet and > >> not > >> able to keep the break point itself. > >> > >> Regards, > >> Kishore. > >> > >> 2009/4/1 Matthias Dreißig <mdr...@gm...> > >> > >> > >>> I have some questions so I can give you any solution for your problem. > >>> > >>> How do you send the message? > >>> > >>> How do you use the other callbacks? > >>> > >>> Are you using the OpalOSSEndPoint directly or do use the > >>> SoftPhone/SoftPhoneInterface? > >>> > >>> Regards, > >>> Matthias > >>> > >>> > >>> kishore kumar schrieb: > >>> > >>>> Hi Matthias, > >>>> > >>>> Thanks for the quick reply. > >>>> > >>>> the call back you mentioned is not implemented yet it seems. and i am > >>>> not > >>>> able to keep the call back in that file. and i am explaining my > >>>> scenario > >>>> more clearly here. > >>>> > >>>> USER 1: > >>>> > >>>> 1. Running OpenSIPStack. > >>>> 2. An application called USER 1 is registered to that stack on the > same > >>>> machine just as TestResgistration application. > >>>> 3. Expecting callback from USER 2 which is sending MESSSAGE to USER > >>>> 1(for > >>>> which call back we are getting in USER 1 OpenSIPStack. and from where > >>>> we > >>>> > >>> are > >>> > >>>> sending the 200_OK to USER 2)---This is the actual question. > >>>> > >>>> USER 2: > >>>> > >>>> 1. Running OpenSIPStack. > >>>> 2. Sending MESSAGE to USER 1 which is already registered on another > >>>> machine. > >>>> 3. Got 200_ok response from USER 1. > >>>> > >>>> I think this description may help you people to understand the > scenario > >>>> clearly.. > >>>> > >>>> Regards, > >>>> Kishore. > >>>> > >>>> On Wed, Apr 1, 2009 at 5:15 PM, Joegen Baclor < > joe...@gm... > >>>> wrote: > >>>> > >>>> > >>>> > >>>>> Yes, that is absolutely correct. > >>>>> > >>>>> -------------------------------------------------- > >>>>> From: "Matthias Dreißig" <mdr...@gm...> > >>>>> Sent: Wednesday, April 01, 2009 6:45 PM > >>>>> To: <ope...@li...> > >>>>> Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... > >>>>> > >>>>> > >>>>> > >>>>>> Hello Kishore, > >>>>>> > >>>>>> I think what you are looking for is this callback > >>>>>> > >>>>>> virtual void OpalOSSEndPoint::OnReceivedInstantMessage( const > >>>>>> > >>> SIPMessage > >>> > >>>>>> & message ) > >>>>>> > >>>>>> > >>>>>> Regards, > >>>>>> Matthias > >>>>>> > >>>>>> kishore kumar schrieb: > >>>>>> > >>>>>> > >>>>>>> Hi All, > >>>>>>> > >>>>>>> I am trying to send MESSAGE from the opensipstack to the another > >>>>>>> opensipstack which is running on the other machine. > >>>>>>> I am able to send MESSAGE and able to get the 200_OK from the other > >>>>>>> machine > >>>>>>> where another opensipstack is running. > >>>>>>> > >>>>>>> But i am not able to find the call back in opensipstack, which is > >>>>>>> > >>>>>>> > >>>>> calling > >>>>> > >>>>> > >>>>>>> when MESSAGE is received to other machine and from where it is > >>>>>>> sending > >>>>>>> the > >>>>>>> 200_OK in opensipstack, > >>>>>>> > >>>>>>> Can anyone look in to this please. > >>>>>>> > >>>>>>> Regards, > >>>>>>> Kishore. > >>>>>>> > >>>>>>> > >>>>>>> > >>> > ------------------------------------------------------------------------------ > >>> > >>>>>>> _______________________________________________ > >>>>>>> opensipstack-devel mailing list > >>>>>>> ope...@li... > >>>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>> > ------------------------------------------------------------------------------ > >>> > >>>>>> _______________________________________________ > >>>>>> opensipstack-devel mailing list > >>>>>> ope...@li... > >>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >>>>>> > >>>>>> > >>>>> > >>>>>> No virus found in this incoming message. > >>>>>> Checked by AVG - www.avg.com > >>>>>> Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: > >>>>>> > >>>>>> > >>>>> 03/31/09 > >>>>> > >>>>> > >>>>>> 13:05:00 > >>>>>> > >>>>>> > >>>>>> > >>> > ------------------------------------------------------------------------------ > >>> > >>>>> _______________________________________________ > >>>>> opensipstack-devel mailing list > >>>>> ope...@li... > >>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >>>>> > >>>>> > >>>>> > >>> > ------------------------------------------------------------------------------ > >>> > >>>> _______________________________________________ > >>>> opensipstack-devel mailing list > >>>> ope...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >>>> > >>>> > >>>> > >>> > ------------------------------------------------------------------------------ > >>> _______________________________________________ > >>> opensipstack-devel mailing list > >>> ope...@li... > >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >>> > >>> > >> > ------------------------------------------------------------------------------ > >> _______________________________________________ > >> opensipstack-devel mailing list > >> ope...@li... > >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >> > >> > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > opensipstack-devel mailing list > > ope...@li... > > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > > > > > No virus found in this incoming message. > > Checked by AVG - www.avg.com > > Version: 8.0.238 / Virus Database: 270.11.37/2036 - Release Date: > 04/01/09 > > 21:02:00 > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > |
From: Joegen B. <joe...@gm...> - 2009-04-02 11:37:07
|
You should start by reading RFC 3261. ACK should follow the rules of constructing messages within the dialog. Looking briefly at the code, the ACK that will be sent out will be missing a to-tag. This must be why the UAS is discarding the ACK. From: Jyothsna Banda Sent: Thursday, April 02, 2009 3:24 PM To: Joegen Baclor Cc: ope...@li... Subject: Re: [OpenSIPStack] Call back for an Invite Response in the Testapplication Hi Joegen, If i send the message in the below way,if we chekc in th wireshar ACK message is having CSeq as 1 INVITE only. so what i did is: Send_ACK( const SIPMessage & message) { SIPMessage ack; SIPMessage sdp; const Via & via = message.GetTopVia(); OString branch = via.GetBranch(); if( sdp.HasSDP() ) { ack.SetBody( sdp.GetBody() ); } ack.SetInterfaceAddress(via.GetAddress()); ack.SetInterfacePort(via.GetPort()); CSeq cseq; cseq.SetMethod( "ACK" ); cseq.SetSequence( message.GetCSeqNumber() ); ack.SetCSeq( cseq ); if ( message.GetTransaction() != NULL ) { SIPFSM::InviteClientTransaction * trn = dynamic_cast<SIPFSM::InviteClientTransaction*>(message.GetTransaction()); if( trn != NULL ) trn->SetFinalACK( ack ); } m_UA->GetStack().EnqueueTransportWriteEvent(ack); } but when i debug the code internally in the EnqueueTransportWriteEvent(),it is calling SIPMessage method ProcessOutBound there it is cleaning all the message varaibles and deleting the event.so the message is not at all going from one to the other end. How to proceed further?Please can u look in to this? Br, Jyothsna On Thu, Apr 2, 2009 at 11:11 AM, Jyothsna Banda <jyo...@gm...> wrote: Hi Joegen, Thanks again for the quick response. By using that method iam sending the ACK,in wireshark it is showing ,but the SJphone is not receiving the ACK message? check the below sample code how iam sending from the test application. /*********** sample code ***********/ OStringStream msg; msg << "ACK " << "sip:" << m_Domain <<":"<<"5060"<< " SIP/2.0" << "\r\n"; msg << "From: <sip:" << m_ListenerIP<< ">" << ";tag=" << ParserTools::GenTagParameter() << "\r\n"; msg << "To: <sip:" << m_ToUser << m_Domain << ">" << "\r\n"; msg << "Contact: " << "<" << m_ContactURI << ">" << "\r\n"; msg << "Via:" << "SIP/2.0/UDP " << m_ListenerIP <<";branch=" << ParserTools::GenBranchParameter() << "\r\n"; msg << "CSeq: 1 ACK" << "\r\n"; msg << "Max-Forwards:" << "70" << "\r\n"; msg << "Call-ID: " << ParserTools::GenGUID() << "\r\n"; msg << "Content-Length: 0" <<"\r\n"; Parse( msg.str() ); TransactionId tid; m_UA->GetStack().EnqueueTransportWriteEvent(* this); /************************************************************************/ Can we use call session from test application,How to call the call session methods? where it is being used? i think call session is having full functionality for call establishment? Can u tell me the code flow for eatblishing a call from my test application? Br, Jyothsna On Thu, Apr 2, 2009 at 6:03 AM, Joegen Baclor <joe...@gm...> wrote: Ahhh, I see what you are doing wrong. You don’t use FindTransactionAndAddEvent() to send ACK because ACK never creates a transaction. Instead you must use GetStack().EnqueueTransportWriteEvent( ack ); Look at BOOL CallSession::SendAck( const SIPMessage & response, const SIPMessage & sdp ) for a sample implementation. HTH, Joegen From: Jyothsna Banda Sent: Wednesday, April 01, 2009 8:41 PM To: Joegen Baclor ; ope...@li... Subject: Re: [OpenSIPStack] Call back for an Invite Response in the Testapplication Hi Joegen, Thanks for the reply. Iam using the same test registration application. Scenario: Sending Invite from Testapplication to SJPhone(running in another system) I have added few methods in Register Class for Invite,ACK and 200_OK. Instead of sending the Registration ,iam calling the Invite method which i have added. Find the attached Source file and XML ,reading the values from this file. Now iam getting call back (200OK)to onreceived message,there iam preparing the ACK and sending back.but ACk is not going. Please check the code and let me know whether iam doing something wrong . Br, Jyothsna On Wed, Apr 1, 2009 at 5:14 PM, Joegen Baclor <joe...@gm...> wrote: Can you publish the test application code? I want to see how you are sending the INVITE out so we have something in common to look at. Tools/TestRegistration sample application in OpenSBC demonstrates pretty basic transaction callbacks. You might want to start with that as well. -------------------------------------------------- From: "Jyothsna Banda" <jyo...@gm...> Sent: Wednesday, April 01, 2009 5:53 PM To: <ope...@li...> Subject: [OpenSIPStack] Call back for an Invite Response in the Testapplication > Hi, > > I have tried two scenarios for sending an Invite Request: > > First Scenario: > > Iam sending an Invite request thru test application to SJPhone running on > another machine. > > receiving the 200 Ok from Sjphone to test application. Where will we get > the > call back in Test application, so that we can send an Ack for the 200 ok > response. > > Second Scenario: > > when sending the Invite message from test application to OpensipStack > server > running on the other message, > getting the 100 Trying call back in the test application Onreceived > message.Here how to send the 200 ok response from test application acting > as > a user agent server.Also how to set the test application as User Agent > server? > > > > Can any one please help. > > Br, > Jyothsna > ------------------------------------------------------------------------------ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: 03/31/09 > 13:05:00 > ------------------------------------------------------------------------------ _______________________________________________ opensipstack-devel mailing list ope...@li... https://lists.sourceforge.net/lists/listinfo/opensipstack-devel ---------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: 03/31/09 13:05:00 -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.11.37/2036 - Release Date: 04/01/09 21:02:00 |
From: Joegen B. <joe...@gm...> - 2009-04-02 11:23:50
|
Yes that is correct. In addition to that, you can find a sample implementation of how to use SoftPhoneInterface by looking at OSSPhone-mfc. This is a simple MFC dialog that subclasses SoftPhoneInterface. It goes with the ATLSIP module. Just download atlsip from CVS and you will find it under atlsip\OSSPhone\vc80-mfc directory. -------------------------------------------------- From: "Matthias Dreißig" <mdr...@gm...> Sent: Thursday, April 02, 2009 7:04 PM To: <ope...@li...> Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... > Hi Kishore, > > when I look at the code of this TestRegistration I think you have to add > your own callback to the method > > Scenario_Normal::OnReceivedMessage(const SIPMessage & message, > SIPTransaction * transaction) > > > Something like: > > if( message.IsResponse() ) > { > switch( message.GetStatusCode() ) > { > case( SIPMessage::Code401_Unauthorized ): > m_Reg.SendAuthenticator( message ); > break; > case( SIPMessage::Code200_Ok ): > m_Reg.StartRefreshTimer( message ); > break; > default: > m_Reg.StartRefreshTimer( 10 ); > break; > } > } > } else { > OString method = message.GetMethod().ToUpper(); > > if ( method == "MESSAGE" ) { > m_Reg.OnInstantMessageReceived(message); > } > } > > And in class REGISTER there you have to create the callback > OnInstantMessageReceived(const SIPMessage & message). > > But if you want to implement your own SIP client it is better to use the > Softphone/SoftphoneInterface from opensipstack. There are already all > callbacks and methods to send MESSAGEs and you don't have to implement > it by yourself. > > Joegen if there are any mistakes please correct me. > > Regards, > Matthias > > kishore kumar schrieb: >> Hi Matthias, >> find the answers for your questions: >> 1. How do you send the message? >> Ans: I kept one more test application called TestMessaging in >> opensbc/Tools >> just as TestRegistration. >> Using the same code in the TestRegistration.cxx. but instead of REGISTER >> method, i am sending MESSAGE method. >> >> 2. How do you use the other callbacks? >> Ans: After sending the MESSAGE method i am able to get the call back to >> void >> REGISTER::OnReceivedMessage for 200_ok from the other opensipstack which >> is >> running on another machine. >> >> 3. Are you using the OpalOSSEndPoint directly or do use the >> SoftPhone/SoftPhoneInterface? >> Ans: I am not using any Softphoe/SoftPhoneInterface on the other side. I >> am >> running one more opensipstack in other machine, to where i am sending the >> MESSAGE method. in this stack i am expecting callback at >> OpalOSSEndPoint::OnInstantMessaging(), which is not implemented yet and >> not >> able to keep the break point itself. >> >> Regards, >> Kishore. >> >> 2009/4/1 Matthias Dreißig <mdr...@gm...> >> >> >>> I have some questions so I can give you any solution for your problem. >>> >>> How do you send the message? >>> >>> How do you use the other callbacks? >>> >>> Are you using the OpalOSSEndPoint directly or do use the >>> SoftPhone/SoftPhoneInterface? >>> >>> Regards, >>> Matthias >>> >>> >>> kishore kumar schrieb: >>> >>>> Hi Matthias, >>>> >>>> Thanks for the quick reply. >>>> >>>> the call back you mentioned is not implemented yet it seems. and i am >>>> not >>>> able to keep the call back in that file. and i am explaining my >>>> scenario >>>> more clearly here. >>>> >>>> USER 1: >>>> >>>> 1. Running OpenSIPStack. >>>> 2. An application called USER 1 is registered to that stack on the same >>>> machine just as TestResgistration application. >>>> 3. Expecting callback from USER 2 which is sending MESSSAGE to USER >>>> 1(for >>>> which call back we are getting in USER 1 OpenSIPStack. and from where >>>> we >>>> >>> are >>> >>>> sending the 200_OK to USER 2)---This is the actual question. >>>> >>>> USER 2: >>>> >>>> 1. Running OpenSIPStack. >>>> 2. Sending MESSAGE to USER 1 which is already registered on another >>>> machine. >>>> 3. Got 200_ok response from USER 1. >>>> >>>> I think this description may help you people to understand the scenario >>>> clearly.. >>>> >>>> Regards, >>>> Kishore. >>>> >>>> On Wed, Apr 1, 2009 at 5:15 PM, Joegen Baclor <joe...@gm... >>>> wrote: >>>> >>>> >>>> >>>>> Yes, that is absolutely correct. >>>>> >>>>> -------------------------------------------------- >>>>> From: "Matthias Dreißig" <mdr...@gm...> >>>>> Sent: Wednesday, April 01, 2009 6:45 PM >>>>> To: <ope...@li...> >>>>> Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... >>>>> >>>>> >>>>> >>>>>> Hello Kishore, >>>>>> >>>>>> I think what you are looking for is this callback >>>>>> >>>>>> virtual void OpalOSSEndPoint::OnReceivedInstantMessage( const >>>>>> >>> SIPMessage >>> >>>>>> & message ) >>>>>> >>>>>> >>>>>> Regards, >>>>>> Matthias >>>>>> >>>>>> kishore kumar schrieb: >>>>>> >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> I am trying to send MESSAGE from the opensipstack to the another >>>>>>> opensipstack which is running on the other machine. >>>>>>> I am able to send MESSAGE and able to get the 200_OK from the other >>>>>>> machine >>>>>>> where another opensipstack is running. >>>>>>> >>>>>>> But i am not able to find the call back in opensipstack, which is >>>>>>> >>>>>>> >>>>> calling >>>>> >>>>> >>>>>>> when MESSAGE is received to other machine and from where it is >>>>>>> sending >>>>>>> the >>>>>>> 200_OK in opensipstack, >>>>>>> >>>>>>> Can anyone look in to this please. >>>>>>> >>>>>>> Regards, >>>>>>> Kishore. >>>>>>> >>>>>>> >>>>>>> >>> ------------------------------------------------------------------------------ >>> >>>>>>> _______________________________________________ >>>>>>> opensipstack-devel mailing list >>>>>>> ope...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>>> >>>>>>> >>>>>>> >>>>>> >>> ------------------------------------------------------------------------------ >>> >>>>>> _______________________________________________ >>>>>> opensipstack-devel mailing list >>>>>> ope...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>> >>>>>> >>>>> >>>>>> No virus found in this incoming message. >>>>>> Checked by AVG - www.avg.com >>>>>> Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: >>>>>> >>>>>> >>>>> 03/31/09 >>>>> >>>>> >>>>>> 13:05:00 >>>>>> >>>>>> >>>>>> >>> ------------------------------------------------------------------------------ >>> >>>>> _______________________________________________ >>>>> opensipstack-devel mailing list >>>>> ope...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>> >>>>> >>>>> >>> ------------------------------------------------------------------------------ >>> >>>> _______________________________________________ >>>> opensipstack-devel mailing list >>>> ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>> >>>> >>>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> > > ------------------------------------------------------------------------------ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.37/2036 - Release Date: 04/01/09 > 21:02:00 > |
From: Matthias D. <mdr...@gm...> - 2009-04-02 11:21:51
|
Hi, please look at the SoftPhoneInterface/SoftPhone and OSSPhone code. I think you have to instance the SoftPhoneManager by passing the SoftPhoneInterface at the construction and then you can send messages with SendInstantMessage(const PString & address, const PString & msg); I inherit one class from OpalManager and one from OpalOSSEndPoint to use and adapt the opensipstack like SoftPhoneInterface and SoftPhone classes. Matthias kishore kumar schrieb: > Hi Matthias, > > can you please tell me how to use CallSessionManager::SendInstantMessage() > method from my TestRegistration application. > i am trying to create a instance for SoftPhoneInterface and trying to access > SoftPhoneInterface::SendInstantMessage() method from my test application but > i am not able create instance for SoftPhoneInterface. > > BR, > Kishore. > > On Thu, Apr 2, 2009 at 9:48 AM, kishore kumar <kk...@gm...> wrote: > > >> Hi Matthias, >> find the answers for your questions: >> 1. How do you send the message? >> Ans: I kept one more test application called TestMessaging in opensbc/Tools >> just as TestRegistration. >> Using the same code in the TestRegistration.cxx. but instead of REGISTER >> method, i am sending MESSAGE method. >> >> 2. How do you use the other callbacks? >> Ans: After sending the MESSAGE method i am able to get the call back to >> void REGISTER::OnReceivedMessage for 200_ok from the other opensipstack >> which is running on another machine. >> >> 3. Are you using the OpalOSSEndPoint directly or do use the >> SoftPhone/SoftPhoneInterface? >> Ans: I am not using any Softphoe/SoftPhoneInterface on the other side. I am >> running one more opensipstack in other machine, to where i am sending the >> MESSAGE method. in this stack i am expecting callback at >> OpalOSSEndPoint::OnInstantMessaging(), which is not implemented yet and not >> able to keep the break point itself. >> >> Regards, >> Kishore. >> >> 2009/4/1 Matthias Dreißig <mdr...@gm...> >> >> I have some questions so I can give you any solution for your problem. >> >>> How do you send the message? >>> >>> How do you use the other callbacks? >>> >>> Are you using the OpalOSSEndPoint directly or do use the >>> SoftPhone/SoftPhoneInterface? >>> >>> Regards, >>> Matthias >>> >>> >>> kishore kumar schrieb: >>> >>>> Hi Matthias, >>>> >>>> Thanks for the quick reply. >>>> >>>> the call back you mentioned is not implemented yet it seems. and i am >>>> >>> not >>> >>>> able to keep the call back in that file. and i am explaining my >>>> >>> scenario >>> >>>> more clearly here. >>>> >>>> USER 1: >>>> >>>> 1. Running OpenSIPStack. >>>> 2. An application called USER 1 is registered to that stack on the same >>>> machine just as TestResgistration application. >>>> 3. Expecting callback from USER 2 which is sending MESSSAGE to USER >>>> >>> 1(for >>> >>>> which call back we are getting in USER 1 OpenSIPStack. and from where we >>>> >>> are >>> >>>> sending the 200_OK to USER 2)---This is the actual question. >>>> >>>> USER 2: >>>> >>>> 1. Running OpenSIPStack. >>>> 2. Sending MESSAGE to USER 1 which is already registered on another >>>> machine. >>>> 3. Got 200_ok response from USER 1. >>>> >>>> I think this description may help you people to understand the scenario >>>> clearly.. >>>> >>>> Regards, >>>> Kishore. >>>> >>>> On Wed, Apr 1, 2009 at 5:15 PM, Joegen Baclor <joe...@gm... >>>> wrote: >>>> >>>> >>>> >>>>> Yes, that is absolutely correct. >>>>> >>>>> -------------------------------------------------- >>>>> From: "Matthias Dreißig" <mdr...@gm...> >>>>> Sent: Wednesday, April 01, 2009 6:45 PM >>>>> To: <ope...@li...> >>>>> Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... >>>>> >>>>> >>>>> >>>>>> Hello Kishore, >>>>>> >>>>>> I think what you are looking for is this callback >>>>>> >>>>>> virtual void OpalOSSEndPoint::OnReceivedInstantMessage( const >>>>>> >>> SIPMessage >>> >>>>>> & message ) >>>>>> >>>>>> >>>>>> Regards, >>>>>> Matthias >>>>>> >>>>>> kishore kumar schrieb: >>>>>> >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> I am trying to send MESSAGE from the opensipstack to the another >>>>>>> opensipstack which is running on the other machine. >>>>>>> I am able to send MESSAGE and able to get the 200_OK from the other >>>>>>> machine >>>>>>> where another opensipstack is running. >>>>>>> >>>>>>> But i am not able to find the call back in opensipstack, which is >>>>>>> >>>>>>> >>>>> calling >>>>> >>>>> >>>>>>> when MESSAGE is received to other machine and from where it is >>>>>>> >>> sending >>> >>>>>>> the >>>>>>> 200_OK in opensipstack, >>>>>>> >>>>>>> Can anyone look in to this please. >>>>>>> >>>>>>> Regards, >>>>>>> Kishore. >>>>>>> >>>>>>> >>>>>>> >>> ------------------------------------------------------------------------------ >>> >>>>>>> _______________________________________________ >>>>>>> opensipstack-devel mailing list >>>>>>> ope...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>>> >>>>>>> >>>>>>> >>>>>> >>> ------------------------------------------------------------------------------ >>> >>>>>> _______________________________________________ >>>>>> opensipstack-devel mailing list >>>>>> ope...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>> >>>>>> >>>>> >>>>>> No virus found in this incoming message. >>>>>> Checked by AVG - www.avg.com >>>>>> Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: >>>>>> >>>>>> >>>>> 03/31/09 >>>>> >>>>> >>>>>> 13:05:00 >>>>>> >>>>>> >>>>>> >>> ------------------------------------------------------------------------------ >>> >>>>> _______________________________________________ >>>>> opensipstack-devel mailing list >>>>> ope...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>> >>>>> >>>>> >>> ------------------------------------------------------------------------------ >>> >>>> _______________________________________________ >>>> opensipstack-devel mailing list >>>> ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>> >>>> >>>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> >> > ------------------------------------------------------------------------------ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > |
From: kishore k. <kk...@gm...> - 2009-04-02 11:14:38
|
Hi Matthias, Thanks a lot for the reply. Yes as you said it is better to use SoftPhoneInterface, thats what i am trying to do now, But i am not able to create instance for SopftPhoneInterface from TestRegistration. Will you please help me in this issue. BR, Kishore. 2009/4/2 Matthias Dreißig <mdr...@gm...> > Hi Kishore, > > when I look at the code of this TestRegistration I think you have to add > your own callback to the method > > Scenario_Normal::OnReceivedMessage(const SIPMessage & message, > SIPTransaction * transaction) > > > Something like: > > if( message.IsResponse() ) > { > switch( message.GetStatusCode() ) > { > case( SIPMessage::Code401_Unauthorized ): > m_Reg.SendAuthenticator( message ); > break; > case( SIPMessage::Code200_Ok ): > m_Reg.StartRefreshTimer( message ); > break; > default: > m_Reg.StartRefreshTimer( 10 ); > break; > } > } > } else { > OString method = message.GetMethod().ToUpper(); > > if ( method == "MESSAGE" ) { > m_Reg.OnInstantMessageReceived(message); > } > } > > And in class REGISTER there you have to create the callback > OnInstantMessageReceived(const SIPMessage & message). > > But if you want to implement your own SIP client it is better to use the > Softphone/SoftphoneInterface from opensipstack. There are already all > callbacks and methods to send MESSAGEs and you don't have to implement > it by yourself. > > Joegen if there are any mistakes please correct me. > > Regards, > Matthias > > kishore kumar schrieb: > > Hi Matthias, > > find the answers for your questions: > > 1. How do you send the message? > > Ans: I kept one more test application called TestMessaging in > opensbc/Tools > > just as TestRegistration. > > Using the same code in the TestRegistration.cxx. but instead of REGISTER > > method, i am sending MESSAGE method. > > > > 2. How do you use the other callbacks? > > Ans: After sending the MESSAGE method i am able to get the call back to > void > > REGISTER::OnReceivedMessage for 200_ok from the other opensipstack which > is > > running on another machine. > > > > 3. Are you using the OpalOSSEndPoint directly or do use the > > SoftPhone/SoftPhoneInterface? > > Ans: I am not using any Softphoe/SoftPhoneInterface on the other side. I > am > > running one more opensipstack in other machine, to where i am sending the > > MESSAGE method. in this stack i am expecting callback at > > OpalOSSEndPoint::OnInstantMessaging(), which is not implemented yet and > not > > able to keep the break point itself. > > > > Regards, > > Kishore. > > > > 2009/4/1 Matthias Dreißig <mdr...@gm...> > > > > > >> I have some questions so I can give you any solution for your problem. > >> > >> How do you send the message? > >> > >> How do you use the other callbacks? > >> > >> Are you using the OpalOSSEndPoint directly or do use the > >> SoftPhone/SoftPhoneInterface? > >> > >> Regards, > >> Matthias > >> > >> > >> kishore kumar schrieb: > >> > >>> Hi Matthias, > >>> > >>> Thanks for the quick reply. > >>> > >>> the call back you mentioned is not implemented yet it seems. and i am > not > >>> able to keep the call back in that file. and i am explaining my > scenario > >>> more clearly here. > >>> > >>> USER 1: > >>> > >>> 1. Running OpenSIPStack. > >>> 2. An application called USER 1 is registered to that stack on the same > >>> machine just as TestResgistration application. > >>> 3. Expecting callback from USER 2 which is sending MESSSAGE to USER > 1(for > >>> which call back we are getting in USER 1 OpenSIPStack. and from where > we > >>> > >> are > >> > >>> sending the 200_OK to USER 2)---This is the actual question. > >>> > >>> USER 2: > >>> > >>> 1. Running OpenSIPStack. > >>> 2. Sending MESSAGE to USER 1 which is already registered on another > >>> machine. > >>> 3. Got 200_ok response from USER 1. > >>> > >>> I think this description may help you people to understand the scenario > >>> clearly.. > >>> > >>> Regards, > >>> Kishore. > >>> > >>> On Wed, Apr 1, 2009 at 5:15 PM, Joegen Baclor <joe...@gm... > >>> wrote: > >>> > >>> > >>> > >>>> Yes, that is absolutely correct. > >>>> > >>>> -------------------------------------------------- > >>>> From: "Matthias Dreißig" <mdr...@gm...> > >>>> Sent: Wednesday, April 01, 2009 6:45 PM > >>>> To: <ope...@li...> > >>>> Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... > >>>> > >>>> > >>>> > >>>>> Hello Kishore, > >>>>> > >>>>> I think what you are looking for is this callback > >>>>> > >>>>> virtual void OpalOSSEndPoint::OnReceivedInstantMessage( const > >>>>> > >> SIPMessage > >> > >>>>> & message ) > >>>>> > >>>>> > >>>>> Regards, > >>>>> Matthias > >>>>> > >>>>> kishore kumar schrieb: > >>>>> > >>>>> > >>>>>> Hi All, > >>>>>> > >>>>>> I am trying to send MESSAGE from the opensipstack to the another > >>>>>> opensipstack which is running on the other machine. > >>>>>> I am able to send MESSAGE and able to get the 200_OK from the other > >>>>>> machine > >>>>>> where another opensipstack is running. > >>>>>> > >>>>>> But i am not able to find the call back in opensipstack, which is > >>>>>> > >>>>>> > >>>> calling > >>>> > >>>> > >>>>>> when MESSAGE is received to other machine and from where it is > sending > >>>>>> the > >>>>>> 200_OK in opensipstack, > >>>>>> > >>>>>> Can anyone look in to this please. > >>>>>> > >>>>>> Regards, > >>>>>> Kishore. > >>>>>> > >>>>>> > >>>>>> > >> > ------------------------------------------------------------------------------ > >> > >>>>>> _______________________________________________ > >>>>>> opensipstack-devel mailing list > >>>>>> ope...@li... > >>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >>>>>> > >>>>>> > >>>>>> > >>>>> > >> > ------------------------------------------------------------------------------ > >> > >>>>> _______________________________________________ > >>>>> opensipstack-devel mailing list > >>>>> ope...@li... > >>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >>>>> > >>>>> > >>>> > >>>>> No virus found in this incoming message. > >>>>> Checked by AVG - www.avg.com > >>>>> Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: > >>>>> > >>>>> > >>>> 03/31/09 > >>>> > >>>> > >>>>> 13:05:00 > >>>>> > >>>>> > >>>>> > >> > ------------------------------------------------------------------------------ > >> > >>>> _______________________________________________ > >>>> opensipstack-devel mailing list > >>>> ope...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >>>> > >>>> > >>>> > >> > ------------------------------------------------------------------------------ > >> > >>> _______________________________________________ > >>> opensipstack-devel mailing list > >>> ope...@li... > >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >>> > >>> > >>> > >> > ------------------------------------------------------------------------------ > >> _______________________________________________ > >> opensipstack-devel mailing list > >> ope...@li... > >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >> > >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > opensipstack-devel mailing list > > ope...@li... > > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > |
From: Matthias D. <mdr...@gm...> - 2009-04-02 11:04:21
|
Hi Kishore, when I look at the code of this TestRegistration I think you have to add your own callback to the method Scenario_Normal::OnReceivedMessage(const SIPMessage & message, SIPTransaction * transaction) Something like: if( message.IsResponse() ) { switch( message.GetStatusCode() ) { case( SIPMessage::Code401_Unauthorized ): m_Reg.SendAuthenticator( message ); break; case( SIPMessage::Code200_Ok ): m_Reg.StartRefreshTimer( message ); break; default: m_Reg.StartRefreshTimer( 10 ); break; } } } else { OString method = message.GetMethod().ToUpper(); if ( method == "MESSAGE" ) { m_Reg.OnInstantMessageReceived(message); } } And in class REGISTER there you have to create the callback OnInstantMessageReceived(const SIPMessage & message). But if you want to implement your own SIP client it is better to use the Softphone/SoftphoneInterface from opensipstack. There are already all callbacks and methods to send MESSAGEs and you don't have to implement it by yourself. Joegen if there are any mistakes please correct me. Regards, Matthias kishore kumar schrieb: > Hi Matthias, > find the answers for your questions: > 1. How do you send the message? > Ans: I kept one more test application called TestMessaging in opensbc/Tools > just as TestRegistration. > Using the same code in the TestRegistration.cxx. but instead of REGISTER > method, i am sending MESSAGE method. > > 2. How do you use the other callbacks? > Ans: After sending the MESSAGE method i am able to get the call back to void > REGISTER::OnReceivedMessage for 200_ok from the other opensipstack which is > running on another machine. > > 3. Are you using the OpalOSSEndPoint directly or do use the > SoftPhone/SoftPhoneInterface? > Ans: I am not using any Softphoe/SoftPhoneInterface on the other side. I am > running one more opensipstack in other machine, to where i am sending the > MESSAGE method. in this stack i am expecting callback at > OpalOSSEndPoint::OnInstantMessaging(), which is not implemented yet and not > able to keep the break point itself. > > Regards, > Kishore. > > 2009/4/1 Matthias Dreißig <mdr...@gm...> > > >> I have some questions so I can give you any solution for your problem. >> >> How do you send the message? >> >> How do you use the other callbacks? >> >> Are you using the OpalOSSEndPoint directly or do use the >> SoftPhone/SoftPhoneInterface? >> >> Regards, >> Matthias >> >> >> kishore kumar schrieb: >> >>> Hi Matthias, >>> >>> Thanks for the quick reply. >>> >>> the call back you mentioned is not implemented yet it seems. and i am not >>> able to keep the call back in that file. and i am explaining my scenario >>> more clearly here. >>> >>> USER 1: >>> >>> 1. Running OpenSIPStack. >>> 2. An application called USER 1 is registered to that stack on the same >>> machine just as TestResgistration application. >>> 3. Expecting callback from USER 2 which is sending MESSSAGE to USER 1(for >>> which call back we are getting in USER 1 OpenSIPStack. and from where we >>> >> are >> >>> sending the 200_OK to USER 2)---This is the actual question. >>> >>> USER 2: >>> >>> 1. Running OpenSIPStack. >>> 2. Sending MESSAGE to USER 1 which is already registered on another >>> machine. >>> 3. Got 200_ok response from USER 1. >>> >>> I think this description may help you people to understand the scenario >>> clearly.. >>> >>> Regards, >>> Kishore. >>> >>> On Wed, Apr 1, 2009 at 5:15 PM, Joegen Baclor <joe...@gm... >>> wrote: >>> >>> >>> >>>> Yes, that is absolutely correct. >>>> >>>> -------------------------------------------------- >>>> From: "Matthias Dreißig" <mdr...@gm...> >>>> Sent: Wednesday, April 01, 2009 6:45 PM >>>> To: <ope...@li...> >>>> Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... >>>> >>>> >>>> >>>>> Hello Kishore, >>>>> >>>>> I think what you are looking for is this callback >>>>> >>>>> virtual void OpalOSSEndPoint::OnReceivedInstantMessage( const >>>>> >> SIPMessage >> >>>>> & message ) >>>>> >>>>> >>>>> Regards, >>>>> Matthias >>>>> >>>>> kishore kumar schrieb: >>>>> >>>>> >>>>>> Hi All, >>>>>> >>>>>> I am trying to send MESSAGE from the opensipstack to the another >>>>>> opensipstack which is running on the other machine. >>>>>> I am able to send MESSAGE and able to get the 200_OK from the other >>>>>> machine >>>>>> where another opensipstack is running. >>>>>> >>>>>> But i am not able to find the call back in opensipstack, which is >>>>>> >>>>>> >>>> calling >>>> >>>> >>>>>> when MESSAGE is received to other machine and from where it is sending >>>>>> the >>>>>> 200_OK in opensipstack, >>>>>> >>>>>> Can anyone look in to this please. >>>>>> >>>>>> Regards, >>>>>> Kishore. >>>>>> >>>>>> >>>>>> >> ------------------------------------------------------------------------------ >> >>>>>> _______________________________________________ >>>>>> opensipstack-devel mailing list >>>>>> ope...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>> >>>>>> >>>>>> >>>>> >> ------------------------------------------------------------------------------ >> >>>>> _______________________________________________ >>>>> opensipstack-devel mailing list >>>>> ope...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>> >>>>> >>>> >>>>> No virus found in this incoming message. >>>>> Checked by AVG - www.avg.com >>>>> Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: >>>>> >>>>> >>>> 03/31/09 >>>> >>>> >>>>> 13:05:00 >>>>> >>>>> >>>>> >> ------------------------------------------------------------------------------ >> >>>> _______________________________________________ >>>> opensipstack-devel mailing list >>>> ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >> >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> >>> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> > ------------------------------------------------------------------------------ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > |
From: kishore k. <kk...@gm...> - 2009-04-02 10:45:34
|
Hi Matthias, can you please tell me how to use CallSessionManager::SendInstantMessage() method from my TestRegistration application. i am trying to create a instance for SoftPhoneInterface and trying to access SoftPhoneInterface::SendInstantMessage() method from my test application but i am not able create instance for SoftPhoneInterface. BR, Kishore. On Thu, Apr 2, 2009 at 9:48 AM, kishore kumar <kk...@gm...> wrote: > Hi Matthias, > find the answers for your questions: > 1. How do you send the message? > Ans: I kept one more test application called TestMessaging in opensbc/Tools > just as TestRegistration. > Using the same code in the TestRegistration.cxx. but instead of REGISTER > method, i am sending MESSAGE method. > > 2. How do you use the other callbacks? > Ans: After sending the MESSAGE method i am able to get the call back to > void REGISTER::OnReceivedMessage for 200_ok from the other opensipstack > which is running on another machine. > > 3. Are you using the OpalOSSEndPoint directly or do use the > SoftPhone/SoftPhoneInterface? > Ans: I am not using any Softphoe/SoftPhoneInterface on the other side. I am > running one more opensipstack in other machine, to where i am sending the > MESSAGE method. in this stack i am expecting callback at > OpalOSSEndPoint::OnInstantMessaging(), which is not implemented yet and not > able to keep the break point itself. > > Regards, > Kishore. > > 2009/4/1 Matthias Dreißig <mdr...@gm...> > > I have some questions so I can give you any solution for your problem. >> >> How do you send the message? >> >> How do you use the other callbacks? >> >> Are you using the OpalOSSEndPoint directly or do use the >> SoftPhone/SoftPhoneInterface? >> >> Regards, >> Matthias >> >> >> kishore kumar schrieb: >> > Hi Matthias, >> > >> > Thanks for the quick reply. >> > >> > the call back you mentioned is not implemented yet it seems. and i am >> not >> > able to keep the call back in that file. and i am explaining my >> scenario >> > more clearly here. >> > >> > USER 1: >> > >> > 1. Running OpenSIPStack. >> > 2. An application called USER 1 is registered to that stack on the same >> > machine just as TestResgistration application. >> > 3. Expecting callback from USER 2 which is sending MESSSAGE to USER >> 1(for >> > which call back we are getting in USER 1 OpenSIPStack. and from where we >> are >> > sending the 200_OK to USER 2)---This is the actual question. >> > >> > USER 2: >> > >> > 1. Running OpenSIPStack. >> > 2. Sending MESSAGE to USER 1 which is already registered on another >> > machine. >> > 3. Got 200_ok response from USER 1. >> > >> > I think this description may help you people to understand the scenario >> > clearly.. >> > >> > Regards, >> > Kishore. >> > >> > On Wed, Apr 1, 2009 at 5:15 PM, Joegen Baclor <joe...@gm... >> >wrote: >> > >> > >> >> Yes, that is absolutely correct. >> >> >> >> -------------------------------------------------- >> >> From: "Matthias Dreißig" <mdr...@gm...> >> >> Sent: Wednesday, April 01, 2009 6:45 PM >> >> To: <ope...@li...> >> >> Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... >> >> >> >> >> >>> Hello Kishore, >> >>> >> >>> I think what you are looking for is this callback >> >>> >> >>> virtual void OpalOSSEndPoint::OnReceivedInstantMessage( const >> SIPMessage >> >>> & message ) >> >>> >> >>> >> >>> Regards, >> >>> Matthias >> >>> >> >>> kishore kumar schrieb: >> >>> >> >>>> Hi All, >> >>>> >> >>>> I am trying to send MESSAGE from the opensipstack to the another >> >>>> opensipstack which is running on the other machine. >> >>>> I am able to send MESSAGE and able to get the 200_OK from the other >> >>>> machine >> >>>> where another opensipstack is running. >> >>>> >> >>>> But i am not able to find the call back in opensipstack, which is >> >>>> >> >> calling >> >> >> >>>> when MESSAGE is received to other machine and from where it is >> sending >> >>>> the >> >>>> 200_OK in opensipstack, >> >>>> >> >>>> Can anyone look in to this please. >> >>>> >> >>>> Regards, >> >>>> Kishore. >> >>>> >> >>>> >> >> >> ------------------------------------------------------------------------------ >> >> >> >>>> _______________________________________________ >> >>>> opensipstack-devel mailing list >> >>>> ope...@li... >> >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >>>> >> >>>> >> >>> >> >>> >> >> >> ------------------------------------------------------------------------------ >> >> >> >>> _______________________________________________ >> >>> opensipstack-devel mailing list >> >>> ope...@li... >> >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >>> >> >> >> >> >> >>> No virus found in this incoming message. >> >>> Checked by AVG - www.avg.com >> >>> Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: >> >>> >> >> 03/31/09 >> >> >> >>> 13:05:00 >> >>> >> >>> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> >> opensipstack-devel mailing list >> >> ope...@li... >> >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> >> > >> ------------------------------------------------------------------------------ >> > _______________________________________________ >> > opensipstack-devel mailing list >> > ope...@li... >> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> > >> > >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> > > |
From: Jyothsna B. <jyo...@gm...> - 2009-04-02 07:24:40
|
Hi Joegen, If i send the message in the below way,if we chekc in th wireshar ACK message is having CSeq as 1 INVITE only. so what i did is: Send_ACK(const SIPMessage & message) { SIPMessage ack; SIPMessage sdp; const Via & via = message.GetTopVia(); OString branch = via.GetBranch(); if( sdp.HasSDP() ) { ack.SetBody( sdp.GetBody() ); } ack.SetInterfaceAddress(via.GetAddress()); ack.SetInterfacePort(via.GetPort()); CSeq cseq; cseq.SetMethod( "ACK" ); cseq.SetSequence( message.GetCSeqNumber() ); ack.SetCSeq( cseq ); if( message.GetTransaction() != NULL ) { SIPFSM::InviteClientTransaction * trn = dynamic_cast <SIPFSM::InviteClientTransaction*>(message.GetTransaction()); if( trn != NULL ) trn->SetFinalACK( ack ); } m_UA->GetStack().EnqueueTransportWriteEvent(ack); } but when i debug the code internally in the EnqueueTransportWriteEvent(),it is calling SIPMessage method ProcessOutBound there it is cleaning all the message varaibles and deleting the event.so the message is not at all going from one to the other end. How to proceed further?Please can u look in to this? Br, Jyothsna On Thu, Apr 2, 2009 at 11:11 AM, Jyothsna Banda <jyo...@gm...>wrote: > Hi Joegen, > > Thanks again for the quick response. > > By using that method iam sending the ACK,in wireshark it is showing ,but > the SJphone is not receiving the ACK message? check the below sample code > how iam sending from the test application. > > /*********** sample code ***********/ > > > OStringStream msg; > > msg << > "ACK " << "sip:" << m_Domain <<":"<<"5060"<< " SIP/2.0" << "\r\n"; > > msg << > "From: <sip:" << m_ListenerIP<< ">" << ";tag=" << > ParserTools::GenTagParameter() << "\r\n"; > > msg << > "To: <sip:" << m_ToUser << m_Domain << ">" << "\r\n"; > > msg << > "Contact: " << "<" << m_ContactURI << ">" << "\r\n"; > > msg << > "Via:" << "SIP/2.0/UDP " << m_ListenerIP <<";branch=" << > ParserTools::GenBranchParameter() << "\r\n"; > > msg << > "CSeq: 1 ACK" << "\r\n"; > > msg << > "Max-Forwards:" << "70" << "\r\n"; > > msg << > "Call-ID: " << ParserTools::GenGUID() << "\r\n"; > > msg << > "Content-Length: 0" <<"\r\n"; > > Parse( msg.str() ); > > TransactionId tid; > > m_UA->GetStack().EnqueueTransportWriteEvent(* > this); > /************************************************************************/ > Can we use call session from test application,How to call the call session > methods? > > where it is being used? > > i think call session is having full functionality for call establishment? > > > Can u tell me the code flow for eatblishing a call from my test > application? > > > Br, > Jyothsna > On Thu, Apr 2, 2009 at 6:03 AM, Joegen Baclor <joe...@gm...>wrote: > >> Ahhh, I see what you are doing wrong. You don’t use >> FindTransactionAndAddEvent() to send ACK because ACK never creates a >> transaction. Instead you must use GetStack().EnqueueTransportWriteEvent( >> ack ); >> Look at BOOL CallSession::SendAck( const SIPMessage & response, constSIPMessage & sdp ) for a sample implementation. >> >> HTH, >> >> Joegen >> >> *From:* Jyothsna Banda <jyo...@gm...> >> *Sent:* Wednesday, April 01, 2009 8:41 PM >> *To:* Joegen Baclor <jb...@so...> ; >> ope...@li... >> *Subject:* Re: [OpenSIPStack] Call back for an Invite Response in the >> Testapplication >> >> >> Hi Joegen, >> >> Thanks for the reply. >> >> Iam using the same test registration application. >> >> Scenario: Sending Invite from Testapplication to SJPhone(running in >> another system) >> >> I have added few methods in Register Class for Invite,ACK and 200_OK. >> >> Instead of sending the Registration ,iam calling the Invite method which i >> have added. >> >> Find the attached Source file and XML ,reading the values from this file. >> >> Now iam getting call back (200OK)to onreceived message,there iam preparing >> the ACK and sending back.but ACk is not going. >> >> Please check the code and let me know whether iam doing something wrong . >> >> Br, >> Jyothsna >> >> >> >> >> >> On Wed, Apr 1, 2009 at 5:14 PM, Joegen Baclor <joe...@gm...>wrote: >> >>> Can you publish the test application code? I want to see how you are >>> sending the INVITE out so we have something in common to look at. >>> Tools/TestRegistration sample application in OpenSBC demonstrates pretty >>> basic transaction callbacks. You might want to start with that as well. >>> >>> >>> -------------------------------------------------- >>> From: "Jyothsna Banda" <jyo...@gm...> >>> Sent: Wednesday, April 01, 2009 5:53 PM >>> To: <ope...@li...> >>> Subject: [OpenSIPStack] Call back for an Invite Response in the >>> Testapplication >>> >>> > Hi, >>> > >>> > I have tried two scenarios for sending an Invite Request: >>> > >>> > First Scenario: >>> > >>> > Iam sending an Invite request thru test application to SJPhone running >>> on >>> > another machine. >>> > >>> > receiving the 200 Ok from Sjphone to test application. Where will we >>> get >>> > the >>> > call back in Test application, so that we can send an Ack for the 200 >>> ok >>> > response. >>> > >>> > Second Scenario: >>> > >>> > when sending the Invite message from test application to OpensipStack >>> > server >>> > running on the other message, >>> > getting the 100 Trying call back in the test application Onreceived >>> > message.Here how to send the 200 ok response from test application >>> acting >>> > as >>> > a user agent server.Also how to set the test application as User Agent >>> > server? >>> > >>> > >>> > >>> > Can any one please help. >>> > >>> > Br, >>> > Jyothsna >>> > >>> ------------------------------------------------------------------------------ >>> > _______________________________________________ >>> > opensipstack-devel mailing list >>> > ope...@li... >>> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> >>> >>> > >>> > No virus found in this incoming message. >>> > Checked by AVG - www.avg.com >>> > Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: >>> 03/31/09 >>> > 13:05:00 >>> > >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >> >> ------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: 03/31/09 >> 13:05:00 >> >> > |
From: Jyothsna B. <jyo...@gm...> - 2009-04-02 05:41:56
|
Hi Joegen, Thanks again for the quick response. By using that method iam sending the ACK,in wireshark it is showing ,but the SJphone is not receiving the ACK message? check the below sample code how iam sending from the test application. /*********** sample code ***********/ OStringStream msg; msg << "ACK " << "sip:" << m_Domain <<":"<<"5060"<< " SIP/2.0" << "\r\n"; msg << "From: <sip:" << m_ListenerIP<< ">" << ";tag=" << ParserTools::GenTagParameter() << "\r\n"; msg << "To: <sip:" << m_ToUser << m_Domain << ">" << "\r\n"; msg << "Contact: " << "<" << m_ContactURI << ">" << "\r\n"; msg << "Via:" << "SIP/2.0/UDP " << m_ListenerIP <<";branch=" << ParserTools::GenBranchParameter() << "\r\n"; msg << "CSeq: 1 ACK" << "\r\n"; msg << "Max-Forwards:" << "70" << "\r\n"; msg << "Call-ID: " << ParserTools::GenGUID() << "\r\n"; msg << "Content-Length: 0" <<"\r\n"; Parse( msg.str() ); TransactionId tid; m_UA->GetStack().EnqueueTransportWriteEvent(*this); /************************************************************************/ Can we use call session from test application,How to call the call session methods? where it is being used? i think call session is having full functionality for call establishment? Can u tell me the code flow for eatblishing a call from my test application? Br, Jyothsna On Thu, Apr 2, 2009 at 6:03 AM, Joegen Baclor <joe...@gm...>wrote: > Ahhh, I see what you are doing wrong. You don’t use > FindTransactionAndAddEvent() to send ACK because ACK never creates a > transaction. Instead you must use GetStack().EnqueueTransportWriteEvent( > ack ); > Look at BOOL CallSession::SendAck( const SIPMessage & response, constSIPMessage & sdp ) for a sample implementation. > > HTH, > > Joegen > > *From:* Jyothsna Banda <jyo...@gm...> > *Sent:* Wednesday, April 01, 2009 8:41 PM > *To:* Joegen Baclor <jb...@so...> ; > ope...@li... > *Subject:* Re: [OpenSIPStack] Call back for an Invite Response in the > Testapplication > > > Hi Joegen, > > Thanks for the reply. > > Iam using the same test registration application. > > Scenario: Sending Invite from Testapplication to SJPhone(running in another > system) > > I have added few methods in Register Class for Invite,ACK and 200_OK. > > Instead of sending the Registration ,iam calling the Invite method which i > have added. > > Find the attached Source file and XML ,reading the values from this file. > > Now iam getting call back (200OK)to onreceived message,there iam preparing > the ACK and sending back.but ACk is not going. > > Please check the code and let me know whether iam doing something wrong . > > Br, > Jyothsna > > > > > > On Wed, Apr 1, 2009 at 5:14 PM, Joegen Baclor <joe...@gm...>wrote: > >> Can you publish the test application code? I want to see how you are >> sending the INVITE out so we have something in common to look at. >> Tools/TestRegistration sample application in OpenSBC demonstrates pretty >> basic transaction callbacks. You might want to start with that as well. >> >> >> -------------------------------------------------- >> From: "Jyothsna Banda" <jyo...@gm...> >> Sent: Wednesday, April 01, 2009 5:53 PM >> To: <ope...@li...> >> Subject: [OpenSIPStack] Call back for an Invite Response in the >> Testapplication >> >> > Hi, >> > >> > I have tried two scenarios for sending an Invite Request: >> > >> > First Scenario: >> > >> > Iam sending an Invite request thru test application to SJPhone running >> on >> > another machine. >> > >> > receiving the 200 Ok from Sjphone to test application. Where will we get >> > the >> > call back in Test application, so that we can send an Ack for the 200 ok >> > response. >> > >> > Second Scenario: >> > >> > when sending the Invite message from test application to OpensipStack >> > server >> > running on the other message, >> > getting the 100 Trying call back in the test application Onreceived >> > message.Here how to send the 200 ok response from test application >> acting >> > as >> > a user agent server.Also how to set the test application as User Agent >> > server? >> > >> > >> > >> > Can any one please help. >> > >> > Br, >> > Jyothsna >> > >> ------------------------------------------------------------------------------ >> > _______________________________________________ >> > opensipstack-devel mailing list >> > ope...@li... >> > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> > >> > No virus found in this incoming message. >> > Checked by AVG - www.avg.com >> > Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: >> 03/31/09 >> > 13:05:00 >> > >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> > > ------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: 03/31/09 > 13:05:00 > > |
From: kishore k. <kk...@gm...> - 2009-04-02 04:18:06
|
Hi Matthias, find the answers for your questions: 1. How do you send the message? Ans: I kept one more test application called TestMessaging in opensbc/Tools just as TestRegistration. Using the same code in the TestRegistration.cxx. but instead of REGISTER method, i am sending MESSAGE method. 2. How do you use the other callbacks? Ans: After sending the MESSAGE method i am able to get the call back to void REGISTER::OnReceivedMessage for 200_ok from the other opensipstack which is running on another machine. 3. Are you using the OpalOSSEndPoint directly or do use the SoftPhone/SoftPhoneInterface? Ans: I am not using any Softphoe/SoftPhoneInterface on the other side. I am running one more opensipstack in other machine, to where i am sending the MESSAGE method. in this stack i am expecting callback at OpalOSSEndPoint::OnInstantMessaging(), which is not implemented yet and not able to keep the break point itself. Regards, Kishore. 2009/4/1 Matthias Dreißig <mdr...@gm...> > I have some questions so I can give you any solution for your problem. > > How do you send the message? > > How do you use the other callbacks? > > Are you using the OpalOSSEndPoint directly or do use the > SoftPhone/SoftPhoneInterface? > > Regards, > Matthias > > > kishore kumar schrieb: > > Hi Matthias, > > > > Thanks for the quick reply. > > > > the call back you mentioned is not implemented yet it seems. and i am not > > able to keep the call back in that file. and i am explaining my scenario > > more clearly here. > > > > USER 1: > > > > 1. Running OpenSIPStack. > > 2. An application called USER 1 is registered to that stack on the same > > machine just as TestResgistration application. > > 3. Expecting callback from USER 2 which is sending MESSSAGE to USER 1(for > > which call back we are getting in USER 1 OpenSIPStack. and from where we > are > > sending the 200_OK to USER 2)---This is the actual question. > > > > USER 2: > > > > 1. Running OpenSIPStack. > > 2. Sending MESSAGE to USER 1 which is already registered on another > > machine. > > 3. Got 200_ok response from USER 1. > > > > I think this description may help you people to understand the scenario > > clearly.. > > > > Regards, > > Kishore. > > > > On Wed, Apr 1, 2009 at 5:15 PM, Joegen Baclor <joe...@gm... > >wrote: > > > > > >> Yes, that is absolutely correct. > >> > >> -------------------------------------------------- > >> From: "Matthias Dreißig" <mdr...@gm...> > >> Sent: Wednesday, April 01, 2009 6:45 PM > >> To: <ope...@li...> > >> Subject: Re: [OpenSIPStack] doubt on opensipstack call backs... > >> > >> > >>> Hello Kishore, > >>> > >>> I think what you are looking for is this callback > >>> > >>> virtual void OpalOSSEndPoint::OnReceivedInstantMessage( const > SIPMessage > >>> & message ) > >>> > >>> > >>> Regards, > >>> Matthias > >>> > >>> kishore kumar schrieb: > >>> > >>>> Hi All, > >>>> > >>>> I am trying to send MESSAGE from the opensipstack to the another > >>>> opensipstack which is running on the other machine. > >>>> I am able to send MESSAGE and able to get the 200_OK from the other > >>>> machine > >>>> where another opensipstack is running. > >>>> > >>>> But i am not able to find the call back in opensipstack, which is > >>>> > >> calling > >> > >>>> when MESSAGE is received to other machine and from where it is sending > >>>> the > >>>> 200_OK in opensipstack, > >>>> > >>>> Can anyone look in to this please. > >>>> > >>>> Regards, > >>>> Kishore. > >>>> > >>>> > >> > ------------------------------------------------------------------------------ > >> > >>>> _______________________________________________ > >>>> opensipstack-devel mailing list > >>>> ope...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >>>> > >>>> > >>> > >>> > >> > ------------------------------------------------------------------------------ > >> > >>> _______________________________________________ > >>> opensipstack-devel mailing list > >>> ope...@li... > >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >>> > >> > >> > >>> No virus found in this incoming message. > >>> Checked by AVG - www.avg.com > >>> Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: > >>> > >> 03/31/09 > >> > >>> 13:05:00 > >>> > >>> > >> > ------------------------------------------------------------------------------ > >> _______________________________________________ > >> opensipstack-devel mailing list > >> ope...@li... > >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > >> > >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > opensipstack-devel mailing list > > ope...@li... > > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > |
From: Joegen B. <joe...@gm...> - 2009-04-02 00:33:48
|
Ahhh, I see what you are doing wrong. You don't use FindTransactionAndAddEvent() to send ACK because ACK never creates a transaction. Instead you must use GetStack().EnqueueTransportWriteEvent( ack ); Look at BOOL CallSession::SendAck( const SIPMessage & response, const SIPMessage & sdp ) for a sample implementation. HTH, Joegen From: Jyothsna Banda Sent: Wednesday, April 01, 2009 8:41 PM To: Joegen Baclor ; ope...@li... Subject: Re: [OpenSIPStack] Call back for an Invite Response in the Testapplication Hi Joegen, Thanks for the reply. Iam using the same test registration application. Scenario: Sending Invite from Testapplication to SJPhone(running in another system) I have added few methods in Register Class for Invite,ACK and 200_OK. Instead of sending the Registration ,iam calling the Invite method which i have added. Find the attached Source file and XML ,reading the values from this file. Now iam getting call back (200OK)to onreceived message,there iam preparing the ACK and sending back.but ACk is not going. Please check the code and let me know whether iam doing something wrong . Br, Jyothsna On Wed, Apr 1, 2009 at 5:14 PM, Joegen Baclor <joe...@gm...> wrote: Can you publish the test application code? I want to see how you are sending the INVITE out so we have something in common to look at. Tools/TestRegistration sample application in OpenSBC demonstrates pretty basic transaction callbacks. You might want to start with that as well. -------------------------------------------------- From: "Jyothsna Banda" <jyo...@gm...> Sent: Wednesday, April 01, 2009 5:53 PM To: <ope...@li...> Subject: [OpenSIPStack] Call back for an Invite Response in the Testapplication > Hi, > > I have tried two scenarios for sending an Invite Request: > > First Scenario: > > Iam sending an Invite request thru test application to SJPhone running on > another machine. > > receiving the 200 Ok from Sjphone to test application. Where will we get > the > call back in Test application, so that we can send an Ack for the 200 ok > response. > > Second Scenario: > > when sending the Invite message from test application to OpensipStack > server > running on the other message, > getting the 100 Trying call back in the test application Onreceived > message.Here how to send the 200 ok response from test application acting > as > a user agent server.Also how to set the test application as User Agent > server? > > > > Can any one please help. > > Br, > Jyothsna > ------------------------------------------------------------------------------ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: 03/31/09 > 13:05:00 > ------------------------------------------------------------------------------ _______________________________________________ opensipstack-devel mailing list ope...@li... https://lists.sourceforge.net/lists/listinfo/opensipstack-devel -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.11.35/2033 - Release Date: 03/31/09 13:05:00 |