[Freeswitch-users] redirect in dialplan
Brian West
brian at freeswitch.org
Mon Apr 21 07:47:27 PDT 2008
Could it be the far end not actually following a 302 redirect? Some
people will not follow it due to toll fraud issues. You can totally
bypass some ones billing systems with it. Do you know what devices
you're sending a 302 redirect to? Can you collect the sip trace of
the redirect?
/b
On Apr 21, 2008, at 9:31 AM, Jonas Gauffin wrote:
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <document type="freeswitch/xml">
> <section name="dialplan" description="ModCurlDialplan">
> <context name="default">
> <extension name=" 1201 ">
> <condition field="destination_number" expression="1201">
> <action application="set" data="accountcode=1"/>
> <action application="set" data="gate_direction=outbound"/>
> <action application="set" data="gate_context=external"/>
> <action application="set" data="gate_site_id=1"/>
> <action application="redirect"
> data="sip:+46706930821 at sipgw2.gotanet.se"/>
> </condition>
> </extension>
> </context>
> </section>
>
> In this case I'm trying to send the redirect to my sip gateway. I've
> also tried to send the redirect to another user in my site
> (sip:u10001 at myrealdomain.com).
>
> Both give that error shown in the log in my first email.
>
> On Mon, Apr 21, 2008 at 4:11 PM, Brian West <brian at freeswitch.org>
> wrote:
>> Can you provide the dialplan you're using? And what device are you
>> sending the redirect to?
>>
>> /b
>>
>>
>>
>> On Apr 21, 2008, at 9:06 AM, Jonas Gauffin wrote:
>>
>>> just trying to send a 302.
>>>
>>> On Mon, Apr 21, 2008 at 3:55 PM, Brian West <brian at freeswitch.org>
>>> wrote:
>>>> Is this a redirect done by the far end device? or you're just
>>>> trying
>>>> to send a 302 from FreeSWITCH?
>>>>
>>>> /b
>>>>
>>>>
>>>> On Apr 21, 2008, at 8:47 AM, Jonas Gauffin wrote:
>>>>
>>>>> huh?
>>>>>
>>>>> I'm using a custom dialplan (through mod_xml_curl) and are
>>>>> trying to
>>>>> use the "redirect" application.
>>>>>
>>>>> You telling me that I should use the deflect app instead? What's
>>>>> the
>>>>> different between deflect and redirect?
>>>>
>>>>
>>>>
>>>> Brian West
>>>> sip:brian at freeswitch.org
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>
>>> _______________________________________________
>>> 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
>>
>> Brian West
>> sip:brian at freeswitch.org
>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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
Brian West
sip:brian at freeswitch.org
More information about the FreeSWITCH-users
mailing list