" /> From header customization - Genesys CTI User Forum

Author Topic: From header customization  (Read 2081 times)

Offline bilge

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
From header customization
« on: March 15, 2018, 06:55:28 AM »
Advertisement
Hello,

We need to change the domain part of the sip from header for outbound calls. Is there any way to change the IP address? SIP Server IP address is in the local network and we need to communicate with the sip trunk's global network. Customer could n't provide SBC and firewall team applied NAT to our SIP address however the domain in SIP headers stays local and sip trunk does not accept our invites.

Thank you for your help,

Best Regards.

Offline bilge

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: From header customization
« Reply #1 on: March 15, 2018, 08:23:57 AM »
I found that override-domain-from option changes the IP address of From Header, however telephony provider requests Via Header to be changed as well. Via Header can be changed with sip-address-srv application level option but when we type the global IP address as the value for this option, MCP does not play any treatment.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: From header customization
« Reply #2 on: March 15, 2018, 01:07:40 PM »
I don't recall any option to change that...that values are taken from SIP server sip-address parameter. But if you change it to a domain name...well...are your DNS registered correctly for SIP? What will happen between internal communications?


Now via???
Via is:
The Via header field indicates the transport used for the transaction and identifies the location where the response is to be sent.  A Via header field value is added only after the transport that will be used to reach the next hop has been selected (which may involve the usage of the procedures in 4).

So changing that could require a SBC

Offline water235

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
Re: From header customization
« Reply #3 on: March 15, 2018, 09:10:29 PM »
you could map all the headers from SIP messages to a KVP.
then you could use extension attach and extension update function to override the header information.
I had a scenario where i had to manipulate user-to-user and persist it across entire length of the call , and i did persist it by reading it in a KVP and attaching it as UDATA
and then when sending the invite back to SM- i replaced the header.


once you successfully do that you could see the  value modified on the subsequent invite that gets out.

message RequestRouteCall
AttributeThisDN 'XXXXXXX'
AttributeConnID 008702b8d500015f
AttributeOtherDN 'XXXXXXX'
AttributeLocation 'QA_Avaya_Switch'
AttributeExtensions [82] 00 02 00 00..
'SIP_HEADERS' 'User-to-User'
'User-to-User' '00FA0819920B395AA91567;encoding=hex'


X-Genesys-CallInfo: routed
User-to-User[b]: [b]00FA0819920B395AA91567;encoding=hex[/b][/b]  (Preserved header)
Allow: ACK, BYE, CANCEL, INFO, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE

User-to-User: 00FA0800012C165AA9160B;encoding=hex(original value)


Offline bilge

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: From header customization
« Reply #4 on: March 24, 2018, 07:44:37 AM »
Thank you for answers, it could not be possible any other way to change the all sip headers and IP's for SIP messaging. So we are waiting for an SBC.