> On Jul 15, 2022, at 8:09 AM, Patrick Karton <
patrickarton@hotmail.com> wrote:
>
> is there a way for freeswitch to convert receive response code to another code.
>
> i would like for example to convert 3xx received code to 603 code.
Kind of.
FreeSWITCH doesn’t expose low-level signalling anatomy on that level of granularity. You don’t handle individual SIP messages in the dial plan, right? You handle channel events and call flows. This is because FreeSWITCH generalises call events from all the signalling technologies it supports.
However, some innards of the Sofia SIP driver are exposed; it’s by no means an airtight abstraction. You can exert some control over what FreeSWITCH does in certain scenarios. But, thinking of them on the level of a SIP message is unproductive and fruitless. This question really operates on a different level.
But in terms of handling redirects per se:
https://freeswitch.org/confluence/display/FREESWITCH/Handling+SIP+RedirectIf you use ’sip_redirect_context’ to kick the call to a context which then contains:
<action application=“hangup” data=“CALL_REJECTED”/>
See this for more details:
https://freeswitch.org/confluence/display/FREESWITCH/Hangup+Cause+Code+TableThus, in a roundabout way, you can do it, but it doesn’t mean you can handle any SIP request or reply any way you want at that level of granularity.
— Alex
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web:
http://www.evaristesys.com/,
http://www.csrpswitch.com/_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire
https://signalwire.comEnhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time
https://signalwire.communityProfessional FreeSWITCH Services
sales@freeswitch.comhttps://freeswitch.comOfficial FreeSWITCH Sites
https://freeswitch.com/osshttps://freeswitch.org/confluencehttps://cluecon.comFreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-usershttps://freeswitch.com