Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASBCE change Contact Header

Status
Not open for further replies.

OmegaStar

Systems Engineer
Jun 17, 2024
15
DE
Hello everyone,

can some one tell how i can change wíth the Sigma script the Contact Header? i have the Problem that anonymous calls don't go out because the Provider gives a 403 forbidden.

PBX: IPO
SBC: Avaya SBC
Provider: Telekom Deutschland
Product: CompanyFlex

Sigma script
within session "INVITE"
{

act on message where %DIRECTION="OUTBOUND" and %ENTRY_POINT="POST_ROUTING"
{

{
remove(%HEADERS["History-Info"][3]);
remove(%HEADERS["History-Info"][2]);
remove(%HEADERS["History-Info"][1]);
remove(%HEADERS["From"][1].DISPLAY_NAME);
remove(%HEADERS["Contact"][1].DISPLAY_NAME);
append(%HEADERS["Contact"][1],"+49199296000000xxxxx@tel.t-online.de");
remove(%HEADERS["P-Asserted-Identity"][2]);
remove(%HEADERS["Contact"][1].URI.PARAMS["epv"]);
remove(%HEADERS["Contact"][1].URI.PARAMS["gsid"]);
remove(%HEADERS["P-Location"][1]);
remove(%HEADERS["Server"][1]);
remove(%HEADERS["User-Agent"][1]);
remove(%HEADERS["Session-ID"][1]);
remove(%HEADERS["Recv-Info"][1]);
remove(%HEADERS["Accept-Contact"][1]);
}
}
}
 
The simplest way would be:
%HEADERS["Contact"][1].URI.USER = "+4919929600000xxxxx";
So instead of appending just set the user part to whatever you want.

If you have to change the domain as well do this:
%HEADERS["Contact"][1].URI.HOST = "tel.t-online.de";

Alternatively, you can combine both by changing the complete URI, not the USER and HOST individually:
%HEADERS["Contact"][1].URI = "+4919929600000xxxxx@tel.t-online.de";
 
But IP Office usually sends a contract header. So no need to append one.
 
Yes that was my first Problem but now with a anonymous Call it sends not the correct Contact informations 1726560969309.png
 
As I said:
%HEADERS["Contact"][1].URI.USER = "+4919929600000xxxxx";
 
Nothing, that is what you need in your SigMa script. That is the syntax :)
 
What @Alfalis tells you is that this piece of the sigma script set the user part of the contact header to the CompanyFlex Username. Regardless what is received by IPO. As the header is already there it makes no sense to add or append anythin.
 
What @Alfalis tells you is that this piece of the sigma script set the user part of the contact header to the CompanyFlex Username. Regardless what is received by IPO. As the header is already there it makes no sense to add or append anythin.
Hallo Florian, ich schreibe es mal auf Deutsch. Bei einen Normalen Anruf wird der richtige Contact Header mitgeschickt aber bei einen Anruf wo die Rufnummer unterdrückt wird, wird nicht der richtige Contact Header mit geschickt. Mit %HEADERS["Contact"][1].URI.USER = "+4919929600000xxxxx"; funktioniert es jetzt.

Gruß JD von ehemals Avaya Xing Gruppe
 
Hallo Florian, ich schreibe es mal auf Deutsch. Bei einen Normalen Anruf wird der richtige Contact Header mitgeschickt aber bei einen Anruf wo die Rufnummer unterdrückt wird, wird nicht der richtige Contact Header mit geschickt. Mit %HEADERS["Contact"][1].URI.USER = "+4919929600000xxxxx"; funktioniert es jetzt.

Gruß JD von ehemals Avaya Xing Gruppe
Wie gesagt, es gibt einen Header. Es ist nicht nötig, zusätzlichen (add/append) Header hinzuzufügen.

As mentioned… there is already a header available from IPO. No need to add another contact header (add/append).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top