Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 10:50
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
PSip - Puppy SIP
Post new topic   Reply to topic View previous topic :: View next topic
Page 16 of 16 [236 Posts]   Goto page: Previous 1, 2, 3, ..., 14, 15, 16
Author Message
smokey01


Joined: 30 Dec 2006
Posts: 1829
Location: South Australia

PostPosted: Fri 26 Aug 2011, 18:18    Post subject:  

Try Skype
_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
mama21mama

Joined: 03 Apr 2010
Posts: 526
Location: Lincoln, Buenos Aires, Argentina

PostPosted: Sat 05 Oct 2013, 15:16    Post subject:  

fix

Code:
psip32: ../src/pjsua-lib/pjsua_pres.c:557: pjsua_buddy_update_pres: La declaración `pjsua_buddy_is_valid(buddy_id)' no se cumple.
Abortado

PSIP v1.3

raname ~/.psip.conf ~/psip.conf

work Shocked

edit: work

before
Code:

{
         "category":   "puppy",
         "buddies":   [{
               "nick":   "nilsonmorales",
               "address":   "nilsonmorales@iptel.org"
            }]

now
Code:

{
         "category":   "puppy",
         "buddies":   [{
               "nick":   "nilsonmorales",
               "address":   "sip:nilsonmorales@iptel.org"
            }]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
chapchap70

Joined: 18 Nov 2010
Posts: 137
Location: The Island Of Long (NY, USA)

PostPosted: Sat 05 Oct 2013, 22:44    Post subject: 3 little letters  

Yep those 3 little letters make a bit of difference.

Another note: I had to redo my sip:iptel.org account that I registered on July 6th. I tried to see if this was working and found iptel had no record of my account. I have made videocalls with it using linphone in early September. I still have the email from my account setup so I know I was putting in the right username and password. I reregistered with the same handle and password.

I never made a call with PSIP but I got it to show that I was Logged In.
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1829
Location: South Australia

PostPosted: Mon 07 Oct 2013, 20:41    Post subject:  

Yes, you must always precede your address with sip: just like it's explained in the help document.

http://www.smokey01.com/help/psip/psip-help.html

Cheers

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
zandarian

Joined: 14 Oct 2009
Posts: 117

PostPosted: Sun 24 Aug 2014, 18:31    Post subject:  

Newer thread about this: http://www.murga-linux.com/puppy/viewtopic.php?t=70867

NB: With some routers Puppy Phone (and Ekiga) seems not to be usable, at least without doing special things. (http://www.murga-linux.com/puppy/viewtopic.php?p=796418#796418)
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1829
Location: South Australia

PostPosted: Sun 24 Aug 2014, 19:08    Post subject:  

I don't believe you need to do any port forwarding in your router to make psip work however, if your router has ALG, try disabling it.

Also, psip like most voip apps use port 5060 so make sure the port is open if using a firewall.

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Mon 25 Aug 2014, 02:06    Post subject:  

I wanted to post this google voice perl script somewhere before it gets lost in the interwebs. ... I don't know why all of them are in perl or php

Code:
#!/usr/bin/perl -w


###########################################################################
##                 Google Voice Command Line Script
##
##  This script will let you utilize features of your google voice
##  account from the command line, or triggered by some external
##  application. 
##
##  You can send a sms, place a call or cancel a call placed
##
##  Copyright Bret McDanel 2009
##
##  LICENSE:
##  1. You may not make this GPL ever.  I want my code to be freely
##     available to everyone forever.  The GPL restricts freedom.
##  2. Copyright notices must remain intact and distributed with
##     the program.  This includes the contributors list.
##  3. No warantee is present, whether express or implied.  Use at
##     your own risk.
##  4. This license must be included with all distributions of this
##     program and no modifications to this license are allowed.
##     This implicitly makes this program GPL incompatible but
##     compatible with virtually every other OSI approved license.
##  5. You are otherwise free to distribute this program, modify it
##     and distribute those modified works.
##
## Contributors:
##     Bret McDanel trixter AT 0xdecafbad.com
##     Pablo <undisclosed>
##     Peter pietia7 AT tlen.pl
##     Jeffrey Honig jch AT honig.net
##
###########################################################################


use strict;
use WWW::Mechanize;
use WWW::Mechanize::Plugin::FollowMetaRedirect;
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Response;
use HTTP::Cookies;
use URI::Escape;
use HTML::Entities;
use JSON -support_by_pp;
use Getopt::Std;

## EDIT ME!!!
## You have two options, you only need to do one and not both
# OPTION 1
# If Net::Netrc is installed, you may use a ~/.netrc file
# add the following line to your ~/.netrc file, make sure its mode 600
# machine voice.google.com login EMAIL password PASSWORD account 1234567890
# replace EMAIL with your email address, PASSWORD with your pass
# and 1234567890 with the default "ring to" number
#
# OPTION 2
# Edit the variables below to have your information
my $username = undef; # dont forget to escape @ symbols
my $password = undef;
my $default_number = undef;





## nothing under here *should* need to be edited
my $cookiejar;
my $rnr_se = undef;


sub getContact {
    my ($contact_name, $contact_type) = @_;
    my $ret=undef;
    $contact_type = "MOBILE" if ! defined $contact_type;
    $cookiejar = HTTP::Cookies->new();
   
    $rnr_se = auth($cookiejar);
   
    if (!defined $rnr_se) {
   return;
    } else {
   my ($url, $client, $request, $response, $postdata);
   my $browser = WWW::Mechanize->new();
   $browser->cookie_jar($cookiejar);
   eval{
       $browser->get( 'https://www.google.com/voice/c/ui/ContactManager');
       my $content = $browser->content();
      
       $content =~ /initContactData = (.*?)\}\;/;
       my $json_content = $1."}";
       my $json = new JSON;
      
       my $json_text = $json->allow_nonref->utf8->relaxed->escape_slash->loose->allow_singlequote->allow_barekey->decode($json_content);
      
       foreach my $episode(@{$json_text->{Body}{Contacts}}){
      if(lc($episode->{Name}) eq lc($contact_name)) {
          foreach my $types($episode->{Phones}) {
         foreach my $type(@$types) {
             if(lc($type->{Type}->{'Id'}) eq lc($contact_type)) {
            $ret = $type->{Number};
            return;
             }
         }
          }
      }
       }
   };
   # catch crashes:
   if($@){
       print "[[JSON ERROR]] JSON parser crashed! $@\n";
   }
    }
    return $ret;
}



sub usage {
    my $progname = $0;
    print "$progname -c <command>  [-p phone] [-t type] [-f from] [args]\n";
    print "Commands:\n";
    print "\tsms -p <phonenumber|name> <message>\n";
    print "\tcall -p <phonenumber|name>\n";
    print "\tcancel\n";
    print "-t is only used if you specify a contact name for -p and not a number\n";
}




sub auth {
    my $url = "https://www.google.com/accounts/ServiceLogin?passive=true&service=grandcentral&ltmpl=bluebar&continue=https%3A%2F%2Fwww.google.com%2Fvoice%2Faccount%2Fsignin%2F%3Fprev%3D%252F";
    my $mech = WWW::Mechanize->new();
   
    $mech->cookie_jar($cookiejar);
    $mech->agent('Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11');
    $mech->get($url);
    $mech->follow_meta_redirect( ignore_wait => 1 );
    if(!$mech->success) {
   print "ERROR: unable to get login page\n";
   return undef;
    }
   
    if (! defined $mech->form_number(1)) {
   print "ERROR: unable to locate login form!\n";
   return undef;
    }
    $mech->field(Email => $username);
    $mech->field(Passwd => $password);
    my $resp = $mech->click();
   
    if(!$resp->is_success) {
   print "ERROR: unable to get login page\n";
   return undef;
    }
   
    my $output_page = $mech->content();
    if ($output_page =~ m/\<meta/) {
   $mech->follow_link(tag => 'meta');
   $output_page = $mech->content();
    }
   
    if ($output_page =~ m/The username or password you entered is incorrect/) {
   print "ERROR: Username or password is incorrect\n";
   return undef;
    }
   
    if ($output_page =~ m/rnr_se.*value=\"(.*?)\"/) {
   $rnr_se = uri_escape($1);
    } else {
   print "ERROR: Unable to get the rnr_se value\n";
   return undef;
    }
   
   
    return $rnr_se;
}



###
# Send SMS
###
sub sendsms {
    my ($number, $message) = @_;
    $cookiejar = HTTP::Cookies->new();
   
    $rnr_se = auth($cookiejar);
   
    if (!defined $rnr_se) {
   return;
    } else {
   my ($url, $client, $request, $response, $postdata);
   
   $client = LWP::UserAgent->new();
   $client->agent('Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11');
   $client->timeout(30);
   $client->cookie_jar($cookiejar);
   
   $url = 'https://www.google.com/voice/sms/send/';
   $postdata = "id=&phoneNumber=".$number."&text=".uri_escape($message)."&_rnr_se=".$rnr_se;
   
   $request = HTTP::Request->new(POST => $url);
   $request->content_type('application/x-www-form-urlencoded');
   $request->content($postdata);
   $response = $client->request($request);
   
   if ($response->is_success) {
       print "SMS sent\n";
   } else {
       print "Could not send the SMS message ".$response->status_line."\n";
   }
    }
    return;
}


###
# Place a phone call
###
sub placecall {
    my ($dst_number, $from_number) = @_;
    $cookiejar = HTTP::Cookies->new();
   
    $rnr_se = auth($cookiejar);
   
    if (!defined $rnr_se) {
   return;
    } else {
   my ($url, $client, $request, $response, $postdata);
   
   $client = LWP::UserAgent->new();
   $client->agent('Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11');
   $client->timeout(30);
   $client->cookie_jar($cookiejar);
   
   $url = 'https://www.google.com/voice/call/connect/';
   $postdata = "outgoingNumber=$dst_number&forwardingNumber=$from_number&subscriberNumber=undefined&remember=0&_rnr_se=$rnr_se";
   
   $request = HTTP::Request->new(POST => $url);
   $request->content_type('application/x-www-form-urlencoded');
   $request->content($postdata);
   $response = $client->request($request);
   
   if ($response->is_success) {
       print "Call sent\n";
   } else {
       print "Could not place the call ".$response->status_line."\n";
   }
    }
    return;
}


###
# Cancel a call
###
sub cancelcall {
    $cookiejar = HTTP::Cookies->new();
   
    $rnr_se = auth($cookiejar);
   
    if (!defined $rnr_se) {
   return;
    } else {
   my ($url, $client, $request, $response, $postdata);
   
   $client = LWP::UserAgent->new();
   $client->agent('Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11');
   $client->timeout(30);
   $client->cookie_jar($cookiejar);
   
   $url = 'https://www.google.com/voice/call/cancel/';
   $postdata = "outgoingNumber=undefined&forwardingNumber=undefined&cancelType=C2C&_rnr_se=$rnr_se";
   
   $request = HTTP::Request->new(POST => $url);
   $request->content_type('application/x-www-form-urlencoded');
   $request->content($postdata);
   $response = $client->request($request);
   
   if ($response->is_success) {
       print "Call cancelled\n";
   } else {
       print "Could not cancel the call ".$response->status_line."\n";
   }
    }
    return;
}







eval "use Net::Netrc";
if (! $@) {
    my $mach = Net::Netrc->lookup('voice.google.com');
   
    if($mach) {
   ($username, $password, $default_number) = $mach->lpa;
    }
    if(! defined $username || ! defined $password || ! defined $default_number) {
   print "You must either create a ~/.netrc file or define the variables in this script\n";
   exit;
    }
}

if(! defined $username || ! defined $password || ! defined $default_number) {
    print "You dont have Net::Netrc installed so you must define the variables in this script\n";
    exit;
}




if (!defined $username || !defined $password) {
    print "You need to set the username and password\n";
    exit;
}


my %opts;

getopt ('c:t:f:p:',\%opts);

usage($0) unless ($opts{c});
$opts{t}=undef unless ($opts{t});
$opts{f}=$default_number unless $opts{f};


if (!defined $opts{c}) {
    usage($0);
    exit;
} elsif ($opts{c} eq "sms") {
    if ($opts{p} !~ /^(\+|\d)\d+$/) {
   my $num=getContact($opts{p},$opts{t});
   if(defined $num) {
       $opts{p}=$num;
   } else {
       print "Unable to locate contact $opts{p}\n";
       exit;
   }
    }
   
    if ($#ARGV ge 0) {
   my $message = join(' ', @ARGV);
   sendsms($opts{p},$message);
    } else {
   usage($0);
   exit;
    }
} elsif ($opts{c} eq "call") {
    if ($opts{p} !~ /^(\+|\d)\d+$/) {
   my $num=getContact($opts{p},$opts{t});
   if(defined $num) {
       $opts{p}=$num;
   } else {
       print "Unable to locate contact $opts{p}\n";
       exit;
   }
    }
   
    if(!defined $opts{f}) {
   print "Either specify a number or edit this script to set the default\n";
   exit;
    }
   
    placecall($opts{p},$opts{f});
} elsif ($opts{c} eq "cancel") {
    cancelcall();
} else {
    usage($0);
    exit;
}

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
peterw

Joined: 19 Jul 2006
Posts: 70
Location: UK

PostPosted: Mon 25 Aug 2014, 04:29    Post subject: Video conferencing
Subject description: An alternative to Skype and Hangouts
 

Hi

I am not sure if this is the right place to post this but if anyone wants a simple facility to video call people then this is a good alternative - no sign up, etc. The first web site is the actual site to start the call and the second site is the web site describing it. I can't remember where I found it. I have tried it once and it worked well.

https://appear.in/
http://www.makeuseof.com/tag/move-google-plus-hangouts-appear-really-good/

peterw
Back to top
View user's profile Send private message 
mcewanw

Joined: 16 Aug 2007
Posts: 2346
Location: New Zealand

PostPosted: Mon 25 Aug 2014, 04:43    Post subject: Re: Video conferencing
Subject description: An alternative to Skype and Hangouts
 

peterw wrote:
Hi

I am not sure if this is the right place to post this but if anyone wants a simple facility to video call people then this is a good alternative - no sign up, etc. The first web site is the actual site to start the call and the second site is the web site describing it. I can't remember where I found it. I have tried it once and it worked well.

https://appear.in/
http://www.makeuseof.com/tag/move-google-plus-hangouts-appear-really-good/

peterw


Not sure there is an appropriate thread as yet. appear.in uses WebRTC as does the similar app linked here:

http://www.murga-linux.com/puppy/viewtopic.php?p=796282#796282

William

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send private message Visit poster's website 
peterw

Joined: 19 Jul 2006
Posts: 70
Location: UK

PostPosted: Mon 25 Aug 2014, 10:26    Post subject: An alternative to skype and hangouts
Subject description: appear.in as a simple video talk feature
 

Hi

You are right, perhaps I should have posted it elsewhere or started my own topic. I was not particularly concerned about the technicalities of how it worked but the functions that it had. If someone was able, it should be possible to put a front end onto it so that when a button is pressed under internet a brief description come up stating how to use it and then giving the reference to the appear.in site. It would be a very lightweight video call system useful for Puppy. It does not need any programmes installed and can be used by any operating system, I think. It does not need people to install skype or google hangouts which is a one of its big strengths.

peterw
Back to top
View user's profile Send private message 
zandarian

Joined: 14 Oct 2009
Posts: 117

PostPosted: Tue 02 Sep 2014, 15:17    Post subject:  

Thanks. I can connect to my VoIP account unbinding the SIP ALG and the UDP 5060 port. But I listen no sound at all. Details in http://www.murga-linux.com/puppy/viewtopic.php?p=797672#797672
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 16 of 16 [236 Posts]   Goto page: Previous 1, 2, 3, ..., 14, 15, 16
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1213s ][ Queries: 13 (0.0091s) ][ GZIP on ]