Is it possible to send 488 response by ourself.

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

 



    Main problem is i want rdata somehow so that i can use
pjsip_endpt_respond() to create 488 response msg.

    1. on_rx_offer callback is used by pjsip when RE-INVITE is
received.This callback has pjsip_inv_session as an argument.
       pjsip_inv_session has invite_tsx( pjsip_transaction *) as a member.

      on_rx_offer() is called from inv_on_state_confirmed(), which is
defined in sip_inv.c. Before on_rx_offer is being called, inside
inv_on_state_confirmed(), tsx from rdata is copied to invite_tsx of
pjsip_inv_session.

      pjsip_transaction has some fields like cseq, branch.

      Can i use these fields to create incoming message as
pjsip_endpt_respond() needs incoming msg from rdata to create response msg.

    2. on_tsx_state_change() callback can be registered with invite method.
It has pjsip_event_e as one of the argument. We can get rdata from this
argument.
        But on_tsx_state_change() is called after response to RE-INVITE is
sent.
        So it seems i can't use this callback.

    3. I am using pjproject1.0 and linux as OS.

-thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120227/655a5307/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