Re: [asterisk-users] Asterisk 12 on Debian Wheezy [SOLVED]

2014-08-14 Thread Olivier
2014-08-13 19:06 GMT+02:00 Matthew Jordan mjor...@digium.com:
 On Wed, Aug 13, 2014 at 12:01 PM, Olivier oza.4...@gmail.com wrote:
 After installing various packages, here is what I did:

 TDIR=/usr/src
 cd $TDIR
 PJOPTIONS=--prefix=/usr --enable-shared --disable-sound
 --disable-resample --disable-video --disable-opencore-amr
 git clone https://github.com/asterisk/pjproject pjproject
 cd pjproject/
 ./configure ${PJOPTIONS}
 make dep
 make
 make install
 ldconfig
 cd /usr/src
 wget 
 http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-12.4.0.tar.gz
 tar zxf asterisk-12.4.0.tar.gz
 cd asterisk-12.4.0
 ./configure | grep -i PJPROJECT
 
 checking for PJPROJECT... no

 A shot with make menuselect shows PJSIP is not available for Asterisk.

 How can I help Asterisk's configure script to find PJPROJECT files
 (such as /usr/lib/libpjmedia.so) ?


 Does pkg-config find libpjproject?

 $ pkg-config --list-all | grep libpjproject

 Asterisk's configure script uses pkg-config - so if that can't find
 it, Asterisk can't find it.

 --
 Matthew Jordan
 Digium, Inc. | Engineering Manager
 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
 Check us out at: http://digium.com  http://asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


That was it: pkg-config was not installed.
I've been compiling Asterisk from source for years without installing
pkg-config !!


May I add that alternatively installing libpjproject-dev from
Wheezy-backports (with pkg-config) also allowed me to get PJSIP
available in Asterisk, according menuselect output.

Thank you everybody for your help !

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk on CentOS7

2014-08-14 Thread Ishfaq Malik
On 13 August 2014 17:51, Paul Greenberg p...@greenberg.pro wrote:

 Hi Matthew,

 I am using it. Works like a charm!

 Running it for 3 week already and have no issues. However, my system is
 not heavily utilized, i.e. 50-150 phone calls a day.

 The only thing is I was not able to get asterisk integrated with CentOS
 services daemon. So, I am starting asterisk manually.

 Best Regards,
 Paul Greenberg, Esq.

 Law Office of Paul Greenberg
 530 Main Street, Suite 102
 Fort Lee, NJ 07024
 E-mail: p...@greenberg.pro
 Tel:  201-402-6777
 Fax:  201-301-8876
 Web: http://www.greenberg.pro


 
 From: asterisk-users-boun...@lists.digium.com 
 asterisk-users-boun...@lists.digium.com on behalf of Matthew Jordan 
 mjor...@digium.com
 Sent: Wednesday, August 13, 2014 12:31 PM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: Re: [asterisk-users] Asterisk on CentOS7

 On Wed, Aug 13, 2014 at 3:10 AM, Ishfaq Malik i...@pack-net.co.uk wrote:
  Hi
 
  Is anyone using asterisk on CentOS 7?
 
  If so, is it working fine and as expected?
 

 Random data point: the Asterisk project's build agents are still on CentOS
 6.

 Your mileage may vary.



Thanks for the feedback. I think I've heard enough not to leapfrog from 5
to 7 and to go to 6 instead.

Regards

Ish


-- 

Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: i...@pack-net.co.uk
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] How to master Asterisk version when cloning PJPROJECT ?

2014-08-14 Thread Olivier
Hello,

I'm giving Asterisk 12 and 13 my first try.

When compiling PJPROJECT from source, as described in wiki page, I'm using this:
git clone https://github.com/asterisk/pjproject pjproject

I suppose the above PJPROJECT is evolving for Asterisk 12, Asterisk 13
and later.
A quick look at https://github.com/asterisk/pjproject shows several tags.

I want to be able to build a bit-to-bit exact copy of given setup,
several months later.

How can I achieve this ?
Is it possible to specify with git the exact Asterisk version I would
like PJPROJECT to match ?

Regards

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to master Asterisk version when cloning PJPROJECT ?

2014-08-14 Thread Joshua Colp

Olivier wrote:

Hello,


Kia ora,


I'm giving Asterisk 12 and 13 my first try.

When compiling PJPROJECT from source, as described in wiki page, I'm using this:
 git clone https://github.com/asterisk/pjproject pjproject

I suppose the above PJPROJECT is evolving for Asterisk 12, Asterisk 13
and later.


This is actually unlikely. PJPROJECT itself is an outside project[1]. A 
version exists in git by us because we added shared library support to 
it (which is now upstream). The git repo exists for now in case we need 
to make any other large changes. It may go away in the future and the 
instructions updated to just use pjproject from upstream.



A quick look at https://github.com/asterisk/pjproject shows several tags.

I want to be able to build a bit-to-bit exact copy of given setup,
several months later.


I'd just use a specific released version of pjproject. I personally use 
the SVN version of pjproject to ensure that Asterisk can compile against 
it at all times. Provided you use the 2.x series then it's fine.


[1] http://www.pjsip.org/

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com  www.asterisk.org

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] missing asterisk now rpm for centos5

2014-08-14 Thread Cassius Smith
Hi all,
I’m not sure if this is the right list to send this to, but the “AsteriskNow” 
meta-package is missing from the centos/5/asterisk-1.8-certified/i386/RPMS 
directory. Is this package still available? I’ve got a VERY old machine that I 
am pressing into service; it won’t run CentOS 6.

Many thanks
Cassius Smith
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to master Asterisk version when cloning PJPROJECT ? [SOLVED]

2014-08-14 Thread Olivier
2014-08-14 12:03 GMT+02:00 Joshua Colp jc...@digium.com:
 Olivier wrote:

 Hello,


 Kia ora,


 I'm giving Asterisk 12 and 13 my first try.

 When compiling PJPROJECT from source, as described in wiki page, I'm using
 this:
  git clone https://github.com/asterisk/pjproject pjproject

 I suppose the above PJPROJECT is evolving for Asterisk 12, Asterisk 13
 and later.


 This is actually unlikely. PJPROJECT itself is an outside project[1]. A
 version exists in git by us because we added shared library support to it
 (which is now upstream). The git repo exists for now in case we need to make
 any other large changes. It may go away in the future and the instructions
 updated to just use pjproject from upstream.


 A quick look at https://github.com/asterisk/pjproject shows several tags.

 I want to be able to build a bit-to-bit exact copy of given setup,
 several months later.


 I'd just use a specific released version of pjproject. I personally use the
 SVN version of pjproject to ensure that Asterisk can compile against it at
 all times. Provided you use the 2.x series then it's fine.

 [1] http://www.pjsip.org/

 --
 Joshua Colp
 Digium, Inc. | Senior Software Developer
 445 Jan Davis Drive NW - Huntsville, AL 35806 - US
 Check us out at: www.digium.com  www.asterisk.org

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


I could successfully download PJPROJECT from [1], compile and asterisk
(12.4.0) detected compiled PJPROJECT binaries.

I can now precisely choose PJPROJECT version.

Thanks for sharing this.

[1] http://www.pjsip.org/release/2.2.1/pjproject-2.2.1.tar.bz2

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Copying menuselect options

2014-08-14 Thread Mitch Claborn
Is it possible (and advisable) to copy menuselect options from Asterisk 
11 to Asterisk 12?  If so, is menuselect.makeopts the only file to copy?


--

Mitch


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk on CentOS7

2014-08-14 Thread Paul Greenberg
building from source.


From: asterisk-users-boun...@lists.digium.com 
asterisk-users-boun...@lists.digium.com on behalf of Anthony Messina 
amess...@messinet.com
Sent: Thursday, August 14, 2014 12:54 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk on CentOS7

On Thursday, August 14, 2014 03:15:16 AM Paul Greenberg wrote:
 Hi Anthony,

 That script does not work. My guess is that it is related to the way
 asterisk interacts with CentOS environment.

 Best Regards,
 Paul Greenberg, Esq.

 On Wednesday, August 13, 2014 12:11:42 PM Carlos Chavez wrote:
   I installed CentOS 7 on a spare server along with all our Asterisk
 
  configuration system and the only thing that failed is the asterisk
  startup script included in the asterisk tarball.  I guess because the
  startup system has changed so much that script will have to be updated.
  Everything else worked fine as far as I can tell but obviously I did not
  stress test that installation.

 You can use the systemd unit file I have here:
 https://messinet.com/rpms/browser/asterisk/asterisk.service?rev=2ce57c334633
 881bb4d1baaeb6ae1e63c032abdc

 It's what Fedora uses as well.  This should work properly in EL7.  Hopefully
 in not too long, I'll have Asterisk 13 builds for EL7, though I need to
 figure out a few dependency issues: https://messinet.com/rpms/

I do know that the Fedora EPEL project provides Asterisk for EL6, and I
believe they will support it for EL7 as well, once EPEL 7 comes out of beta
status.  EL7 uses systemd, so I'm not sure that the regular init file will
work properly without some tweaking, which is why I pointed you to the systemd
unit file that is used by the Asterisk RPMs from Fedora 20, and the one I use
with the RPM builds I make myself.

How are you installing Asterisk on CentOS 7?  Are you doing a regular
make/install from source, or using RPM packages?

--
Anthony - https://messinet.com/ - https://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Possible handle leak in PJSIP

2014-08-14 Thread CDR
I have been seeing errors saying the Asterisk cannot establish an RTP
connection, so I did this:
 lsof -i -n -P | grep asterisk | wc -l
10483

but I have only
Asterisk 11 has 1 open calls
Asterisk 12 has 21 open calls
Asterisk 14 has 19 open calls
Asterisk 15 has 22 open calls
Asterisk 16 has 15 open calls
Asterisk 17 has 15 open calls
Asterisk 30 has 71 open calls
Total
164 active calls

The machine has 30 asterisk process, most of them dormant.
There is no way with 164 active calls we may have 10484 handles allocated.
I have no idea how to debug this. I suggest that an experienced
engineer from Digium logs into the box  and researches this problem,
else nobody is going to ever be able to use PJSIP in production.
The box is Fedora 20, fully updated.
It grows about 30 handles per minute and it never goes down.
The dialplan is actually a four liner

look at the audiowritecodec
select an outbound endpoint based on that

The idea is to bridge calls based on the codec to avoid any
transcoding, so I have two outbound codecs and I dial like this:

exten = _X.,1,Set(_SIP_CODEC_OUTBOUND=${CHANNEL(audiowriteformat):0:4})
exten = _X.,n,Goto(${SIP_CODEC_OUTBOUND})
exten = _X.,n(ulaw),Dial(PJSIP/alawoutbound/sip:${EXTEN}@X.X.X.X)
exten = _X.,n(g729),Dial(PJSIP/g729outbound/sip:${EXTEN}@X.X.X.X)

As you can see, Houston, we have a problem

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Question about SIP Dial

2014-08-14 Thread CDR
In channel PJSIP I use this format
Dial(PJSIP/endpoint/sip:${EXTEN}@ip.add.re.ss)
what would be the equivalent of this format in old SIP?
I tried
Dial(SIP/peer/${EXTEN}@ip.add.re.ss)
but it does not work. I just cannot embed the IP address in the peer's
definition, but I need to use some other configuration features that
are unique to each peer.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users