On 24/01/2008, <b class="gmail_sendername">J Bhanot</b> <<a href="mailto:j.bhanot@tcs.com">j.bhanot@tcs.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><font face="sans-serif" size="2">Hi All,</font>
<br>
<br><font face="sans-serif" size="2">I built the stack doing following in
FC 8 :</font>
<br>
<br><font face="sans-serif" size="2">./configure --disable -sctp</font>
<br>
<br><font face="sans-serif" size="2">make all</font>
<br>
<br><font face="sans-serif" size="2">make install</font>
<br>
<br><font face="sans-serif" size="2">Now i want to test MGC and MG running
examples at follwoing location</font>
<br>
<br><font face="sans-serif" size="2">/home/j.bhanot/Download/H.248/otp_src_R12B-0/lib/megaco/examples/simple</font>
<br>
<br><font face="sans-serif" size="2">i tried to execute megaco_simple_mgc.erl</font>
<br>
<br><font face="sans-serif" size="2">following these commands:</font>
<br>
<br><font face="sans-serif" size="2">erl -pa ../../../megaco/ebin -s megaco_filter
-s megaco</font>
<br><font face="sans-serif" size="2">%% megaco_simple_mgc:start().</font>
<br>
<br><font face="sans-serif" size="2">but getting the error :</font>
<br>
<br><font face="sans-serif" size="2">1> Application initialization failed:
no display name and no $DISPLAY environment variable</font>
<br><font face="sans-serif" size="2">Error in startup script: no display
name and no $DISPLAY environment variable</font>
<br>
<br><font face="sans-serif" size="2">Question1 : what should the value with
which env value DISPLAY be set</font></blockquote><div><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.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font face="sans-serif" size="2">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></blockquote><div><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.<br></div>
</div><br><br>--- Maxim 'Zert' Treskin<br><br>