[Freeswitch-users] ESL Send MESSAGE_WAITING Error - Cannot find profile

Avi Marcus avi at avimarcus.net
Thu Jun 30 23:19:39 MSD 2011


Anthony,

FreeSWITCH Version 1.0.head (git-3e6cca9 2011-06-28 10-27-00 -0700)

It still produces an error:  "sofia_presence.c:432 Cannot find profile
20064.domain.com"

-Avi

On Tue, Jun 28, 2011 at 8:03 PM, Anthony Minessale
<anthony.minessale at gmail.com> wrote:
>
> can you try this on latest too?
> The line numbers suggest an older build.
>
>
> On Tue, Jun 28, 2011 at 9:10 AM, Avi Marcus <avi at avimarcus.net> wrote:
> > I'm trying to send a MESSAGE_WAITING via ESL on multi-tenant, but I'm
> > getting this error:
> > 2011-06-27 10:46:25.443081 [ERR] sofia_presence.c:405 Cannot find
> > profile 20064.domain.com]
> > the cli lists the domain as an alias to the internal profile.
> > what should I do?
> > 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:
> >
> >
> >
> > static void InboundMode2(Object stateInfo)
> >
> >     {
> >
> >         //Initializes a new instance of ESLconnection, and connects to the
> > host $host on the port $port, and supplies $password to freeswitch
> >
> >         ESLconnection eslConnection = new ESLconnection(myinfo);
> >
> >
> >
> >         if (eslConnection.Connected() != ESL_SUCCESS)
> >
> >         {
> >
> >             Console.WriteLine("Error connecting to FreeSwitch");
> >
> >             return;
> >
> >         }
> >
> >
> >
> >         //Set log level
> >
> >         //ESL.eslSetLogLevel((int)enLogLevel.DEBUG);
> >
> >
> >
> >         eslConnection.Api("reloadxml", string.Empty);
> >
> >
> >
> >         // Subscribe to all events
> >
> >         ESLevent eslEvent2 = eslConnection.SendRecv("event plain ALL");
> >
> >
> >
> >         if (eslEvent2 == null)
> >
> >         {
> >
> >             Console.WriteLine("Error subscribing to all events");
> >
> >             return;
> >
> >         }
> >
> >         ESLevent eslEvent = new ESLevent("MESSAGE_WAITING", null);
> >
> >         eslEvent.AddHeader("MWI-Messages-Waiting", "yes");
> >
> >         eslEvent.AddHeader("MWI-Message-Account", "103 at 20064.domain.com");
> >
> >         eslEvent.AddHeader("MWI-Voice-Message", "1/1 (1/1)");
> >
> >
> >
> >         eslEvent = eslConnection.SendEvent(eslEvent);
> >
> >         if (eslEvent == null)
> >
> >         {
> >
> >             Console.WriteLine("event error");
> >
> >             return;
> >
> >         }
> >
> >
> >
> >         //Turns an event into colon-separated 'name: value' pairs. The
> > format parameter isn't used
> >
> >         Console.WriteLine(eslEvent.Serialize(String.Empty));
> >
> >
> >
> >         // Grab Events until process is killed
> >
> >         while (eslConnection.Connected() == ESL_SUCCESS)
> >
> >         {
> >
> >             eslEvent = eslConnection.RecvEvent();
> >
> >             Console.WriteLine(eslEvent.Serialize(String.Empty));
> >
> >         }
> >
> >     }
> >
> >
> >
> > When I send the event, I am getting a debug message from FS as follows:
> >
> >
> >
> > 2011-06-27 10:46:25.443081 [ERR] sofia_presence.c:405 Cannot find profile
> > 20064.domain.com]
> >
> > Thanks!
> >
> > -Avi
> >



More information about the FreeSWITCH-users mailing list