<div dir="ltr"><div class="gmail_quote">I'm trying to send a MESSAGE_WAITING via ESL on multi-tenant, but I'm getting this error:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote">
<br></div><div class="gmail_quote"><meta http-equiv="content-type" content="text/html; charset=utf-8">2011-06-27 10:46:25.443081 [ERR] sofia_presence.c:405 Cannot find profile <a href="http://20064.domain.com">20064.domain.com</a>]</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">the cli lists the domain as an alias to the internal profile.</div><div class="gmail_quote"><br></div><div class="gmail_quote">what should I do?</div><div class="gmail_quote">
<br></div><div class="gmail_quote">I am writing some test code in order to try to send MWI events using the ESL Manager code DLL. Here is my test code:</div><div class="gmail_quote"><div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"> </p><p class="MsoNormal">static void InboundMode2(Object stateInfo)</p><p class="MsoNormal"> {</p><p class="MsoNormal"> //Initializes a new instance of ESLconnection, and connects to the host $host on the port $port, and supplies $password to freeswitch</p>
<p class="MsoNormal"> ESLconnection eslConnection = new ESLconnection(myinfo);</p><p class="MsoNormal"> </p><p class="MsoNormal"> if (eslConnection.Connected() != ESL_SUCCESS)</p>
<p class="MsoNormal"> {</p><p class="MsoNormal"> Console.WriteLine("Error connecting to FreeSwitch");</p><p class="MsoNormal"> return;</p><p class="MsoNormal"> }</p><p class="MsoNormal">
</p><p class="MsoNormal"> //Set log level</p><p class="MsoNormal"> //ESL.eslSetLogLevel((int)enLogLevel.DEBUG);</p><p class="MsoNormal"> </p><p class="MsoNormal"> eslConnection.Api("reloadxml", string.Empty);</p>
<p class="MsoNormal"> </p><p class="MsoNormal"> // Subscribe to all events </p><p class="MsoNormal"> ESLevent eslEvent2 = eslConnection.SendRecv("event plain ALL");</p><p class="MsoNormal"> </p><p class="MsoNormal">
if (eslEvent2 == null)</p><p class="MsoNormal"> {</p><p class="MsoNormal"> Console.WriteLine("Error subscribing to all events");</p><p class="MsoNormal"> return;</p><p class="MsoNormal">
}</p><p class="MsoNormal"> ESLevent eslEvent = new ESLevent("MESSAGE_WAITING", null);</p><p class="MsoNormal"> eslEvent.AddHeader("MWI-Messages-Waiting", "yes");</p><p class="MsoNormal">
eslEvent.AddHeader("MWI-Message-Account", "<a href="mailto:103@20064.cmvtesttele.com" target="_blank">103@20064.<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="color: rgb(0, 0, 0); -webkit-text-decorations-in-effect: none; ">domain</span>.com</a>");</p>
<p class="MsoNormal"> eslEvent.AddHeader("MWI-Voice-Message", "1/1 (1/1)");</p>
<p class="MsoNormal"> </p><p class="MsoNormal"> eslEvent = eslConnection.SendEvent(eslEvent);</p><p class="MsoNormal"> if (eslEvent == null)</p><p class="MsoNormal"> {</p><p class="MsoNormal"> Console.WriteLine("event error");</p>
<p class="MsoNormal"> return;</p><p class="MsoNormal"> }</p><p class="MsoNormal"> </p><p class="MsoNormal"> //Turns an event into colon-separated 'name: value' pairs. The format parameter isn't used</p>
<p class="MsoNormal"> Console.WriteLine(eslEvent.Serialize(String.Empty));</p><p class="MsoNormal"> </p><p class="MsoNormal"> // Grab Events until process is killed</p><p class="MsoNormal"> while (eslConnection.Connected() == ESL_SUCCESS)</p>
<p class="MsoNormal"> {</p><p class="MsoNormal"> eslEvent = eslConnection.RecvEvent();</p><p class="MsoNormal"> Console.WriteLine(eslEvent.Serialize(String.Empty));</p><p class="MsoNormal"> }</p>
<p class="MsoNormal"> }</p><p class="MsoNormal"> </p><p class="MsoNormal">When I send the event, I am getting a debug message from FS as follows:</p><p class="MsoNormal"> </p><p class="MsoNormal">2011-06-27 10:46:25.443081 [ERR] sofia_presence.c:405 Cannot find profile <a href="http://20064.domain.com">20064.domain.com</a>]</p>
<p class="MsoNormal"><br></p><p class="MsoNormal"><br></p><p class="MsoNormal">Thanks!</p><p class="MsoNormal">-Avi</p></div></div></div></div>