How to catch 402 Payment Required?

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

 



Cornelis,
? you can use pjsip_endpt_register_module(...) to register your module which will allow you to receive all SIP incoming and outgoing msgs. You? have the option of passing the msg along to the other modules for processing or not.


--- On Tue, 11/9/10, cg_vanderbent at mail.com <cg_vanderbent at mail.com> wrote:

From: cg_vanderbent@xxxxxxxx <cg_vanderbent at mail.com>
Subject: How to catch 402 Payment Required?
To: pjsip at lists.pjsip.org
Date: Tuesday, November 9, 2010, 12:00 AM



 Hi,



My callback connected to config.cb.on_call_state (config of type pjsua_config), never catches a 402 Payment Required which is sent by the SIP server (as my colleague assures me).? I only get a call_info.status PJSIP_INV_STATE_NULL (0), call_info.last_status is also PJSIP_INV_STATE_NULL, and that's it.



How do I catch 402 and other errors, instead of just a PJSIP_INV_STATE_NULL.






 

Thanks for listening!



Cornelis










-----Inline Attachment Follows-----

_______________________________________________
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/20101110/f00e794f/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