Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] 302 Redirect


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





PostPosted: Fri Jul 10, 2009 11:34 am    Post subject: [Freeswitch-users] 302 Redirect Reply with quote

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@192.168.8.2"/>
<action application="set" data="sip_h_Referred-By=sip:0447777777@192.168.8.2"/>
<action application="set" data="From=sip:0448888888@192.168.8.2"/>
<action application="set" data="myani=0449999999"/>
<action application="redirect" data="sip:7789964284@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@teligence.net (christian.jensen@teligence.net)
www.teligence.net
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Jul 10, 2009 11:42 am    Post subject: [Freeswitch-users] 302 Redirect Reply with quote

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:
Quote:
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=[url=sip:0446666666@192.168.8.2]sip:0446666666@192.168.8.2[/url]"/>
<action application="set" data="sip_h_Referred-By=[url=sip:0447777777@192.168.8.2]sip:0447777777@192.168.8.2[/url]"/>
<action application="set" data="From=[url=sip:0448888888@192.168.8.2]sip:0448888888@192.168.8.2[/url]"/>
<action application="set" data="myani=0449999999"/>
<action application="redirect" data="[url=sip:7789964284@192.168.8.2]sip:7789964284@192.168.8.2[/url]"/>
</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@teligence.net (christian.jensen@teligence.net)
www.teligence.net


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
mrene_lists at avgs.ca
Guest





PostPosted: Fri Jul 10, 2009 11:44 am    Post subject: [Freeswitch-users] 302 Redirect Reply with quote

You can also set the following variables to control where the call will go once you get a 302:

sip_redirect_profile (used to build the dialstrings)
sip_redirect_context (the dialplan context to send the call)
sip_redirect_dialplan (the dialplan to send the call)

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene@avgs.ca (mrene@avgs.ca)








On 10-Jul-09, at 12:41 PM, Brian West wrote:
Quote:
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:
Quote:
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=[url=sip:0446666666@192.168.8.2]sip:0446666666@192.168.8.2[/url]"/>
<action application="set" data="sip_h_Referred-By=[url=sip:0447777777@192.168.8.2]sip:0447777777@192.168.8.2[/url]"/>
<action application="set" data="From=[url=sip:0448888888@192.168.8.2]sip:0448888888@192.168.8.2[/url]"/>
<action application="set" data="myani=0449999999"/>
<action application="redirect" data="[url=sip:7789964284@192.168.8.2]sip:7789964284@192.168.8.2[/url]"/>
</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@teligence.net (christian.jensen@teligence.net)
www.teligence.net


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@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@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Jul 10, 2009 11:47 am    Post subject: [Freeswitch-users] 302 Redirect Reply with quote

We really need a wiki page for this. This is handy for those people that do CNAM dips via 302's.

/b

On Jul 10, 2009, at 11:43 AM, Mathieu Rene wrote:
Quote:
You can also set the following variables to control where the call will go once you get a 302:

sip_redirect_profile (used to build the dialstrings)
sip_redirect_context (the dialplan context to send the call)
sip_redirect_dialplan (the dialplan to send the call)

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene@avgs.ca (mrene@avgs.ca)




Back to top
Christian.Jensen at Te...
Guest





PostPosted: Fri Jul 10, 2009 11:54 am    Post subject: [Freeswitch-users] 302 Redirect Reply with quote

I will give it a try.

Gracias!

Christian Jensen
Software Development Manager
Back Office


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: Friday, July 10, 2009 9:41 AM
To: freeswitch-users@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=[url=sip:0446666666@192.168.8.2]sip:0446666666@192.168.8.2[/url]"/>

<action application="set" data="sip_h_Referred-By=[url=sip:0447777777@192.168.8.2]sip:0447777777@192.168.8.2[/url]"/>

<action application="set" data="From=[url=sip:0448888888@192.168.8.2]sip:0448888888@192.168.8.2[/url]"/>

<action application="set" data="myani=0449999999"/>

<action application="redirect" data="[url=sip:7789964284@192.168.8.2]sip:7789964284@192.168.8.2[/url]"/>

</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@teligence.net (christian.jensen@teligence.net)
www.teligence.net




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Christian.Jensen at Te...
Guest





PostPosted: Fri Jul 10, 2009 12:58 pm    Post subject: [Freeswitch-users] 302 Redirect Reply with quote

I think I may not have been clear enough on my original post – not unusual for me J

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@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: Friday, July 10, 2009 9:41 AM
To: freeswitch-users@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=[url=sip:0446666666@192.168.8.2]sip:0446666666@192.168.8.2[/url]"/>

<action application="set" data="sip_h_Referred-By=[url=sip:0447777777@192.168.8.2]sip:0447777777@192.168.8.2[/url]"/>

<action application="set" data="From=[url=sip:0448888888@192.168.8.2]sip:0448888888@192.168.8.2[/url]"/>

<action application="set" data="myani=0449999999"/>

<action application="redirect" data="[url=sip:7789964284@192.168.8.2]sip:7789964284@192.168.8.2[/url]"/>

</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@teligence.net (christian.jensen@teligence.net)
www.teligence.net




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mrene_lists at avgs.ca
Guest





PostPosted: Fri Jul 10, 2009 1:01 pm    Post subject: [Freeswitch-users] 302 Redirect Reply with quote

Add that to your gateway:

<param name="caller-id-in-from" value="true" />


Then set the callerid.


Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene@avgs.ca (mrene@avgs.ca)








On 10-Jul-09, at 1:54 PM, Christian Jensen wrote:
Quote:
I think I may not have been clear enough on my original post – not unusual for me J

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@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Brian West
Sent: Friday, July 10, 2009 9:41 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@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=[url=sip:0446666666@192.168.8.2]sip:0446666666@192.168.8.2[/url]"/>

<action application="set" data="sip_h_Referred-By=[url=sip:0447777777@192.168.8.2]sip:0447777777@192.168.8.2[/url]"/>

<action application="set" data="From=[url=sip:0448888888@192.168.8.2]sip:0448888888@192.168.8.2[/url]"/>

<action application="set" data="myani=0449999999"/>

<action application="redirect" data="[url=sip:7789964284@192.168.8.2]sip:7789964284@192.168.8.2[/url]"/>

</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@teligence.net (christian.jensen@teligence.net)
www.teligence.net




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@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@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Jul 10, 2009 1:07 pm    Post subject: [Freeswitch-users] 302 Redirect Reply with quote

Can you show me what we send now vs what you want to send in a sip packet?

/b

On Jul 10, 2009, at 12:54 PM, Christian Jensen wrote:
Quote:
I think I may not have been clear enough on my original post – not unusual for me J

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

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