×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    282

    not getting register response

    sip stack is not receiving the response from the server.
    when regster request is sent.
    server sends the response but i dont get it into my application.
    please help me....

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: not getting register response

    Hi,

    what you mean that you didn't receive the response?

    The callback method IncomingResponse ( CSIPClientTransaction& aTransaction, CSIPRegistrationBinding& aRegistration ) is not called?

    Might be that there is kind of error reported in the on of ErrorOccured() method. It's also possible that the response is firewalled, so it simply don't go to the mobile phone. Then you have to wait for timeout.

    Do you see the 200 OK response on ethreal, when application started from emulator? Are you using SIP profiles?

    BR
    STeN

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    4

    Re: not getting register response

    yup i see the response 200 ok in ethereal.
    but i dont get any callback (registrationbinding)
    so my application or u can say the sip stack again sends the register command. again i receive 200 ok from the server.
    but finally when i check the registrtion context its not active.
    i m not using sip profiles.
    i m doing the registration manually...
    thanx .

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: not getting register response

    Hi,

    this is strange. If you are using emulator, create 'sip' subfolder in 'c:\logs' to see if there anything usefull.

    There is the way, how I'm sending the REGISTER request (there are missing some variables initialization, but I guess you will understand it:

    Code:
    TInt RegisterL()
    {   
    ...
    	// 'To' header
    	TBuf8< KHeaderLength > fmt;
    	fmt.Format( _L8("%S:%S@%S"), &KSip, &sipName, &imsDomain );
    	CSIPToHeader* aor = CSIPToHeader::DecodeL( fmt );
    
    	// ip address
    	TBuf8<KIPv6MaxLength> address;
    	address.Copy( KSip );
    	address.Append( _L8(":") );
    
    	TPtrC ipAddress;
    	iShared.SipEngine()->GetMyIpAddress( ipAddress );
    	address.Append( ipAddress );
    
    	// 'Contact' header
      //	CSIPAddress* addr = CSIPAddress::DecodeL(_L8("sip:163.242.116.55"));
    	CSIPAddress* addr = CSIPAddress::DecodeL( address );
    	CSIPContactHeader* contact = CSIPContactHeader::NewL( addr );
      contact->SetExpiresParameterL( KPepSipDefaultRegisterExpiresValue );
    	
    	// 'Route' header
    	if ( iEngine.SIPObject()->IsSigCompSupportedL() && sigComp.Compare( KEnabled ) == 0 )
    	{
    		fmt.Format( _L8("%S:%S:%S;lr;comp=sigcomp"),  &KSip, &pcscfIpAaddress, &pcscfPort ); 
    	}
    	else
    	{
    		fmt.Format( _L8("%S:%S:%S;lr"),  &KSip, &pcscfIpAaddress, &pcscfPort ); 
    	}
    	
    	addr = CSIPAddress::DecodeL( fmt );
    	CSIPRouteHeader*  route= CSIPRouteHeader::NewL(addr );
    
    	// remote uri
    	CUri8* remoteUri = CUri8::NewL(); 
    	remoteUri->SetComponentL( KSip, EUriScheme );
    	remoteUri->SetComponentL( imsDomain, EUriPath );
    
    	// create refresh
    	CSIPRefresh* refresh = CSIPRefresh::NewL();
    	
    	// create HTTP digest authorization class
    	iHttpDigest = CSIPHttpDigest::NewL( *iEngine.SIPObject(), *this ); // 2nd parameter is ptr to MSIPHttpDigestChallengeObserver
    		
    	// create REGISTER request binding
    	iSIPRegistrationBinding = CSIPRegistrationBinding::NewL(
    		**iEngine.SIPConnectionObjectAddr(), 
    		aor, 
    		contact, 
    		refresh, 
    		route, 
    		remoteUri);
    	iEngine.SetRegistrationBinging( iSIPRegistrationBinding );
    
    	// send REGISTER request
    	iSIPRegistrationTransaction = iSIPRegistrationBinding->RegisterL();	
    	return KErrNone;
    }
    BR
    STeN

  5. #5
    Registered User
    Join Date
    Feb 2004
    Posts
    4

    Re: not getting register response

    u have constructed all the parameters supplied in the registrationbinding.
    instead of that i m using minimum required params.
    but does it make any difference.
    Because if server could not understand my register request how it can send 200 ok.
    i have tried it on different servers.

Similar Threads

  1. Asterisk REregister failing
    By kolbi-nokia in forum VoIP
    Replies: 6
    Last Post: 2007-08-15, 19:13
  2. Problem retreiving custom HTTP response header
    By hmeet2 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-01-03, 09:35
  3. WML & WMLSCript problem ????
    By gemini_shooter in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-01-14, 06:01
  4. Problem with SIP Plug-in for Series 60 SDK 2.0
    By jalakuri in forum Symbian Tools & SDKs
    Replies: 27
    Last Post: 2005-08-22, 09:55
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×