Re: running sample progs for MGC and MG

"Maxim Treskin" <[email protected]>
Newsgroups gmane.comp.lang.erlang.general,gmane.ietf.megaco
Message-ID <[email protected]>
On 24/01/2008, J Bhanot <[email protected]> wrote:
>
>
> Hi All,
>
> I built the stack doing following in FC 8 :
>
> ./configure --disable -sctp
>
> make all
>
> make install
>
> Now i want to test MGC and MG running examples at follwoing location
>
> /home/j.bhanot/Download/H.248/otp_src_R12B-0/lib/megaco/examples/simple
>
> i tried to execute megaco_simple_mgc.erl
>
> following these commands:
>
> erl -pa ../../../megaco/ebin -s megaco_filter -s megaco
> %%   megaco_simple_mgc:start().
>
> but getting the error :
>
> 1> Application initialization failed: no display name and no $DISPLAY
> environment variable
> Error in startup script: no display name and no $DISPLAY environment
> variable
>
> Question1 : what should the value with which env value DISPLAY be set


DISPLAY is environment variable, which contains address and display number
of your X server. Megaco sample progs have some GUI to trace megaco
messages. It seems that you ran stack not in X environment, or under another
user.

Question2: these sample applications are made in erlang...is it possible to
> use c/c++ or some other language to use APIs/Functionalities of Megaco stack


There is erl_interface library to interact between erlang node and C/C++
applications, but it is necessary to run one erlang node for this.


--- Maxim 'Zert' Treskin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.