Hi all,
I want to add a custom sip header field to all SIP messages sent by pjsip ;
the only way I found to do this is to create a module so I can catch the
SIP message and do the stuff before it being sent.
The problem I'm facing is that the value of that sip header can vary
depending on the context. But I didn't found how to retrieve the call or
account context in my module.
Does anybody know how I could retrieve the pjsip account or pjsip call info
from a pjsip module?
Note that I'm using pjsua2 at the top, so my final goal is to retrieve the
pjsua2 account/call class pointer in my module...
Thanks for any help
Regards,
Thibault
one note - if u add a custom SIP header which is not standardized, then you
will end up getting a 4xx error from server.
On Fri, Mar 3, 2017 at 1:35 PM, 301@free.fr wrote:
Hi all,
I want to add a custom sip header field to all SIP messages sent by pjsip
; the only way I found to do this is to create a module so I can catch the
SIP message and do the stuff before it being sent.
The problem I'm facing is that the value of that sip header can vary
depending on the context. But I didn't found how to retrieve the call or
account context in my module.
Does anybody know how I could retrieve the pjsip account or pjsip call
info from a pjsip module?
Note that I'm using pjsua2 at the top, so my final goal is to retrieve the
pjsua2 account/call class pointer in my module...
Thanks for any help
Regards,
Thibault
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Thank you for your advice Ranjit. I would have thought that if a sip header
field is unknown by the remote sip server, it would drop this field and
process the message.
Anyway I have no choice, this is part of a specification for the usage I
plan to do...
Thibault
2017-03-03 20:49 GMT+01:00 Ranjit Avasarala ranjit.avasarala@gmail.com:
one note - if u add a custom SIP header which is not standardized, then
you will end up getting a 4xx error from server.
On Fri, Mar 3, 2017 at 1:35 PM, 301@free.fr wrote:
Hi all,
I want to add a custom sip header field to all SIP messages sent by pjsip
; the only way I found to do this is to create a module so I can catch the
SIP message and do the stuff before it being sent.
The problem I'm facing is that the value of that sip header can vary
depending on the context. But I didn't found how to retrieve the call or
account context in my module.
Does anybody know how I could retrieve the pjsip account or pjsip call
info from a pjsip module?
Note that I'm using pjsua2 at the top, so my final goal is to retrieve
the pjsua2 account/call class pointer in my module...
Thanks for any help
Regards,
Thibault
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org