Re: [Freeswitch-users] FreeSWITCH-users Digest, Vol 102, Issue 69
Thanks you really Michael. My point is as below: 1-when FS get Invite from A number the TO is as below: To: <sip:2020@71.233.135.12> 2-and when I run answer application, FS send invite to A number with TO as below: To: <sip:2020@71.233.135.12> 3-I want when I run answer application to edit the TO header and to add some prefix like 505 as below: To: <sip:5052020@71.233.135.12> is this possible, by editing sip header, and if so how can I do so? Your kind usual support will be appreciated.
From: Michael Jerris <mike@jerris.com <mailto:mike@jerris.com>> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Date: December 13, 2014 at 12:37:42 AM GMT+3 Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Subject: Re: [Freeswitch-users] SIP Header Modification / Manipulation
if you are looking to update the display of the number that is being called on the caller phone, you want to be looking at display udpates, and callee_id_name and callee_id_number params.
On Dec 12, 2014, at 2:39 PM, Ahmed Habiba <ahabiba@gmail.com <mailto:ahabiba@gmail.com>> wrote:
Dears,
Kindly help me on how can I modify the SIP header in the re-invite in the below scenario:
[A Number] <———>[FreeSWitch]<———>[B Number]
1-A Number Call B Number (Sip Invite sent from A number) 2-B number is not registered. 3-Call logic let FreeSwitch answer the call( Freeswitch send re-invite to A number)
in the part number 3 I like to do modification on the SIP headers, by for example changing the From or To.
Your help will be appreciated.
Please do not reply to the digest-emails. You must subscribe to the full list to participate in conversations. On Mon, Dec 15, 2014 at 7:01 PM, Ahmed Habiba <ahabiba@gmail.com> wrote:
Thanks you really Michael.
My point is as below: 1-when FS get Invite from A number the TO is as below: To: <sip:2020@71.233.135.12>
2-and when I run answer application, FS send invite to A number with TO as below: To: <sip:2020@71.233.135.12>
3-I want when I run answer application to edit the TO header and to add some prefix like 505 as below: To: <sip*:505*2020@71.233.135.12>
is this possible, by editing sip header, and if so how can I do so?
Your kind usual support will be appreciated.
*From: *Michael Jerris <mike@jerris.com> *To: *FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Date: *December 13, 2014 at 12:37:42 AM GMT+3 *Reply-To: *FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject: **Re: [Freeswitch-users] SIP Header Modification / Manipulation*
if you are looking to update the display of the number that is being called on the caller phone, you want to be looking at display udpates, and callee_id_name and callee_id_number params.
On Dec 12, 2014, at 2:39 PM, Ahmed Habiba <ahabiba@gmail.com> wrote:
Dears,
Kindly help me on how can I modify the SIP header in the re-invite in the below scenario:
[A Number] <———>[FreeSWitch]<———>[B Number]
1-A Number Call B Number (Sip Invite sent from A number) 2-B number is not registered. 3-Call logic let FreeSwitch answer the call( Freeswitch send re-invite to A number)
in the part number 3 I like to do modification on the SIP headers, by for example changing the From or To.
Your help will be appreciated.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>* ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900
Thanks you really Michael. My point is as below: 1-when FS get Invite from A number the TO is as below: To: <sip:2020@71.233.135.12 <sip:2020@71.233.135.12>> 2-and when I run answer application, FS send invite to A number with TO as below: To: <sip:2020@71.233.135.12 <sip:2020@71.233.135.12>> 3-I want when I run answer application to edit the TO header and to add some prefix like 505 as below: To: <sip:5052020@71.233.135.12 <mailto:2020@71.233.135.12>> is this possible, by editing sip header, and if so how can I do so? Your kind usual support will be appreciated.
From: Michael Jerris <mike@jerris.com <mailto:mike@jerris.com>> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Date: December 13, 2014 at 12:37:42 AM GMT+3 Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Subject: Re: [Freeswitch-users] SIP Header Modification / Manipulation
if you are looking to update the display of the number that is being called on the caller phone, you want to be looking at display udpates, and callee_id_name and callee_id_number params.
On Dec 12, 2014, at 2:39 PM, Ahmed Habiba <ahabiba@gmail.com <mailto:ahabiba@gmail.com>> wrote:
Dears,
Kindly help me on how can I modify the SIP header in the re-invite in the below scenario:
[A Number] <———>[FreeSWitch]<———>[B Number]
1-A Number Call B Number (Sip Invite sent from A number) 2-B number is not registered. 3-Call logic let FreeSwitch answer the call( Freeswitch send re-invite to A number)
in the part number 3 I like to do modification on the SIP headers, by for example changing the From or To.
Your help will be appreciated.
Your scenario doesn’t make any sense. We do not send an invite on answer. You haven’t actually answered what you are trying to actually accomplish, just what you think you want the sip traffic to be in a scenario that doesn’t exist.
On Dec 15, 2014, at 8:16 PM, Ahmed Habiba <ahabiba@gmail.com> wrote:
Thanks you really Michael.
My point is as below: 1-when FS get Invite from A number the TO is as below: To: <sip:2020@71.233.135.12 <sip:2020@71.233.135.12>>
2-and when I run answer application, FS send invite to A number with TO as below: To: <sip:2020@71.233.135.12 <sip:2020@71.233.135.12>>
3-I want when I run answer application to edit the TO header and to add some prefix like 505 as below: To: <sip:5052020@71.233.135.12 <mailto:2020@71.233.135.12>>
is this possible, by editing sip header, and if so how can I do so?
Your kind usual support will be appreciated.
From: Michael Jerris <mike@jerris.com <mailto:mike@jerris.com>> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Date: December 13, 2014 at 12:37:42 AM GMT+3 Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Subject: Re: [Freeswitch-users] SIP Header Modification / Manipulation
if you are looking to update the display of the number that is being called on the caller phone, you want to be looking at display udpates, and callee_id_name and callee_id_number params.
On Dec 12, 2014, at 2:39 PM, Ahmed Habiba <ahabiba@gmail.com <mailto:ahabiba@gmail.com>> wrote:
Dears,
Kindly help me on how can I modify the SIP header in the re-invite in the below scenario:
[A Number] <———>[FreeSWitch]<———>[B Number]
1-A Number Call B Number (Sip Invite sent from A number) 2-B number is not registered. 3-Call logic let FreeSwitch answer the call( Freeswitch send re-invite to A number)
in the part number 3 I like to do modification on the SIP headers, by for example changing the From or To.
Your help will be appreciated.
_________________________________________________________________________
If the INVITE comes from A then on answering the call the response to A will be 200 OK, not another invite. The To header in the 200 OK has to match the value in the INVITE, as they're part of the same dialog. The rules of the SIP protocol mean needs you to reply to A within the call using the values you were originally sent in the original INVITE. If you need to provide information back to A I suggest you look at the sip_rh_ family of variables. They'll allow you to send extra headers (eg X- headers) in the 200 OK. On 16 December 2014 at 01:16, Ahmed Habiba <ahabiba@gmail.com> wrote:
Thanks you really Michael.
My point is as below: 1-when FS get Invite from A number the TO is as below: To: <sip:2020@71.233.135.12>
2-and when I run answer application, FS send invite to A number with TO as below: To: <sip:2020@71.233.135.12>
3-I want when I run answer application to edit the TO header and to add some prefix like 505 as below: To: <sip*:505*2020@71.233.135.12>
is this possible, by editing sip header, and if so how can I do so?
Your kind usual support will be appreciated.
*From: *Michael Jerris <mike@jerris.com> *To: *FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Date: *December 13, 2014 at 12:37:42 AM GMT+3 *Reply-To: *FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject: **Re: [Freeswitch-users] SIP Header Modification / Manipulation*
if you are looking to update the display of the number that is being called on the caller phone, you want to be looking at display udpates, and callee_id_name and callee_id_number params.
On Dec 12, 2014, at 2:39 PM, Ahmed Habiba <ahabiba@gmail.com> wrote:
Dears,
Kindly help me on how can I modify the SIP header in the re-invite in the below scenario:
[A Number] <———>[FreeSWitch]<———>[B Number]
1-A Number Call B Number (Sip Invite sent from A number) 2-B number is not registered. 3-Call logic let FreeSwitch answer the call( Freeswitch send re-invite to A number)
in the part number 3 I like to do modification on the SIP headers, by for example changing the From or To.
Your help will be appreciated.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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 (4)
-
Ahmed Habiba
-
Anthony Minessale
-
Michael Jerris
-
Steven Ayre