[erlang-questions] running sample progs for MGC and MG

J Bhanot j.bhanot@REDACTED
Thu Jan 24 11:36:49 CET 2008

Hi Maxim,

I was using putty from my local windows machine to connect to linux server 
and then running this sample application.....

but when i ran this script from linux sever itself (FC8)....it did show 

now it want to display GUI from my local windows machine running this appl 
on putty...for this i am trying to download an interface b/w linux and 
windows i.e 


hoping that it would open the GUI from my local windows m/c....

Second question is that -  I am looking into erl_interface library 

now when you say atleast one erlang node should be running ...do you mean 
that anyways i will have to use Erlang in building some application ( 
Start Media Gateway Controller) and then if i want to start Media Gateway 
....i can use my C application to start it and then making MG communicate 
with MGW via erl_interface library using C....

Actually, i am bit hazy about this at this moment...

Could you kindly throw more light on that...

Appreciate your help...

Many Thanks,

"Maxim Treskin" <zerthurd@REDACTED> 
01/24/2008 03:50 PM

"J Bhanot" <j.bhanot@REDACTED>
erlang-questions@REDACTED, megaco@REDACTED
Re: [erlang-questions] running sample progs for MGC and MG

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 


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 

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 

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

Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080124/1d0b6f21/attachment.htm>

More information about the erlang-questions mailing list