Hi Antonis,
You can ignore incoming invite by setting nua parameters. Just provide SIP
method names which you would like to allow for your SIP client application by
passing them in "SIPTAG_ALLOW_STR".
For example,
After call to nua_create call below API.
nua_set_params(ptrApp->AppCtx.Nua,
SIPTAG_ALLOW_STR("BYE,CANCEL,OPTIONS,INFO,MESSAGE"), // don't provide INVITE
here NUTAG_ENABLEMESSAGE(1),
NUTAG_ENABLEINVITE(0), // set 0 here TAG_NULL());
By setting this Incoming INVITE is disabled and NUA answers 403 Forbidden. -
saiyam
On Tuesday, February 2, 2016 7:18 PM, Antonis Tsakiridis
<antonis.tsakiri...@telestax.com> wrote:
By ignore I mean to tell the local SIP stack to remove all resources for the
incoming call, but not send any SIP message across.
I've trying do that using nua_handle_destroy() for the unanswered sofia handle
(i.e. without sending BYE, or answering with an 'error' code), but it seems
that Sofia generates a response anyway.
Is there a way to avoid this? I've been able to do that using JAIN SIP stack
but not Sofia.
Best regards, Antonis
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel