[erlang-questions] running sample progs for MGC and MG
Maxim Treskin
zerthurd@REDACTED
Thu Jan 24 11:20:16 CET 2008
On 24/01/2008, J Bhanot <j.bhanot@REDACTED> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080124/b35af447/attachment.htm>
More information about the erlang-questions
mailing list