Hello all, we are developing a custom app that will require sending a Subject: header (with a specific value) with the initial invite to trigger additional calling features and behavior. What we're finding when we send the Invite, is that FS is dropping the Subject: header and continues normal call processing. Is there a configuration parameter that allows the header to pass through FS? I submitted a SIP trace in pastbin and the reference number is 14853. Mike
I assume you're doing a bridge? FreeSWITCH is a b2bua... meaning the call going into FreeSWITCH is a separate call from the one going out (it just links the media on the 2 calls together to bridge them). That's why the variable's not being copied across by default. It is however possible to tell FreeSWITCH to copy a variable from the A-leg to the B-leg, and any non-standard SIP headers can be read and written using the sip_h_ variable prefix. Try this: <extension name="..."> <condition ...> ... <action application="export" data="sip_h_Subject" /> <action application="bridge" data="..." /> ... </condition> </extension> The subject should be in the sip_h_Subject variable on the A-leg, the above will export (copy) that variable onto the B-leg and it should then appear in the outgoing invite. -Steve On 22 December 2010 15:45, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hello all, we are developing a custom app that will require sending a Subject: header (with a specific value) with the initial invite to trigger additional calling features and behavior. What we’re finding when we send the Invite, is that FS is dropping the Subject: header and continues normal call processing. Is there a configuration parameter that allows the header to pass through FS?
I submitted a SIP trace in pastbin and the reference number is 14853.
Mike
_______________________________________________ FreeSWITCH-users mailing list 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
Thanks Steve, I truly appreciate the tip. Mike -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Wednesday, December 22, 2010 10:57 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header I assume you're doing a bridge? FreeSWITCH is a b2bua... meaning the call going into FreeSWITCH is a separate call from the one going out (it just links the media on the 2 calls together to bridge them). That's why the variable's not being copied across by default. It is however possible to tell FreeSWITCH to copy a variable from the A-leg to the B-leg, and any non-standard SIP headers can be read and written using the sip_h_ variable prefix. Try this: <extension name="..."> <condition ...> ... <action application="export" data="sip_h_Subject" /> <action application="bridge" data="..." /> ... </condition> </extension> The subject should be in the sip_h_Subject variable on the A-leg, the above will export (copy) that variable onto the B-leg and it should then appear in the outgoing invite. -Steve On 22 December 2010 15:45, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hello all, we are developing a custom app that will require sending a Subject: header (with a specific value) with the initial invite to trigger additional calling features and behavior. What we're finding when we send the Invite, is that FS is dropping the Subject: header and continues normal call processing. Is there a configuration parameter that allows the header to pass through FS?
I submitted a SIP trace in pastbin and the reference number is 14853.
Mike
_______________________________________________ FreeSWITCH-users mailing list 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hey Steve, I tried to implement what you suggested and posted the console output to pastbin (14854). I forgot to add my dialplan xml, so I've pasted it here, since it's only a few lines. Sorry for pasting in the body of my email. Mike <extension name="sipexten"> <condition field="destination_number" expression="^(10[0-9][0-9])$"> <action application="export" data="sip_h_Subject" /> <action application="set" data="call_timeout=180"/> <action application="log" data="crit dialing extension $1" /> <action application="bridge" data="user/$1@${domain_name}" /> </condition> </extension> -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Wednesday, December 22, 2010 10:57 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header I assume you're doing a bridge? FreeSWITCH is a b2bua... meaning the call going into FreeSWITCH is a separate call from the one going out (it just links the media on the 2 calls together to bridge them). That's why the variable's not being copied across by default. It is however possible to tell FreeSWITCH to copy a variable from the A-leg to the B-leg, and any non-standard SIP headers can be read and written using the sip_h_ variable prefix. Try this: <extension name="..."> <condition ...> ... <action application="export" data="sip_h_Subject" /> <action application="bridge" data="..." /> ... </condition> </extension> The subject should be in the sip_h_Subject variable on the A-leg, the above will export (copy) that variable onto the B-leg and it should then appear in the outgoing invite. -Steve On 22 December 2010 15:45, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hello all, we are developing a custom app that will require sending a Subject: header (with a specific value) with the initial invite to trigger additional calling features and behavior. What we're finding when we send the Invite, is that FS is dropping the Subject: header and continues normal call processing. Is there a configuration parameter that allows the header to pass through FS?
I submitted a SIP trace in pastbin and the reference number is 14853.
Mike
_______________________________________________ FreeSWITCH-users mailing list 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hmm, Can you see whether sip_h_Subject is on the A-leg (you can use <action application="info"/> to log all the variables on the channel)? If is is, also try: <action application="export" data="sip_h_Subject=${sip_h_Subject}"/> although I didn't think this was required if the variable was already set with the same name. -Steve On 22 December 2010 16:29, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hey Steve, I tried to implement what you suggested and posted the console output to pastbin (14854). I forgot to add my dialplan xml, so I've pasted it here, since it's only a few lines. Sorry for pasting in the body of my email.
Mike
<extension name="sipexten"> <condition field="destination_number" expression="^(10[0-9][0-9])$"> <action application="export" data="sip_h_Subject" /> <action application="set" data="call_timeout=180"/> <action application="log" data="crit dialing extension $1" /> <action application="bridge" data="user/$1@${domain_name}" /> </condition> </extension>
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Wednesday, December 22, 2010 10:57 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
I assume you're doing a bridge?
FreeSWITCH is a b2bua... meaning the call going into FreeSWITCH is a separate call from the one going out (it just links the media on the 2 calls together to bridge them). That's why the variable's not being copied across by default.
It is however possible to tell FreeSWITCH to copy a variable from the A-leg to the B-leg, and any non-standard SIP headers can be read and written using the sip_h_ variable prefix. Try this:
<extension name="..."> <condition ...> ... <action application="export" data="sip_h_Subject" /> <action application="bridge" data="..." /> ... </condition> </extension>
The subject should be in the sip_h_Subject variable on the A-leg, the above will export (copy) that variable onto the B-leg and it should then appear in the outgoing invite.
-Steve
On 22 December 2010 15:45, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hello all, we are developing a custom app that will require sending a Subject: header (with a specific value) with the initial invite to trigger additional calling features and behavior. What we're finding when we send the Invite, is that FS is dropping the Subject: header and continues normal call processing. Is there a configuration parameter that allows the header to pass through FS?
I submitted a SIP trace in pastbin and the reference number is 14853.
Mike
_______________________________________________ FreeSWITCH-users mailing list 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hey Steve, the Subject is still not regenerated through the switch. I posted a new pastbin. 14858 Mike -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Wednesday, December 22, 2010 12:16 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header Hmm, Can you see whether sip_h_Subject is on the A-leg (you can use <action application="info"/> to log all the variables on the channel)? If is is, also try: <action application="export" data="sip_h_Subject=${sip_h_Subject}"/> although I didn't think this was required if the variable was already set with the same name. -Steve On 22 December 2010 16:29, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hey Steve, I tried to implement what you suggested and posted the console output to pastbin (14854). I forgot to add my dialplan xml, so I've pasted it here, since it's only a few lines. Sorry for pasting in the body of my email.
Mike
<extension name="sipexten"> <condition field="destination_number" expression="^(10[0-9][0-9])$"> <action application="export" data="sip_h_Subject" /> <action application="set" data="call_timeout=180"/> <action application="log" data="crit dialing extension $1" /> <action application="bridge" data="user/$1@${domain_name}" /> </condition> </extension>
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Wednesday, December 22, 2010 10:57 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
I assume you're doing a bridge?
FreeSWITCH is a b2bua... meaning the call going into FreeSWITCH is a separate call from the one going out (it just links the media on the 2 calls together to bridge them). That's why the variable's not being copied across by default.
It is however possible to tell FreeSWITCH to copy a variable from the A-leg to the B-leg, and any non-standard SIP headers can be read and written using the sip_h_ variable prefix. Try this:
<extension name="..."> <condition ...> ... <action application="export" data="sip_h_Subject" /> <action application="bridge" data="..." /> ... </condition> </extension>
The subject should be in the sip_h_Subject variable on the A-leg, the above will export (copy) that variable onto the B-leg and it should then appear in the outgoing invite.
-Steve
On 22 December 2010 15:45, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hello all, we are developing a custom app that will require sending a Subject: header (with a specific value) with the initial invite to trigger additional calling features and behavior. What we're finding when we send the Invite, is that FS is dropping the Subject: header and continues normal call processing. Is there a configuration parameter that allows the header to pass through FS?
I submitted a SIP trace in pastbin and the reference number is 14853.
Mike
_______________________________________________ FreeSWITCH-users mailing list 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 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
What is the sudden obsession with the subject header? Looking thru the code it appears as if sip_h_X and sip_h_P are the only two things that you can do... a patch will have to be made if you wish to set the subject on an outbound invite... see sofia_glue.c in do_invite. /b On Dec 22, 2010, at 12:50 PM, Kane, Michael (mkane02) wrote:
Hey Steve, the Subject is still not regenerated through the switch. I posted a new pastbin.
14858
Mike
We have a custom app that requires the Subject header with values so our endpoints can route the audio accordingly. I'm ok with using sip_h_X and or sip_h_P, but can't seem to get FS to pass the Subject header. Any direction would be greatly appreciated. Mike -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, December 22, 2010 1:58 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header What is the sudden obsession with the subject header? Looking thru the code it appears as if sip_h_X and sip_h_P are the only two things that you can do... a patch will have to be made if you wish to set the subject on an outbound invite... see sofia_glue.c in do_invite. /b On Dec 22, 2010, at 12:50 PM, Kane, Michael (mkane02) wrote:
Hey Steve, the Subject is still not regenerated through the switch. I posted a new pastbin.
14858
Mike
_______________________________________________ FreeSWITCH-users mailing list 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
Michael, what Brian meant is that FreeSWICH can only passes the X-something and P-something headers, which are the only allowed ones. Any system requiring custom headers should implement: X-Subject and not Subject David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 22/12/2010 à 20:09, Kane, Michael (mkane02) a écrit :
We have a custom app that requires the Subject header with values so our endpoints can route the audio accordingly. I'm ok with using sip_h_X and or sip_h_P, but can't seem to get FS to pass the Subject header. Any direction would be greatly appreciated.
Mike
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, December 22, 2010 1:58 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
What is the sudden obsession with the subject header? Looking thru the code it appears as if sip_h_X and sip_h_P are the only two things that you can do... a patch will have to be made if you wish to set the subject on an outbound invite... see sofia_glue.c in do_invite.
/b
On Dec 22, 2010, at 12:50 PM, Kane, Michael (mkane02) wrote:
Hey Steve, the Subject is still not regenerated through the switch. I posted a new pastbin.
14858
Mike
_______________________________________________ FreeSWITCH-users mailing list 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks David, I really appreciate your clarification. Brian, please contact me regarding how we can get a patch incorporated into FS to pass the Subject header. Thanks Mike From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of David Ponzone Sent: Wednesday, December 22, 2010 2:31 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header Michael, what Brian meant is that FreeSWICH can only passes the X-something and P-something headers, which are the only allowed ones. Any system requiring custom headers should implement: X-Subject and not Subject David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr <BLOCKED::http://www.ipeva.fr/> - www.ipeva-studio.com <BLOCKED::http://www.ipeva-studio.com/> Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 22/12/2010 à 20:09, Kane, Michael (mkane02) a écrit : We have a custom app that requires the Subject header with values so our endpoints can route the audio accordingly. I'm ok with using sip_h_X and or sip_h_P, but can't seem to get FS to pass the Subject header. Any direction would be greatly appreciated. Mike -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, December 22, 2010 1:58 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header What is the sudden obsession with the subject header? Looking thru the code it appears as if sip_h_X and sip_h_P are the only two things that you can do... a patch will have to be made if you wish to set the subject on an outbound invite... see sofia_glue.c in do_invite. /b On Dec 22, 2010, at 12:50 PM, Kane, Michael (mkane02) wrote: Hey Steve, the Subject is still not regenerated through the switch. I posted a new pastbin. 14858 Mike _______________________________________________ FreeSWITCH-users mailing list 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Please visit jira.freeswitch.org and open a ticket. /b On Dec 22, 2010, at 1:40 PM, Kane, Michael (mkane02) wrote:
Thanks David, I really appreciate your clarification.
Brian, please contact me regarding how we can get a patch incorporated into FS to pass the Subject header.
Thanks Mike
Thank Brian. Mike From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, December 22, 2010 2:43 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header Please visit jira.freeswitch.org and open a ticket. /b On Dec 22, 2010, at 1:40 PM, Kane, Michael (mkane02) wrote: Thanks David, I really appreciate your clarification. Brian, please contact me regarding how we can get a patch incorporated into FS to pass the Subject header. Thanks Mike
David, Change your custom app to use X-Subject not Subject (AFAIK the RFC says any custom headers should be prefixed X-). My previous example will then work if you export sip_h_X-Subject. -Steve On 22 December 2010 19:40, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Thanks David, I really appreciate your clarification.
Brian, please contact me regarding how we can get a patch incorporated into FS to pass the Subject header.
Thanks Mike
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of David Ponzone Sent: Wednesday, December 22, 2010 2:31 PM
To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
Michael,
what Brian meant is that FreeSWICH can only passes the X-something and P-something headers, which are the only allowed ones.
Any system requiring custom headers should implement:
X-Subject
and not
Subject
David Ponzone Direction Technique
email: david.ponzone@ipeva.fr
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
www.ipeva.fr - www.ipeva-studio.com
Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 22/12/2010 à 20:09, Kane, Michael (mkane02) a écrit :
We have a custom app that requires the Subject header with values so our endpoints can route the audio accordingly. I'm ok with using sip_h_X and or sip_h_P, but can't seem to get FS to pass the Subject header. Any direction would be greatly appreciated.
Mike
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, December 22, 2010 1:58 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
What is the sudden obsession with the subject header? Looking thru the code it appears as if sip_h_X and sip_h_P are the only two things that you can do... a patch will have to be made if you wish to set the subject on an outbound invite... see sofia_glue.c in do_invite.
/b
On Dec 22, 2010, at 12:50 PM, Kane, Michael (mkane02) wrote:
Hey Steve, the Subject is still not regenerated through the switch. I
posted a new pastbin.
14858
Mike
_______________________________________________ FreeSWITCH-users mailing list 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hey Steve/David, I'm a bit confused about having to add the X- prefix to the Subject header. Can you please point me in the direction of which RFC talks to experimental headers? Thanks Mike Ps...thanks for looking into this for me. -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Wednesday, December 22, 2010 5:04 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header David, Change your custom app to use X-Subject not Subject (AFAIK the RFC says any custom headers should be prefixed X-). My previous example will then work if you export sip_h_X-Subject. -Steve On 22 December 2010 19:40, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Thanks David, I really appreciate your clarification.
Brian, please contact me regarding how we can get a patch incorporated into FS to pass the Subject header.
Thanks Mike
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of David Ponzone Sent: Wednesday, December 22, 2010 2:31 PM
To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
Michael,
what Brian meant is that FreeSWICH can only passes the X-something and P-something headers, which are the only allowed ones.
Any system requiring custom headers should implement:
X-Subject
and not
Subject
David Ponzone Direction Technique
email: david.ponzone@ipeva.fr
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
www.ipeva.fr - www.ipeva-studio.com
Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 22/12/2010 à 20:09, Kane, Michael (mkane02) a écrit :
We have a custom app that requires the Subject header with values so our endpoints can route the audio accordingly. I'm ok with using sip_h_X and or sip_h_P, but can't seem to get FS to pass the Subject header. Any direction would be greatly appreciated.
Mike
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, December 22, 2010 1:58 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
What is the sudden obsession with the subject header? Looking thru the code it appears as if sip_h_X and sip_h_P are the only two things that you can do... a patch will have to be made if you wish to set the subject on an outbound invite... see sofia_glue.c in do_invite.
/b
On Dec 22, 2010, at 12:50 PM, Kane, Michael (mkane02) wrote:
Hey Steve, the Subject is still not regenerated through the switch. I
posted a new pastbin.
14858
Mike
_______________________________________________ FreeSWITCH-users mailing list 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 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
http://www.rfc-editor.org/rfc/rfc3427.txt The RFC recognises X- has been used in other protocols (eg SMTP) and says prefix P- should be used for SIP. In practice both P- and X- are used. The reason is that if you are setting a custom header, it avoids conflicts if they revise the SIP specification in future (eg for SIPv3) and add a header with the same name as yours but a different purpose. See also: http://blogs.voxeo.com/speakingofstandards/2008/05/06/what-is-a-p-header-in-... http://www.the-asterisk-book.com/unstable/applikationen-sipaddheader.html Note that the X-header functionality is specifically coded within the Sofia-SIP library: http://sofia-sip.sourceforge.net/refdocs/sip/group__sip__header__x.html To handle custom headers not prefixed with X- or P- would involve considerable rewriting of the library to expose the ability. Since the library is written by Nokia that would result in a large difference between the FS and upstream versions, making it hard to maintain. Regards, Steve On 23 December 2010 13:46, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hey Steve/David, I'm a bit confused about having to add the X- prefix to the Subject header. Can you please point me in the direction of which RFC talks to experimental headers?
Thanks Mike
Ps...thanks for looking into this for me.
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Wednesday, December 22, 2010 5:04 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
David,
Change your custom app to use X-Subject not Subject (AFAIK the RFC says any custom headers should be prefixed X-). My previous example will then work if you export sip_h_X-Subject.
-Steve
On 22 December 2010 19:40, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Thanks David, I really appreciate your clarification.
Brian, please contact me regarding how we can get a patch incorporated into FS to pass the Subject header.
Thanks Mike
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of David Ponzone Sent: Wednesday, December 22, 2010 2:31 PM
To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
Michael,
what Brian meant is that FreeSWICH can only passes the X-something and P-something headers, which are the only allowed ones.
Any system requiring custom headers should implement:
X-Subject
and not
Subject
David Ponzone Direction Technique
email: david.ponzone@ipeva.fr
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
www.ipeva.fr - www.ipeva-studio.com
Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 22/12/2010 à 20:09, Kane, Michael (mkane02) a écrit :
We have a custom app that requires the Subject header with values so our endpoints can route the audio accordingly. I'm ok with using sip_h_X and or sip_h_P, but can't seem to get FS to pass the Subject header. Any direction would be greatly appreciated.
Mike
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, December 22, 2010 1:58 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
What is the sudden obsession with the subject header? Looking thru the code it appears as if sip_h_X and sip_h_P are the only two things that you can do... a patch will have to be made if you wish to set the subject on an outbound invite... see sofia_glue.c in do_invite.
/b
On Dec 22, 2010, at 12:50 PM, Kane, Michael (mkane02) wrote:
Hey Steve, the Subject is still not regenerated through the switch. I
posted a new pastbin.
14858
Mike
_______________________________________________ FreeSWITCH-users mailing list 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 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 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I'm sure they could find a way... On 23 December 2010 16:04, Brian West <brian@freeswitch.org> wrote:
This makes me laugh... could they fuck it up any worse then it already is?
/b
On Dec 23, 2010, at 9:46 AM, Steven Ayre wrote:
SIPv3
_______________________________________________ FreeSWITCH-users mailing list 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
This is how http://tools.ietf.org/html/draft-shirasaki-nat444-isp-shared-addr-04 /b On Dec 23, 2010, at 10:24 AM, Steven Ayre wrote:
I'm sure they could find a way...
On 23 December 2010 16:04, Brian West <brian@freeswitch.org> wrote:
This makes me laugh... could they fuck it up any worse then it already is?
/b
On Dec 23, 2010, at 9:46 AM, Steven Ayre wrote:
SIPv3
Sorry Brian, I'm didn't follow(understand) your thread. Mike -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Thursday, December 23, 2010 11:05 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header This makes me laugh... could they fuck it up any worse then it already is? /b On Dec 23, 2010, at 9:46 AM, Steven Ayre wrote:
SIPv3
_______________________________________________ FreeSWITCH-users mailing list 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
Thanks Steve. Mike -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Thursday, December 23, 2010 10:46 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header http://www.rfc-editor.org/rfc/rfc3427.txt The RFC recognises X- has been used in other protocols (eg SMTP) and says prefix P- should be used for SIP. In practice both P- and X- are used. The reason is that if you are setting a custom header, it avoids conflicts if they revise the SIP specification in future (eg for SIPv3) and add a header with the same name as yours but a different purpose. See also: http://blogs.voxeo.com/speakingofstandards/2008/05/06/what-is-a-p-header-in-... http://www.the-asterisk-book.com/unstable/applikationen-sipaddheader.html Note that the X-header functionality is specifically coded within the Sofia-SIP library: http://sofia-sip.sourceforge.net/refdocs/sip/group__sip__header__x.html To handle custom headers not prefixed with X- or P- would involve considerable rewriting of the library to expose the ability. Since the library is written by Nokia that would result in a large difference between the FS and upstream versions, making it hard to maintain. Regards, Steve On 23 December 2010 13:46, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hey Steve/David, I'm a bit confused about having to add the X- prefix to the Subject header. Can you please point me in the direction of which RFC talks to experimental headers?
Thanks Mike
Ps...thanks for looking into this for me.
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Wednesday, December 22, 2010 5:04 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
David,
Change your custom app to use X-Subject not Subject (AFAIK the RFC says any custom headers should be prefixed X-). My previous example will then work if you export sip_h_X-Subject.
-Steve
On 22 December 2010 19:40, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Thanks David, I really appreciate your clarification.
Brian, please contact me regarding how we can get a patch incorporated into FS to pass the Subject header.
Thanks Mike
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of David Ponzone Sent: Wednesday, December 22, 2010 2:31 PM
To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
Michael,
what Brian meant is that FreeSWICH can only passes the X-something and P-something headers, which are the only allowed ones.
Any system requiring custom headers should implement:
X-Subject
and not
Subject
David Ponzone Direction Technique
email: david.ponzone@ipeva.fr
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
www.ipeva.fr - www.ipeva-studio.com
Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 22/12/2010 à 20:09, Kane, Michael (mkane02) a écrit :
We have a custom app that requires the Subject header with values so our endpoints can route the audio accordingly. I'm ok with using sip_h_X and or sip_h_P, but can't seem to get FS to pass the Subject header. Any direction would be greatly appreciated.
Mike
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, December 22, 2010 1:58 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
What is the sudden obsession with the subject header? Looking thru the code it appears as if sip_h_X and sip_h_P are the only two things that you can do... a patch will have to be made if you wish to set the subject on an outbound invite... see sofia_glue.c in do_invite.
/b
On Dec 22, 2010, at 12:50 PM, Kane, Michael (mkane02) wrote:
Hey Steve, the Subject is still not regenerated through the switch. I
posted a new pastbin.
14858
Mike
_______________________________________________ FreeSWITCH-users mailing list 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 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 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 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hey Steve, I was under the impression Subject header wasn't a custom header. We're using Media5's stack and it's readily available in their library and is defined in 3261. Mike -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Thursday, December 23, 2010 10:46 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header http://www.rfc-editor.org/rfc/rfc3427.txt The RFC recognises X- has been used in other protocols (eg SMTP) and says prefix P- should be used for SIP. In practice both P- and X- are used. The reason is that if you are setting a custom header, it avoids conflicts if they revise the SIP specification in future (eg for SIPv3) and add a header with the same name as yours but a different purpose. See also: http://blogs.voxeo.com/speakingofstandards/2008/05/06/what-is-a-p-header-in-... http://www.the-asterisk-book.com/unstable/applikationen-sipaddheader.html Note that the X-header functionality is specifically coded within the Sofia-SIP library: http://sofia-sip.sourceforge.net/refdocs/sip/group__sip__header__x.html To handle custom headers not prefixed with X- or P- would involve considerable rewriting of the library to expose the ability. Since the library is written by Nokia that would result in a large difference between the FS and upstream versions, making it hard to maintain. Regards, Steve On 23 December 2010 13:46, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hey Steve/David, I'm a bit confused about having to add the X- prefix to the Subject header. Can you please point me in the direction of which RFC talks to experimental headers?
Thanks Mike
Ps...thanks for looking into this for me.
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Wednesday, December 22, 2010 5:04 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
David,
Change your custom app to use X-Subject not Subject (AFAIK the RFC says any custom headers should be prefixed X-). My previous example will then work if you export sip_h_X-Subject.
-Steve
On 22 December 2010 19:40, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Thanks David, I really appreciate your clarification.
Brian, please contact me regarding how we can get a patch incorporated into FS to pass the Subject header.
Thanks Mike
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of David Ponzone Sent: Wednesday, December 22, 2010 2:31 PM
To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
Michael,
what Brian meant is that FreeSWICH can only passes the X-something and P-something headers, which are the only allowed ones.
Any system requiring custom headers should implement:
X-Subject
and not
Subject
David Ponzone Direction Technique
email: david.ponzone@ipeva.fr
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
www.ipeva.fr - www.ipeva-studio.com
Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 22/12/2010 à 20:09, Kane, Michael (mkane02) a écrit :
We have a custom app that requires the Subject header with values so our endpoints can route the audio accordingly. I'm ok with using sip_h_X and or sip_h_P, but can't seem to get FS to pass the Subject header. Any direction would be greatly appreciated.
Mike
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, December 22, 2010 1:58 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
What is the sudden obsession with the subject header? Looking thru the code it appears as if sip_h_X and sip_h_P are the only two things that you can do... a patch will have to be made if you wish to set the subject on an outbound invite... see sofia_glue.c in do_invite.
/b
On Dec 22, 2010, at 12:50 PM, Kane, Michael (mkane02) wrote:
Hey Steve, the Subject is still not regenerated through the switch. I
posted a new pastbin.
14858
Mike
_______________________________________________ FreeSWITCH-users mailing list 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 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 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 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Ah, you're quite right... sorry, I locked onto you saying that you were setting it for a custom app and assumed you were trying to do something outside of the specification. Looking at the source code, it looks like FreeSWITCH doesn't currently provide any way to use that field on an INVITE from mod_sofia... if you wanted it you'd have to open a Jira ticket. http://jira.freeswitch.org/ Regards, -Steve On 23 December 2010 16:46, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hey Steve, I was under the impression Subject header wasn't a custom header. We're using Media5's stack and it's readily available in their library and is defined in 3261.
Mike
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Thursday, December 23, 2010 10:46 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
http://www.rfc-editor.org/rfc/rfc3427.txt The RFC recognises X- has been used in other protocols (eg SMTP) and says prefix P- should be used for SIP. In practice both P- and X- are used.
The reason is that if you are setting a custom header, it avoids conflicts if they revise the SIP specification in future (eg for SIPv3) and add a header with the same name as yours but a different purpose.
See also: http://blogs.voxeo.com/speakingofstandards/2008/05/06/what-is-a-p-header-in-... http://www.the-asterisk-book.com/unstable/applikationen-sipaddheader.html
Note that the X-header functionality is specifically coded within the Sofia-SIP library: http://sofia-sip.sourceforge.net/refdocs/sip/group__sip__header__x.html To handle custom headers not prefixed with X- or P- would involve considerable rewriting of the library to expose the ability. Since the library is written by Nokia that would result in a large difference between the FS and upstream versions, making it hard to maintain.
Regards, Steve
On 23 December 2010 13:46, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Hey Steve/David, I'm a bit confused about having to add the X- prefix to the Subject header. Can you please point me in the direction of which RFC talks to experimental headers?
Thanks Mike
Ps...thanks for looking into this for me.
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Wednesday, December 22, 2010 5:04 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
David,
Change your custom app to use X-Subject not Subject (AFAIK the RFC says any custom headers should be prefixed X-). My previous example will then work if you export sip_h_X-Subject.
-Steve
On 22 December 2010 19:40, Kane, Michael (mkane02) <mkane02@harris.com> wrote:
Thanks David, I really appreciate your clarification.
Brian, please contact me regarding how we can get a patch incorporated into FS to pass the Subject header.
Thanks Mike
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of David Ponzone Sent: Wednesday, December 22, 2010 2:31 PM
To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
Michael,
what Brian meant is that FreeSWICH can only passes the X-something and P-something headers, which are the only allowed ones.
Any system requiring custom headers should implement:
X-Subject
and not
Subject
David Ponzone Direction Technique
email: david.ponzone@ipeva.fr
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
www.ipeva.fr - www.ipeva-studio.com
Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 22/12/2010 à 20:09, Kane, Michael (mkane02) a écrit :
We have a custom app that requires the Subject header with values so our endpoints can route the audio accordingly. I'm ok with using sip_h_X and or sip_h_P, but can't seem to get FS to pass the Subject header. Any direction would be greatly appreciated.
Mike
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, December 22, 2010 1:58 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
What is the sudden obsession with the subject header? Looking thru the code it appears as if sip_h_X and sip_h_P are the only two things that you can do... a patch will have to be made if you wish to set the subject on an outbound invite... see sofia_glue.c in do_invite.
/b
On Dec 22, 2010, at 12:50 PM, Kane, Michael (mkane02) wrote:
Hey Steve, the Subject is still not regenerated through the switch. I
posted a new pastbin.
14858
Mike
_______________________________________________ FreeSWITCH-users mailing list 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 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 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 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 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
He did open a jira as a patch request but no bounty amount on it. So someone will have to patch it for him for free or he'll have to post a bounty to raise the priority of the bug a bit because its a non-critical issue. Its at the bottom of my list. /b On Dec 23, 2010, at 11:25 AM, Steven Ayre wrote:
Ah, you're quite right... sorry, I locked onto you saying that you were setting it for a custom app and assumed you were trying to do something outside of the specification.
Looking at the source code, it looks like FreeSWITCH doesn't currently provide any way to use that field on an INVITE from mod_sofia... if you wanted it you'd have to open a Jira ticket.
Regards, -Steve
Ok, Brian can you call me at some point to discuss. 321-223-5511. I have no problem posting as a bounty. We can roll this into the discussions we've had in the past for support and programming support. The problem is we usually do not deal with independent contractors as a rule. When one posts a bounty are they dealing with FreeSWITCH solutions or independent contractors? Thanks Mike -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org on behalf of Brian West Sent: Thu 12/23/2010 12:32 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header He did open a jira as a patch request but no bounty amount on it. So someone will have to patch it for him for free or he'll have to post a bounty to raise the priority of the bug a bit because its a non-critical issue. Its at the bottom of my list. /b On Dec 23, 2010, at 11:25 AM, Steven Ayre wrote:
Ah, you're quite right... sorry, I locked onto you saying that you were setting it for a custom app and assumed you were trying to do something outside of the specification.
Looking at the source code, it looks like FreeSWITCH doesn't currently provide any way to use that field on an INVITE from mod_sofia... if you wanted it you'd have to open a Jira ticket.
Regards, -Steve
A bounty is generally open to any who choose to accept the challenge. If you specifically want FSS to add the feature then you'd need to contact support@freeswitch.org and discuss a specific contract, price, etc. -MC On Thu, Dec 23, 2010 at 9:51 AM, Kane, Michael (mkane02) <mkane02@harris.com
wrote:
Ok, Brian can you call me at some point to discuss. 321-223-5511. I have no problem posting as a bounty.
We can roll this into the discussions we've had in the past for support and programming support. The problem is we usually do not deal with independent contractors as a rule. When one posts a bounty are they dealing with FreeSWITCH solutions or independent contractors?
Thanks Mike
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org on behalf of Brian West Sent: Thu 12/23/2010 12:32 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Dropping the Subject: header
He did open a jira as a patch request but no bounty amount on it. So someone will have to patch it for him for free or he'll have to post a bounty to raise the priority of the bug a bit because its a non-critical issue. Its at the bottom of my list.
/b
On Dec 23, 2010, at 11:25 AM, Steven Ayre wrote:
Ah, you're quite right... sorry, I locked onto you saying that you were setting it for a custom app and assumed you were trying to do something outside of the specification.
Looking at the source code, it looks like FreeSWITCH doesn't currently provide any way to use that field on an INVITE from mod_sofia... if you wanted it you'd have to open a Jira ticket.
Regards, -Steve
_______________________________________________ FreeSWITCH-users mailing list 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
participants (5)
-
Brian West
-
David Ponzone
-
Kane, Michael (mkane02)
-
Michael Collins
-
Steven Ayre