Thanx Zeeshan,<br> I forgot to thank you , doing qualify=yes shows the status and its active.<br>1><br>Name/username Host Dyn Nat ACL Port Status<br>wlg-gateway 202.7.4.40 5060 Unmonitored<br>
2002/2002 (Unspecified) D N 0 Unmonitored<br>2001/2001 172.26.48.113 D N 5061 OK (1 ms)<br>3 sip peers [Monitored: 1 online, 0 offline Unmonitored: 1 online, 1 offline]<br>
<br>2>And yes i didn't know that about 'sip show registry'.<br>3>And I am still stuck with the 3rd problem.<br><br>Can you just tell me in the above output on the asterisk server, if i have to call the user <a href="mailto:2001@172.26.48.113">2001@172.26.48.113</a>, through a php script and not softphone. Because my sofphone can call it.<br>
This is very silly problem . Please rescue me. status is Ok and online.<br><br>i posted the last files to the list also.<br><br><div class="gmail_quote">On 16 June 2010 18:58, Zeeshan Zakaria <span dir="ltr"><<a href="mailto:zishanov@gmail.com">zishanov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>you should post this to the list, not to my personal email.<br></p><div class="im">
<p>Zeeshan A Zakaria</p>
<p>--<br>
<a href="http://www.ilovetovoip.com" target="_blank">www.ilovetovoip.com</a></p>
</div><p></p><blockquote type="cite"><div><div></div><div class="h5">On 2010-06-16 2:45 AM, "nikhil singhania" <<a href="mailto:niksinghania@gmail.com" target="_blank">niksinghania@gmail.com</a>> wrote:<br>
<br>Here is my extensions.conf:<br>[general]<br>static=yes ; default values for changes to this file<br>
writeprotect=no ; by the Asterisk CLI<br>[globals]<br>; variables go here<br>[default]<br>; default context<br>
[phones]<br>; context for our phones<br>exten => 2001,1,Dial(SIP/2001)<br>exten => 2002,1,Dial(SIP/2002)<br>exten => 500,1,Answer()<br>exten => 500,2,Playback(demo-echotest) <br> <br> ; Let them know what's going on<br>
exten => 500,3,Echo <br> <br> ; Do the echo test<br>exten => 500,4,Playback(demo-echodone) <br> <br> ; Let them know it's over<br>exten => 500,5,Hangup<br>exten => _.,1,Dial(SIP/${EXTEN}@wlg-gateway) ; match anything and send to wlg-gateway<br>
exten => _.,2,Hangup<br>[from-wlg-gateway]<br>; context for calls coming from wlg-gateway<br>exten => 4980007,1,Dial(SIP/2001&SIP/2002)<br>exten => _.,1,Congestion() <br> <br> ; everyone else gets congestion<br>
<br><br><br><br>..............................................................................................................................<br>sip.conf<br>........................................................................................................<br>
[general]<br>context=default ; Default context for incoming calls<br>port=5060 ; UDP Port to bind to (SIP standard port is 5060)<br>bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)<br>srvlookup=yes ; Enable DNS SRV lookups on outbound calls<br>
[2001]<br>type=friend ; both send and receive calls from this peer<br>host=dynamic ; this peer will register with us<br>username=2001<br>secret=j0nny<br>canreinvite=no ; don't send SIP re-invites (ie. terminate rtp stream)<br>
nat=yes ; always assume peer is behind a NAT<br>context=phones ; send calls to 'phones' context<br>dtmfmode=rfc2833 ; set dtmf relay mode<br>allow=all ; allow all codecs<br>[2002]<br>type=friend<br>
host=dynamic<br>username=2002<br>secret=whyfry<br>canreinvite=no<br>nat=yes<br>context=phones<br>dtmfmode=rfc2833<br>allow=all<br>[wlg-gateway]<br>type=friend<br>disallow=all<br>allow=ulaw<br>context=from-wlg-gateway<br>
host=202.7.4.40<br>
canreinvite=no<br>dtmfmode=rfc2833<br>allow=all<br>.....................................................................................................<br>inbound.php<br>..................................................................................................<br>
#!/usr/bin/php<br><br><?php<br><br> ob_implicit_flush(true);<br> set_time_limit(0);<br> echo("Hello, world!");<br><br> require_once "phpagi.php";<br> error_reporting(E_ALL);<br> echo("Hello, world!");<br>
<br> $dir_base = "/var/www/wizoz/";<br> echo $dir_base;<br> $dir_prompt = $dir_base."prompts";<br> $dir_wav = $dir_base."wav";<br> $rel_dir_mp3 = "mp3";<br> $dir_mp3 = $dir_base.$rel_dir_mp3;<br>
$agi = new AGI();<br> echo("created");<br> $agi->answer();<br><span style="background-color: rgb(255, 255, 102);"> $agi->exec_dial("SIP","2002");</span><br style="background-color: rgb(255, 255, 102);">
$agi->stream_file($dir_prompt.'/welcome','123'); fflush($agi->out);<br><br> $agi->stream_file($dir_prompt.'/welcome','123'); fflush($agi->out);<br>
echo("Hello, world!");<br><br><br>?><br>..................................................................................................<br>
Though I am new, but i am somewhat familiar, and am devoting a great deal of time. Now you have all the files. I highlited the exec_dial function. This inbound.php is the file i am executing on the command line on the server. But I am not gettting the call at my end. May be the way i am doing it is wrong. Please suggest me. Rest of the code works fine.</div>
</div><p>
<font color="#500050"><div><div></div><div class="h5"><br> <br><br><br><br>On 15 June 2010 18:15, Zeeshan Zakaria <<a href="mailto:zishanov@gmail.com" target="_blank">zishanov@gmail.com</a>> wrote:<br>
><br></div></div>> The r...</font></p><p><font color="#500050"><div class="im">contact@9793905858<br>
email: <a href="mailto:rit2007033@iiita.ac.in" target="_blank">rit2007033@iiita.ac.in</a><br> <a href="mailto:niksinghania@gmail.com" target="_blank">niksinghania@gmail.com</a><br></div><a href="http://profile.iiit." target="_blank">http://profile.iiit.</a>..</font></p>
</blockquote>
</blockquote></div><br><br clear="all"><br>-- <br>Nikhil Kumar<br>summer intern:simmortel voice technologies<br>rit2007033<br>b.tech IT 6th sem<br>IIIT Allahabad<br>contact@9793905858<br>email: <a href="mailto:rit2007033@iiita.ac.in">rit2007033@iiita.ac.in</a><br>
<a href="mailto:niksinghania@gmail.com">niksinghania@gmail.com</a><br><a href="http://profile.iiita.ac.in/RIT2007033/">http://profile.iiita.ac.in/RIT2007033/</a><br><br>