Catch and process REFER outside a dialog

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

 



Ok thanks for the answer !

Cheers,

Damien


On Thu, Jul 24, 2008 at 4:33 PM, Benny Prijono <bennylp at pjsip.org> wrote:

> 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
>
>
>
>
> _______________________________________________
> 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/20080724/03d4485f/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