[Freeswitch-users] SIP 302 Redirect

Loi Dang loidang at hoiio.com
Tue Apr 7 02:35:15 UTC 2020


You may want to deal with FS channel variable here, especially with
export_vars variable and set & export functions
https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables

Also take a look at sip_h_*, sip_rh_*, and sip_ph headers for dealing with
SIP header (request & response)

rgds,
Loi Dang

On Mon, Apr 6, 2020 at 6:05 PM Giri <girish.dharmaraj at gmail.com> wrote:

> Hello Sir,
>
> Noted with thanks. Relaly appreciate your response.  I am trying it but I
> need another clarification if you can see the below message received from
> the outbound on the 302 SIP , I have an header Subject: Callinfo, is it
> possible to store this Callinfo to a variable and pass it to the inbound
> side as it is without making any changes to the Subject header .
>
> SIP/2.0 302 Moved Temporarily
>    Via: SIP/2.0/UDP 192.168.200.18:5080
> ;rport=5080;branch=z9hG4bK2Z7c6ZaXSQt5a
>    Contact: <sip:11111 at XX.XX.XX.XX>
>    To: <sip:1234567895 at 192.168.200.44:30007>;tag=aa14db7c
>    From: "104"<sip:FreeSWITCH at 192.168.200.44:30007>;tag=gHg6SeSDN569j
>    Call-ID: a80638c1-f296-1238-21ab-3417ebe52801
>    CSeq: 18531190 INVITE
>    Subject:
> callinfo=012020001A01316P100000000000448048898116681921495000035040100100100586400035010100100100586400035020100100100586400031020100100100586400031020100100100586400010
>    User-Agent: hmd/2.0
>    Content-Length: 0
>
> With Best Regards,
> Girish Dharmaraj
>
>
> On Mon, Apr 6, 2020 at 10:51 AM Loi Dang <loidang at hoiio.com> wrote:
>
>> try * wildcard matching in your `redirected` context's extension, then do
>> a <action application="redirect" data="sip:${destination_number}@$${sip_ip}"/>
>> in the end.
>> Hope this helps.
>>
>> rgds,
>> Loi Dang
>>
>> On Sun, Apr 5, 2020 at 6:26 PM Giri <girish.dharmaraj at gmail.com> wrote:
>>
>>> Hello Sir,
>>>
>>> I tried that, but it just goes into the redirect context and fails
>>> finding no match and call is released with 503.
>>>
>>> On Sat, Apr 4, 2020, 23:36 Loi Dang <loidang at hoiio.com> wrote:
>>>
>>>> Hi, try manual-redirect option in SIP profile?
>>>> rgds,
>>>> Loi Dang
>>>>
>>>> On Sat, Apr 4, 2020, 10:12 PM Giri <girish.dharmaraj at gmail.com> wrote:
>>>>
>>>>> Good Day, I have a scenario where the Outbound GW sends SIP 302 and
>>>>> all I need is to send the SIP 302 message to the Inbound.  No Routing needs
>>>>> to take place, is this possible?
>>>>>
>>>>> With Best Regards,
>>>>> Girish Dharmaraj
>>>>>
>>>>> _________________________________________________________________________
>>>>>
>>>>> 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 at 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 at lists.freeswitch.org
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:
>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>> https://freeswitch.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 at 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 at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> https://freeswitch.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 at 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 at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> https://freeswitch.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 at 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 at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> https://freeswitch.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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200407/010b79d7/attachment-0001.html>


More information about the FreeSWITCH-users mailing list