URI parameters

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

 



Hello,

Sample code:
pjsip_param* p_user;
pjsip_sip_uri* srv_uri;

srv_uri = (pjsip_sip_uri*) rdata->msg_info.msg->line.req.uri;
//printf("user_phone=%.*s\n", (int) srv_uri->user_param.slen, 
srv_uri->user_param.ptr);

Best Regards,
Gabriel.


On 11.12.2014 15:58, Alicia Romero wrote:
> Hi List,
> if the SIP URI from an incomming INVITE has a URI parameter, is there 
> a way to get it from the INVITE?
>
> For example if I have an incooming INVITE with SIP:
> sip: +49-123-45670000 at 192.168.190.190 
> <mailto:49-123-45670000 at 192.168.190.190>;user=phone
>
> Is there a way to get the parameter "user=phone" and give it to my 
> application?
> Thanks!!
>
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141211/31862b2e/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