[Freeswitch-users] 302 Redirect
Christian Jensen
Christian.Jensen at Teligence.Net
Fri Jul 10 10:54:55 PDT 2009
I think I may not have been clear enough on my original post - not
unusual for me :-)
The information below is for handling incoming redirects - I am certain
that it works perfectly from what I see in the source code - however...
What I am trying to do is adjust the "From" header in an Outgoing
redirect that I am sending to another device (a nextone).
Effectively what is happening is I am receiving a call and then telling
the originator that I would like them to go somewhere else but at the
same time I am changing the "From" field to look like a different number
is calling - changing the Caller Id won't cut it.
What I need to be able to do is have a parameter on the "redirect"
application or have a "From" field override channel variable.
Is this doable? I can build and test from source if need be - I am just
not familiar enough with the code to do it the "right" way.
Thanks!
Christian Jensen
Software Development Manager
Back Office
________________________________
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Brian West
Sent: Friday, July 10, 2009 9:41 AM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] 302 Redirect
Ok you need the nice new feature I added to FreeSWITCH that lets you
handle all the 302 redirects in your own dialplan/context.
Set the param manual-redirect on your sofia profile then you can define
sip_redirect_profile, sip_redirect_context, sip_redirect_dialplan or you
can create a context called redirected and do anything you wish with the
302'ed call 100% manually.
You'll get
sip_redirect_contact_X
sip_redirected_to
sip_redirect_contact_user_X
sip_redirect_contact_host_X
sip_redirect_contact_params_X
sip_redirected_by
All of these will help you process this via the dialplan.
/b
On Jul 10, 2009, at 11:32 AM, Christian Jensen wrote:
Hi everyone!
I have a question - I need to change the "From" SIP header during a
"Redirect" to make it look like the number that called is a different
number.
I need to be able to change it but it is not taking - I have tried just
about every combination of variable settings that I know of but the SIP
message is just not getting the data.
Here is my config:
<include>
<extension name="public_did">
<condition field="destination_number"
expression="^(\+12396897777)$">
<action application="set"
data="sip_from_user_stripped=false"/>
<action application="set"
data="sip_from_user=0445555555"/>
<action application="set"
data="sip_invite_domain=sip:0446666666 at 192.168.8.2"/>
<action application="set"
data="sip_h_Referred-By=sip:0447777777 at 192.168.8.2"/>
<action application="set"
data="From=sip:0448888888 at 192.168.8.2"/>
<action application="set" data="myani=0449999999"/>
<action application="redirect"
data="sip:7789964284 at 192.168.8.2"/>
</condition>
</extension>
</include>
In fact - it would appear that no channel variables are making it out
the door during a redirect.
Any help would be greatly appreciated.
Thanks!
Christian Jensen
Software Development Manager - Back Office
Teligence
T: 604-629-6055 Ext. 3304
M: 778-996-4283
F: 604-257-5578
christian.jensen at teligence.net
www.teligence.net <http://www.teligence.net/>
_______________________________________________
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/20090710/6375cf26/attachment-0002.html
More information about the FreeSWITCH-users
mailing list