< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate-users] Meet problem getting user() outof Uri. resip 1.8.7


I downloaded the latest svn code (Revision: 10133) and installed it as shared library to /usr/local (as is the default place). I saw the current version number is 1.9.  The test program runs properly now. 

I'm wondering if any other 1.8.7 users are seeing the same problem that I experienced.

Regards,
Shaohong


2013/4/25 Scott Godin <sgodin@xxxxxxxxxxxxxxx>
That is strange.  There is nothing wrong with your code.  I tested it out to be 100% sure and it works good for me.

Scott

On Thu, Apr 25, 2013 at 4:01 AM, Shaohong Li <shaohong0830@xxxxxxxxx> wrote:
Hi, all,

  I'm using the latest 1.8.7 tar ball download

  I'm wondering if I'm doing anything wrong with Uri here. The logic is quite trivial but somehow I couldn't get user part out of the Uri and the host info returned is also wrong. Below is my code:

------------------
#include <resip/stack/Uri.hxx>
#include <rutil/Data.hxx>
#include <iostream>

using namespace resip;
using namespace std;

int main() {
    Uri bobUri("sip:bob@xxxxxxxxxxx");
    cout << "bobUri.user(): " << bobUri.user() << endl;
    cout << "bobUri.host(): " << bobUri.host() << endl;
}

------------------

and the output is like:
  bobUri.user():
  bobUri.host(): bob

  Any pointers or suggestions are appreciated. Thanks!

Regards,
Shaohong

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/