×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    139

    Lightbulb the SIPExample "resolverplugin", how to use it?

    When the sip server send a sip MESSAGE to my phone, My application can not cathch it,
    er, IncomingRequest is not run always!
    what can i do?
    Or modifyed the resolverplugin, which is a part of SIPExample?

    this is a dll(sipresolverplugin.dll), but I don't konw how it works??

    Thanks a lot!
    weclome to my site: blog.csdn.net/sodangerous

  2. #2
    Regular Contributor
    Join Date
    Aug 2007
    Posts
    74

    Re: the SIPExample "resolverplugin", how to use it?

    Has your application registered?

    -jp

  3. #3
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    139

    Lightbulb Re: the SIPExample "resolverplugin", how to use it?

    I have EnableProfile(), and the register is successful!
    But, when some sip message arrived, the
    CSIPExResolverPlugin::ConstructL is invoked.

    I don't understand the codes,
    for ( TInt i=0; !found && i < infoArray.Count(); i++ )
    {
    CImplementationInformation* info = infoArray[ i ];
    if ( info->ImplementationUid() == KMyImplementationUid )
    {
    TLex8 lex( info->DataType() );
    TUint value( 0 );
    User::LeaveIfError( lex.Val( value, EHex ) );
    iApplicationUID.iUid = value;
    found = ETrue;
    }
    }
    and the result is "found=ETrue, iApplicationUID.iUid =0"

    when
    User::LeaveIfError( iApaSession.Connect() );
    User::LeaveIfError( iApaSession.GetAppInfo( iAppInfo, iApplicationUID )); // Leave!!!!!!!!!!!!

    I want process the sip message, what can I do?
    thanks a Lot!
    weclome to my site: blog.csdn.net/sodangerous

  4. #4
    Registered User
    Join Date
    Jul 2007
    Posts
    40

    Re: the SIPExample "resolverplugin", how to use it?

    Hi sodangerous!

    What that code suppose to do, is to get UID of your application configured into your resolver plugin and 'test' that there really is such application.

    The for-loop goes through all client resolver plugin implementations and looks for your one. Once found, it reads the plugins implementation information stored into plugins .rss file. In SIP example, data\A00001EC.rss contains this:

    // SIPEx UID: Must match to the one SIPEx passes to CSIP::NewL.
    default_data = "A00001EB";

    This value is read inside that loop and stored into variable iApplicationUID.

    After this in the end of ConstructL, its still checked that iApplicationUID is valid, since its later needed for application startup. In your case, this check fails, but reason being that iApplicationUID = 0, which is not valid.

    So, in your case, for some reason value in 'default_data' in A00001EC.rss is not properly read (assuming you did not change that value to 0 by yourself!). Since building these ecom-plugins typically is bit problematic, I assume 'something' went wrong, when you build your client resolver plugin. Can't say what though!

    Note, in SIP example this trick with iApplicationUID is a bit unneccessary 'gold-plating'. You don't have to configure your application UID into .rss file, just simply hardcode that value into your client resolver plugin.

  5. #5
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    139

    Lightbulb Re: the SIPExample "resolverplugin", how to use it?

    Thanks thok!!!!
    You are right,
    I write the default_id = "0xEF60001" not "EF60001",
    and now, it's ok.

    A New Problem:
    when server give me a notify:anonymous@server.com....
    I can not get the message,
    and the function "NewL" has not run!
    ths SIP Response is "404 Not Found", it likes auto response!!

    thanks again!
    weclome to my site: blog.csdn.net/sodangerous

  6. #6
    Registered User
    Join Date
    Aug 2007
    Posts
    19

    Re: the SIPExample "resolverplugin", how to use it?

    Could you attach the NOTIFY that the server is sending?
    Note that the Request-URI of the NOTIFY (or any incoming SIP request)
    must match to the one send in the REGISTER's Contact-header's URI.
    This means that you cannot receive any SIP requests
    without first registering (enabling one of the SIP profiles).

  7. #7
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    139

    Lightbulb Re: the SIPExample "resolverplugin", how to use it?

    Thanks, anklemet
    when the server is sending NOTIFY,
    My SIP profile has not registed!
    Er, I means "When accept the NOTIFY, my application launch the register"
    But I can not received the NOTIFY,
    and
    If I subscribe, can I get NOTIFY?
    weclome to my site: blog.csdn.net/sodangerous

  8. #8
    Registered User
    Join Date
    Aug 2007
    Posts
    19

    Re: the SIPExample "resolverplugin", how to use it?

    Yes.
    If you first SUBSCRIBE you can receive NOTIFYs
    within the dialog created with SUBSCRIBE.

    In this case you do not need to register before receiving the NOTIFYs.
    Actually you do not even need to have a SIP Client Resolver plug-in
    if you only want to receive NOTIFYs
    within a dialog created with a SUBSCRIBE.

    The NOTIFY is passed to your application via callback

    MSIPConnectionObserver::IncomingRequest(
    CSIPServerTransaction* aTransaction, CSIPDialog& aDialog)

  9. #9
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    139

    Lightbulb Re: the SIPExample "resolverplugin", how to use it?

    hi, anklemet
    I'm sorry, I'l trouble you again,
    My SIP Server don't support the SIP SUBSCRIBE,
    when I send SUBSCRIBE (the event: notify), but not response!

    Now, what can i do?
    when server give me a NOTIFY, I cannot get it,
    but When server gime me a MESSAGE, my SIPResolveClient is run,
    and the Message can get.

    I dont konw the difference between the NOTIFY and the MESSAGE,
    Is Nokia SIP Stack problem?

    now , it is very emercy!
    weclome to my site: blog.csdn.net/sodangerous

  10. #10
    Registered User
    Join Date
    Aug 2007
    Posts
    19

    Re: the SIPExample "resolverplugin", how to use it?

    Unfortunately Symbian/S60 SIP stack does not
    support receiving NOTIFYs outside a SIP dialog.
    This is not a standard usage of NOTIFY.
    Normally NOTIFYs are always related to a SUBSCRIBEs or REFERs.
    Please browse through
    http://www.ietf.org/rfc/rfc3265.txt
    to gain better knowledge of how
    SUBSCRIBE-NOTIFY usually works.

    SUBSCRIBE with header "Event: notify"
    does not seem to be according to any standard.
    You have to know to which event you are subscribing to.
    It would help a lot if you could attach the whole NOTIFY.
    In the NOTIFY there should be the same
    Event-header as in the SUBSCRIBE.

Similar Threads

  1. SIPExample
    By luigio18 in forum VoIP
    Replies: 13
    Last Post: 2007-08-02, 10:28
  2. HELP, SIPExample in S60 SDK doesn't work.
    By guanzhong in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-06-12, 19:21
  3. Question about the SIPExample
    By johnswyen in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2007-02-09, 04:15
  4. SIPExample in S60 3rd Edition SDK
    By shimritmal in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-12-30, 21:10
  5. Run SIPExample in 3.0 got a 415 error?
    By huan23 in forum VoIP
    Replies: 1
    Last Post: 2006-12-22, 05:17

Posting Permissions

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