<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Asterisk SIP is UDP protocol not TCP. So it will not work.<br>
<br>
Ludovic.<br>
<br>
<br>
Le 13/10/2012 04:03, manjula hettiarachchi a écrit :
<blockquote
cite="mid:1350093787.21636.YahooMailClassic@web122302.mail.ne1.yahoo.com"
type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="font: inherit;" valign="top">
<div>Hi List</div>
<div> </div>
<div>I am new to stunnel, Just tried today to send
Asterisk SIP request to stunnel client and forward to
stunnel-server --> asterisk on another machine.</div>
<div> </div>
<div>(server ip=x.x.x.x)<br>
(client ip=y.y.y.y)</div>
<div> </div>
<div>Client config:</div>
<div>cert=/etc/stunnel/stunnel.pem<br>
client=yes<br>
pid=/tmp/stunnel.pid<br>
debug=7<br>
output=/etc/stunnel/stunnel.log</div>
<div> </div>
<div>[sip]<br>
accept=16380<br>
connect=x.x.x.x:17380</div>
<div> </div>
<div> </div>
<div> </div>
<div>================================</div>
<div>Server Config:</div>
<div>cert=/etc/stunnel/stunnel.pem<br>
#client=no<br>
pid=/tmp/stunnel.pid<br>
debug=7<br>
output=/etc/stunnel/stunel.log</div>
<div> </div>
<div>[sip-IN]<br>
accept=17380<br>
connect=5060<br>
</div>
<div>When tried 'telnet localhost 16380 from client
machine i could see packets coming to server. </div>
<div>However when Asterisk sends a sip request to port
16380, </div>
<div>exten => _X.,1,Dial(<a moz-do-not-send="true"
href="mailto:SIP/$%7BEXTEN%7D@y.y.y.y:16380,20,rt">SIP/${EXTEN}@y.y.y.y:16380,20,rt</a>)</div>
<div>i dont see packets forwaded to the server.</div>
<div> </div>
<div>Pls advise if anyone has used this scenario</div>
<div> </div>
<div>Best Regards</div>
<div>Manjula</div>
<div> </div>
<div> <br>
<br>
</div>
</td>
</tr>
</tbody>
</table>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
stunnel-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a>
<a class="moz-txt-link-freetext" href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a>
</pre>
</blockquote>
<br>
</body>
</html>