I'm fairly new to c# and programming. I made a little program for my company to automatically provide new telefons and patterns.
It worked fine until the phone extension/pattern got changed to start with \+43. Before the change it was just the extension (1013), now its \+435094941013.
It's a Cisco Unified Call Manager API/ Cisco AXL, but I didn't really find anything regarding this topic :(
I tried:
string line = @"\+43...1013";
and
string line = "\\+43...1013";
but I always get a null exception / nothing was found ...
when I manually change it back to the old format without the \+43 it works.
@edit:
The Request looks like this:
string inputline = "\\+435094941013"; // Works with just 1013
string description = "";
var Lines1 = await axlClient.ExecuteAsync(async client =>
{
var request = new ListLineReq
{
returnedTags = new LLine { description = string.Empty },
searchCriteria = new ListLineReqSearchCriteria { pattern = inputline}
};
var response = await client.listLineAsync(request);
response.listLineResponse1.@return.Select(i => new { Description = i.description }).ToList();
foreach (var row in response.listLineResponse1.@return.ToList())
{
description = row.description;
}
return description;
});