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

J Bhanot j.bhanot@REDACTED
Tue Jan 29 13:13:45 CET 2008


Hi Maxim,

I am now trying to run it from local machine having no xterm server using 
this command

erl -pa ../../../megaco/ebin -s megaco

megaco application is up without any errors

but when on erl shell when i try to execute sample script

megaco_simple_mgc.erl

using follwoing command :
megaco_simple_mgc:start().

I get the following errors:

{ok,[{{error,
          {megaco_tcp_listen,
              {could_not_start_listener,{gen_tcp_listen,eaddrinuse}}}},
      2944,
      {megaco_receive_handle,
          {deviceName,"controller"},
          megaco_pretty_text_encoder,[],megaco_tcp,dynamic}},
     {ok,2944,
         {megaco_receive_handle,
             {deviceName,"controller"},
             megaco_pretty_text_encoder,[],megaco_udp,dynamic}},
     {{error,
          {megaco_tcp_listen,
              {could_not_start_listener,{gen_tcp_listen,eaddrinuse}}}},
      2945,
      {megaco_receive_handle,
          {deviceName,"controller"},
          megaco_binary_encoder,[],megaco_tcp,dynamic}},
     {ok,2945,
         {megaco_receive_handle,
             {deviceName,"controller"},
             megaco_binary_encoder,[],megaco_udp,dynamic}}]}

any ideas on that..

Regards,
jb




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

To
"J Bhanot" <j.bhanot@REDACTED>
cc
erlang-questions@REDACTED, megaco@REDACTED
Subject
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 

/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

ForwardSourceID:NT0000DC1E 
=====-----=====-----=====
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/20080129/94a1bb33/attachment.htm>


More information about the erlang-questions mailing list