Catch and process REFER outside a dialog

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

 



On Thu, Jul 24, 2008 at 7:48 PM, Damien Herraud <d.herraud at gmail.com> wrote:

> Hi,
>
> I would like to be able to send and receive a REFER outside a dialog
> created by an INVITE. I am able to send the REFER and now I want the referee
> to process it. First thing I tried to check if the message received is
> really a REFER, so I printed in *on_rx_request* function :
>
> rdata->msg_info.msg->line.req.method.name.ptr
>
> According to the documentation, it should give me the request line but I
> got the whole SIP message (with Via, From, To, Refer... headers). It's not a
> problem for me since I can still get the request line contained in it, but
> this is not the behaviour expected, is it ?
>
>
It is fine actually. The pjlib string (pj_str_t) is not NULL terminated so
you need to check the length part to get the string boundary.

Cheers
 Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080724/ee4006e6/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