[Freeswitch-users] How to send SIP signaling message from fs console.

Michael Jerris mike at jerris.com
Sat May 23 00:19:24 MSD 2015


> On May 22, 2015, at 1:57 PM, Naveen Tamanam <naveen32india at gmail.com> wrote:
> 
> Hi Michael, 
> 
> Thanks for your concern. Many times I fell freeswitch commands are crafted in such a way we don't need to deal with low level sip manipulation. 
> 
> I am trying to know about, 
> Hang up the call with specific reason. Putting the sip header (Reason: Q.850;cause=21;text="CALL_REJECTED")

hangup app or uuid_hangup api

> Using custom user agent string when it is required. 

sofia profile param user-agent-string

> Only putting commands we want in the sip allow header. 

The allow string will always include:

INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, NOTIFY

UPDATE, REGISTER, REFER, and PRACK are controlled by sofia profile params

I am not sure when you would want to control this further...

> 
> 
> 
> 
> On Fri, May 22, 2015 at 1:53 AM, Michael Jerris <mike at jerris.com <mailto:mike at jerris.com>> wrote:
> Or its totally possible that I have asked for specifics multiple times now and you have ignored me every single time.  YOU CAN DO THIS IN FREESWITCH BUT I CAN NOT TELL YOU HOW UNLESS YOU TELL ME WHAT SIP MESSAGES YOU ARE TRYING TO SEND IN WHAT SITUATIONS!!!!!!!!
> 
> 
>> On May 21, 2015, at 4:14 PM, Naveen Tamanam <naveen32india at gmail.com <mailto:naveen32india at gmail.com>> wrote:
>> 
>> Giovanni, 
>> 
>> Thank you very much, my intention is to know the way  to handle/manipulate (low level) sip packets with freeswitch if it possible. As per your reply this is obvious way to use Kamailio or OpenSIPS infront of FS. 
>> 
>> On Thu, May 21, 2015 at 4:31 PM, Giovanni Maruzzelli <gmaruzz at gmail.com <mailto:gmaruzz at gmail.com>> wrote:
>> Naveen,
>> 
>> Please take note that FreeSWITCH is not intended to let the user to manipulate in arbitrary way SIP dialogs.
>> 
>> You can do that for specific purposes and in.specific cases, within specific boundaries.
>> 
>> If you are looking to interact with SIP directly and freely, you may want to look at Kamailio and OpenSIPS.
>> 
>> You can put one of them in front of FreeSWITCH, and you can cross command them, for example via.lua scripting (both of them and FreeSWITCH can be scripted in.lua).
>> 
>> sent from my mobile,
>> Giovanni Maruzzelli
>> cell: +39 347 266 56 18
>> 
>> On May 20, 2015 3:40 PM, "Naveen Tamanam" <naveen32india at gmail.com <mailto:naveen32india at gmail.com>> wrote:
>> I am aware of uuid_hangup. Indeed my intention to know the way to send (low level)sip messages 
>> from fs console for a selected user. 
>> 
>> 
>> On Tue, May 19, 2015 at 2:51 AM, Steven Ayre <steveayre at gmail.com <mailto:steveayre at gmail.com>> wrote:
>>  I would like to reject the call when it ringing from the fs console. 
>> 
>> uuid_hangup
>>  
>> 
>> On 18 May 2015 at 21:59, Naveen Tamanam <naveen32india at gmail.com <mailto:naveen32india at gmail.com>> wrote:
>> I am trying to do the following,  I would like to reject the call when it ringing from the fs console. 
>> And second thing is I am pretty much eager to know the way to send sip(signaling) message manually for a 
>> selected channel from fs console. 
>> 
>> 
>> On Tue, May 19, 2015 at 2:19 AM, Michael Jerris <mike at jerris.com <mailto:mike at jerris.com>> wrote:
>> respond is one way, what exact message are you trying to send, and at what point in the call.  There are capabilites to trigger re-invites in some situations, transfer, send notify or info or message.  It depends on what exactly you are trying to do.
>> 
>> 
>>> On May 18, 2015, at 4:30 PM, Naveen Tamanam <naveen32india at gmail.com <mailto:naveen32india at gmail.com>> wrote:
>>> 
>>> Hi, 
>>> 
>>> I am wondering how to send sip signaling message from the fs console for the particular user/caller. 
>>> I found  respond dialplan application to send sip message back to the caller. 
>>> Like 
>>> <action application="respond" data="480 Try again later"/>
>>> ​Is there any way to send sip message back to the caller. One use case is call rejection or playing with SIP​
>>> 
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org <http://www.freeswitch.org/>
> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
> http://www.cluecon.com <http://www.cluecon.com/>
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> http://www.freeswitch.org <http://www.freeswitch.org/>
> 
> 
> 
> -- 
> Thanks & Regards,
> Naveen Tamanam
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150522/d530a8b6/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list