Reply
 
Thread Tools Display Modes
  #1  
Old 02-18-09, 05:05 PM
Ktool Ktool is offline
Junior Member
 
Join Date: Feb 2009
Posts: 11
SipToSis-Skype Gateway Tips
I am trying out the new skype gateway that was featured in nerdvittles yesterday. I have setup everything as per instructions (only for outgoing calls - don't need skype incoming so have not done any SIP uri).

Everything is running as instructed in x - skype in background and SipToSis_linux. I have java 1.6 installed. I did allow siptosis access to skype when prompted and checked the box for skype to remember this setting.

Now when I make a call from my softphones, I can see the call is passed to siptosis on the console but it fails with "handlesipcall - rejected call".

I have attached PDF file with siptosis status and messages. What am I doing wrong?
Attached Images:
File Type: pdf siptosis.pdf (15.6 KB, 37 views)
Reply With Quote
  #2  
Old 02-18-09, 05:58 PM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
There seems to be a bug in the Skype option to "remember" the authorized connection to siptosis. You can deauthorize it in the Skype setup. Then manually authorize the connection after you restart Skype and then run siptosis.
Reply With Quote
  #3  
Old 02-18-09, 06:38 PM
Ktool Ktool is offline
Junior Member
 
Join Date: Feb 2009
Posts: 11
It looked like that from the error and I tried to start skype again but it starts minimized now and I cant seem to figure out how to get it on the screen - sorry am a Windows user...
Reply With Quote
  #4  
Old 02-18-09, 07:08 PM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
The easiest way...

Reboot your machine. Then...

cd /root
rm -r .Skype
xinit
skype

Then log in and set it up again for autologin and to run minimized. Stop Skype. Then...

skype &
cd /siptosis
./SipToSis_linux

Answer Yes when prompted whether to allow external use of Skype but don't check the remember option.
Reply With Quote
  #5  
Old 02-18-09, 09:57 PM
Ktool Ktool is offline
Junior Member
 
Join Date: Feb 2009
Posts: 11
Tried that with several combination - same error. I even ran skype in background but not minimized and then siptosis and checked skype options for allowed API. Skypeforjava was listed there in allowed box.
Reply With Quote
  #6  
Old 02-19-09, 12:49 AM
drsatch drsatch is offline
Member
 
Join Date: Feb 2008
Posts: 41
I had this problem, too. A google search led me to this:

Quote:
This has two possible causes.
The first would be the SIP caller is not authorized in SipToSkypeAuth.props.
The second would be no destination was able to be extracted from the sip callee url - which can be caused by an incorrect dial plan.
Look for incoming sip call from ????? callee=?????

In SipToSkypeAuth.props try this:
*,*,*,calleeid
This will allow access from any IP address.
Found here:
http://www.mhspot.com/stsblog/blog.p...-20081101.html


Now...if I can just figure out how to get this to run at boot, I'd be all set.
__________________
Your mouse has moved. Windows must be restarted for the changes to take effect. Restart? [OK]

Last edited by drsatch : 02-19-09 at 12:52 AM.
Reply With Quote
  #7  
Old 02-19-09, 11:00 AM
Ktool Ktool is offline
Junior Member
 
Join Date: Feb 2009
Posts: 11
It works!
Originally Posted by drsatch View Post
In SipToSkypeAuth.props try this:
*,*,*,calleeid
This will allow access from any IP address. .
Thanks drsatch. Yup that was it. My incoming sip call was using my public IP address and my SipToSkypeAuth.props has my loopback IP in place of the third *. I replaced it with a * and it worked. I will try and change that value to my actual public IP only in hopes to make it secure by restricting only to my pub IP - Is it a security threat in any way? (I am behind a router without port forwarding).

Ward. I noticed that skype does remember the allowed application setting for siptosis.

I think everything works as expected - Now the only error I get is from skype about my audio device not being setup right -but thats because I am running PIAF in VM and will have to fiddle to see what's the issue with the sound devices.

Thanks both of you guys for your help.
Reply With Quote
  #8  
Old 02-19-09, 11:14 AM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
Quote:
In SipToSkypeAuth.props try this:
*,*,*,calleeid
This will allow access from any IP address.
This setup would be EXTREMELY DANGEROUS. There was a reason we restricted access to just localhost.
Reply With Quote
  #9  
Old 02-19-09, 11:41 AM
Ktool Ktool is offline
Junior Member
 
Join Date: Feb 2009
Posts: 11
Yes I have read how many posts we have here about peoples open PBX taken for a ride... and that's why I am looking to restrict it either by using my actual public IP address or making some config changes in siptosis so that it does not pickup my public IP instead of my localhost when placing calls from my softphones...

siptosis log looks like:
incoming sip call from "my CID" <sip:myCID@my_pub_IP> callee=<sip:dialed_no.@127.0.0.1:5070

How to change that first part from my actual public IP to localhost - both the PBX and skype/siptosis are on the same machine.
Reply With Quote
  #10  
Old 02-19-09, 12:23 PM
drsatch drsatch is offline
Member
 
Join Date: Feb 2008
Posts: 41
Originally Posted by wardmundy View Post
This setup would be EXTREMELY DANGEROUS. There was a reason we restricted access to just localhost.
I meant it for testing purposes only. But, now that I'm thinking about it...would it be dangerous if it's firewalled?

Seems the problem is that it doesn't allow if it sees a connection from the external IP. Looks like it reads it from the externip= in sip_nat.conf or sip_nat_custom.conf. This poses a problem for people with dynamic IP's.

Any idea how to get all this to start at boot without having physically connected monitor, keyboard and mouse? Maybe I'm just brain-dead today.
__________________
Your mouse has moved. Windows must be restarted for the changes to take effect. Restart? [OK]

Last edited by drsatch : 02-19-09 at 12:26 PM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:58 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2008, Ward Mundy & Associates