<br><font size=2 face="sans-serif">Hi Maxim,</font>
<br>
<br><font size=2 face="sans-serif">I am now trying to run it from local
machine having no xterm server using this command</font>
<br>
<br><font size=2 face="sans-serif">erl -pa ../../../megaco/ebin -s megaco</font>
<br>
<br><font size=2 face="sans-serif">megaco application is up without any
errors</font>
<br>
<br><font size=2 face="sans-serif">but when on erl shell when i try to
execute sample script</font>
<br>
<br><font size=2 face="sans-serif">megaco_simple_mgc.erl</font>
<br>
<br><font size=2 face="sans-serif">using follwoing command :</font>
<br><font size=2 face="sans-serif">megaco_simple_mgc:start().</font>
<br>
<br><font size=2 face="sans-serif">I get the following errors:</font>
<br>
<br><font size=2 face="sans-serif">{ok,[{{error,</font>
<br><font size=2 face="sans-serif">          {megaco_tcp_listen,</font>
<br><font size=2 face="sans-serif">           
  {could_not_start_listener,{gen_tcp_listen,eaddrinuse}}}},</font>
<br><font size=2 face="sans-serif">      2944,</font>
<br><font size=2 face="sans-serif">      {megaco_receive_handle,</font>
<br><font size=2 face="sans-serif">          {deviceName,"controller"},</font>
<br><font size=2 face="sans-serif">          megaco_pretty_text_encoder,[],megaco_tcp,dynamic}},</font>
<br><font size=2 face="sans-serif">     {ok,2944,</font>
<br><font size=2 face="sans-serif">         {megaco_receive_handle,</font>
<br><font size=2 face="sans-serif">           
 {deviceName,"controller"},</font>
<br><font size=2 face="sans-serif">           
 megaco_pretty_text_encoder,[],megaco_udp,dynamic}},</font>
<br><font size=2 face="sans-serif">     {{error,</font>
<br><font size=2 face="sans-serif">          {megaco_tcp_listen,</font>
<br><font size=2 face="sans-serif">           
  {could_not_start_listener,{gen_tcp_listen,eaddrinuse}}}},</font>
<br><font size=2 face="sans-serif">      2945,</font>
<br><font size=2 face="sans-serif">      {megaco_receive_handle,</font>
<br><font size=2 face="sans-serif">          {deviceName,"controller"},</font>
<br><font size=2 face="sans-serif">          megaco_binary_encoder,[],megaco_tcp,dynamic}},</font>
<br><font size=2 face="sans-serif">     {ok,2945,</font>
<br><font size=2 face="sans-serif">         {megaco_receive_handle,</font>
<br><font size=2 face="sans-serif">           
 {deviceName,"controller"},</font>
<br><font size=2 face="sans-serif">           
 megaco_binary_encoder,[],megaco_udp,dynamic}}]}</font>
<br>
<br><font size=2 face="sans-serif">any ideas on that..</font>
<br>
<br><font size=2 face="sans-serif">Regards,</font>
<br><font size=2 face="sans-serif">jb</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Maxim Treskin"
<zerthurd@gmail.com></b> </font>
<p><font size=1 face="sans-serif">01/24/2008 03:50 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">"J Bhanot" <j.bhanot@tcs.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">erlang-questions@erlang.org, megaco@ietf.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [erlang-questions] running sample
progs for MGC and MG</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>On 24/01/2008, <b>J Bhanot</b> <</font><a href=mailto:j.bhanot@tcs.com><font size=3 color=blue><u>j.bhanot@tcs.com</u></font></a><font size=3>>
wrote:</font>
<br><font size=2 face="sans-serif"><br>
Hi All,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I built the stack doing following in FC 8 :</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
./configure --disable -sctp</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
make all</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
make install</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Now i want to test MGC and MG running examples at follwoing location</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
/home/j.bhanot/Download/H.248/otp_src_R12B-0/lib/megaco/examples/simple</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
i tried to execute megaco_simple_mgc.erl</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
following these commands:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
erl -pa ../../../megaco/ebin -s megaco_filter -s megaco</font><font size=3>
</font><font size=2 face="sans-serif"><br>
%%   megaco_simple_mgc:start().</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
but getting the error :</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
1> Application initialization failed: no display name and no $DISPLAY
environment variable</font><font size=3> </font><font size=2 face="sans-serif"><br>
Error in startup script: no display name and no $DISPLAY environment variable</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Question1 : what should the value with which env value DISPLAY be set</font>
<br><font size=3><br>
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.
</font>
<br>
<br><font size=2 face="sans-serif">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</font>
<br><font size=3><br>
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.</font>
<br><font size=3><br>
<br>
--- Maxim 'Zert' Treskin<br>
</font>
<br><font size=1 color=white face="sans-serif">ForwardSourceID:NT0000DC1E
   </font>
<br><pre>=====-----=====-----=====
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


</pre>