How to parse URI for user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Benny,
Thanks again!. The vptr was not clear to me initially, now I get it, its more like C++ polymorphism.

-Senthil.


----- Original Message ----
From: Benny Prijono <bennylp@xxxxxxxxx>
To: pjsip list <pjsip at lists.pjsip.org>
Sent: Wednesday, April 2, 2008 3:41:42 AM
Subject: Re: How to parse URI for user

On Wed, Apr 2, 2008 at 9:26 AM, Senthil Raja <vsraja at yahoo.com> wrote:
>
> Benny, et al,
> How does one get the "user" part of the sip URI (sip:user at domain.com). The
> sip_uri structure only supports the following api's;
> "pjsip_uri_get_schema" which gives only the scheme "sip" and
> "pjsip_uri_print" which gives the whole uri-string "<sip:user at domain.com>"
> Appreciate your help.

Use pjsip_parse_uri() and pjsip_uri_get_uri() to typecast the result
into pjsip_sip_uri. More info please read the PJSIP Developers Guide
PDF. :)

Cheers
 Benny


> Regards,
> Senthil.
>

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip at lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org






      ____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080402/2d36624e/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux