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

J Bhanot <[email protected]>
Newsgroups gmane.ietf.megaco,gmane.comp.lang.erlang.general
Message-ID <OFF0D0BA0A.BD06DF41-ON652573DF.003BC3B7-652573DF.00432D8F@tcs.com>
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" <[email protected]> 
01/24/2008 03:50 PM

To
"J Bhanot" <[email protected]>
cc
[email protected], [email protected]
Subject
Re: [erlang-questions] running sample progs for MGC and MG






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

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

_______________________________________________
Megaco mailing list
[email protected]
https://www1.ietf.org/mailman/listinfo/megaco
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.