Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] CONVERT 3XX to 603


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
patrickarton at hotmai...
Guest





PostPosted: Fri Jul 15, 2022 7:36 am    Post subject: [Freeswitch-users] CONVERT 3XX to 603 Reply with quote

Hello All,


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.


Thanks.
Back to top
abalashov at evaristes...
Guest





PostPosted: Mon Jul 25, 2022 5:02 pm    Post subject: [Freeswitch-users] CONVERT 3XX to 603 Reply with quote

Quote:
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+Redirect

If 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+Table

Thus, 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.com
Enhance 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.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
patrickarton at hotmai...
Guest





PostPosted: Mon Jul 25, 2022 6:01 pm    Post subject: [Freeswitch-users] CONVERT 3XX to 603 Reply with quote

Thanks a lot Alex.

De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> de la part de Alex Balashov <abalashov@evaristesys.com>
Envoy : lundi 25 juillet 2022 22:32
: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Objet : Re: [Freeswitch-users] CONVERT 3XX to 603


Quote:
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 doesnt expose low-level signalling anatomy on that level of granularity. You dont 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; its 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+Redirect

If 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+Table

Thus, in a roundabout way, you can do it, but it doesnt 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.com
Enhance 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.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
daveh at drachtio.org
Guest





PostPosted: Tue Jul 26, 2022 4:34 am    Post subject: [Freeswitch-users] CONVERT 3XX to 603 Reply with quote

HI Alex
Just to chime in with another solution here. I developed drachtio (https://drachtio.org/) as a solution to make it easy for developers coming from a web background to build sip apps. You can build both sip proxy and B2B apps. Doing things like changing headers is greatly simplified as well. If you want to learn more, feel free to join my slack channel to ask questions of me or the community at https://joinslack.jambonz.org

Best

DaveOn Jul 25, 2022, at 11:32 PM, Patrick Karton <patrickarton@hotmail.com (patrickarton@hotmail.com)> wrote:
Thanks a lot Alex.

De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> de la part de Alex Balashov <abalashov@evaristesys.com (abalashov@evaristesys.com)>Envoyé : lundi 25 juillet 2022 22:32À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>Objet : Re: [Freeswitch-users] CONVERT 3XX to 603

Quote:
On Jul 15, 2022, at 8:09 AM, Patrick Karton <patrickarton@hotmail.com (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:sales@freeswitch.com (sales@freeswitch.com)FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)http://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttps://freeswitch.com

_________________________________________________________________________The FreeSWITCH project is sponsored by SignalWire sales@freeswitch.com (sales@freeswitch.com)FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)http://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttps://freeswitch.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services