Hi List
 
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.
 
(server ip=x.x.x.x)
(client ip=y.y.y.y)
 
Client config:
cert=/etc/stunnel/stunnel.pem
client=yes
pid=/tmp/stunnel.pid
debug=7
output=/etc/stunnel/stunnel.log
 
[sip]
accept=16380
connect=x.x.x.x:17380
 
 
 
================================
Server Config:
cert=/etc/stunnel/stunnel.pem
#client=no
pid=/tmp/stunnel.pid
debug=7
output=/etc/stunnel/stunel.log
 
[sip-IN]
accept=17380
connect=5060
When tried 'telnet localhost 16380 from client machine i could see packets coming to server.
However when Asterisk sends a sip request to port 16380,
exten => _X.,1,Dial(SIP/${EXTEN}@y.y.y.y:16380,20,rt)
i dont see packets forwaded to the server.
 
Pls advise if anyone has used this scenario
 
Best Regards
Manjula