[asterisk-users] Why I get repeat messages many times

2015-09-24 Thread Thyda ENG
I am using the asterisk 13 and I config my dialplan for the SIP messaging
as the following :
http://highsecurity.blogspot.com/2012/03/asterisk-10-110-sms-messaging-or-sip.html
[astsms]
exten => _.,1,NoOp(SMS receiving dialplan invoked)
exten => _.,n,NoOp(To ${MESSAGE(to)})
exten => _.,n,NoOp(From ${MESSAGE(from)})
exten => _.,n,NoOp(Body ${MESSAGE(body)})
exten => _.,n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)})
exten => _.,n,MessageSend(${ACTUALTO},${MESSAGE(from)})
exten => _.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
exten => _.,n,GotoIf($["${MESSAGE_SEND_STATUS}" != "SUCCESS"]?sendfailedmsg)
exten => _.,n,Hangup()

With this configuration I could send message, but I don't know what wrong
with it as sometimes I get the repeat messages many times. do you have any
idea?
-- 
_
-- 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] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Joshua Colp

On 15-09-23 10:25 PM, Ryan, Travis wrote:

Ok I did all that and it's still crashing. I did find some other
areas I think that shouldn't have had any of those files, so I
thought it would work, because I got rid of ALL of them per your
instructions and completely reconfigured and compiled both pjsip and
then asterisk.


Same problem. Asterisk was built against static instead of shared. 
What's the output of:


ls -al /usr/lib/libpj*
pkg-config --libs libpjproject

And from the pjproject source directory:
grep "aconfigure" config.status

--
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


Re: [asterisk-users] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Joshua Colp

On 15-09-24 08:45 AM, Ryan, Travis wrote:

I could bet it could be something in pkg-config. How do I get that to reset? I 
never changed anything in there.


It is an installed file from pjproject.

--
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


Re: [asterisk-users] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Ryan, Travis
I could bet it could be something in pkg-config. How do I get that to reset? I 
never changed anything in there.

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Joshua Colp
Sent: Thursday, September 24, 2015 6:23 AM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] problems with PJSIP install on UBUNTU 14.04

On 15-09-23 10:25 PM, Ryan, Travis wrote:
> Ok I did all that and it's still crashing. I did find some other areas 
> I think that shouldn't have had any of those files, so I thought it 
> would work, because I got rid of ALL of them per your instructions and 
> completely reconfigured and compiled both pjsip and then asterisk.

Same problem. Asterisk was built against static instead of shared. 
What's the output of:

ls -al /usr/lib/libpj*
pkg-config --libs libpjproject

And from the pjproject source directory:
grep "aconfigure" config.status

--
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


-- 
_
-- 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] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Ryan, Travis


-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Joshua Colp
Sent: Thursday, September 24, 2015 6:23 AM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] problems with PJSIP install on UBUNTU 14.04

On 15-09-23 10:25 PM, Ryan, Travis wrote:
> Ok I did all that and it's still crashing. I did find some other areas 
> I think that shouldn't have had any of those files, so I thought it 
> would work, because I got rid of ALL of them per your instructions and 
> completely reconfigured and compiled both pjsip and then asterisk.

Same problem. Asterisk was built against static instead of shared. 
What's the output of:

ls -al /usr/lib/libpj*
pkg-config --libs libpjproject

And from the pjproject source directory:
grep "aconfigure" config.status

--
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

travis@pcimphone1:~/downloads/asterisk-13.5.0$ ls -al /usr/lib/libpj*
lrwxrwxrwx 1 root root 18 Sep 23 19:13 /usr/lib/libpjlib-util.so -> 
libpjlib-util.so.2
-rwxr-xr-x 1 root root 172098 Sep 23 19:13 /usr/lib/libpjlib-util.so.2
-rw-r--r-- 1 root root 243816 Sep 23 19:13 
/usr/lib/libpjlib-util-x86_64-unknown-linux-gnu.a
lrwxrwxrwx 1 root root 24 Sep 23 19:13 /usr/lib/libpjmedia-audiodev.so -> 
libpjmedia-audiodev.so.2
-rwxr-xr-x 1 root root  23345 Sep 23 19:13 /usr/lib/libpjmedia-audiodev.so.2
-rw-r--r-- 1 root root  31690 Sep 23 19:13 
/usr/lib/libpjmedia-audiodev-x86_64-unknown-linux-gnu.a
lrwxrwxrwx 1 root root 21 Sep 23 19:14 /usr/lib/libpjmedia-codec.so -> 
libpjmedia-codec.so.2
-rwxr-xr-x 1 root root  58816 Sep 23 19:14 /usr/lib/libpjmedia-codec.so.2
-rw-r--r-- 1 root root  84334 Sep 23 19:14 
/usr/lib/libpjmedia-codec-x86_64-unknown-linux-gnu.a
lrwxrwxrwx 1 root root 15 Sep 23 19:14 /usr/lib/libpjmedia.so -> 
libpjmedia.so.2
-rwxr-xr-x 1 root root 333058 Sep 23 19:14 /usr/lib/libpjmedia.so.2
lrwxrwxrwx 1 root root 24 Sep 23 19:13 /usr/lib/libpjmedia-videodev.so -> 
libpjmedia-videodev.so.2
-rwxr-xr-x 1 root root   8005 Sep 23 19:13 /usr/lib/libpjmedia-videodev.so.2
-rw-r--r-- 1 root root   9002 Sep 23 19:13 
/usr/lib/libpjmedia-videodev-x86_64-unknown-linux-gnu.a
-rw-r--r-- 1 root root 492756 Sep 23 19:14 
/usr/lib/libpjmedia-x86_64-unknown-linux-gnu.a
lrwxrwxrwx 1 root root 14 Sep 23 19:13 /usr/lib/libpjnath.so -> 
libpjnath.so.2
-rwxr-xr-x 1 root root 170365 Sep 23 19:13 /usr/lib/libpjnath.so.2
-rw-r--r-- 1 root root 230232 Sep 23 19:13 
/usr/lib/libpjnath-x86_64-unknown-linux-gnu.a
lrwxrwxrwx 1 root root 20 Sep 23 19:14 /usr/lib/libpjsip-simple.so -> 
libpjsip-simple.so.2
-rwxr-xr-x 1 root root  96124 Sep 23 19:14 /usr/lib/libpjsip-simple.so.2
-rw-r--r-- 1 root root 125244 Sep 23 19:14 
/usr/lib/libpjsip-simple-x86_64-unknown-linux-gnu.a
lrwxrwxrwx 1 root root 13 Sep 23 19:14 /usr/lib/libpjsip.so -> libpjsip.so.2
-rwxr-xr-x 1 root root 310921 Sep 23 19:14 /usr/lib/libpjsip.so.2
lrwxrwxrwx 1 root root 16 Sep 23 19:14 /usr/lib/libpjsip-ua.so -> 
libpjsip-ua.so.2
-rwxr-xr-x 1 root root 117344 Sep 23 19:14 /usr/lib/libpjsip-ua.so.2
-rw-r--r-- 1 root root 142916 Sep 23 19:14 
/usr/lib/libpjsip-ua-x86_64-unknown-linux-gnu.a
-rw-r--r-- 1 root root 454220 Sep 23 19:14 
/usr/lib/libpjsip-x86_64-unknown-linux-gnu.a
lrwxrwxrwx 1 root root 10 Sep 23 19:12 /usr/lib/libpj.so -> libpj.so.2
-rwxr-xr-x 1 root root 202183 Sep 23 19:12 /usr/lib/libpj.so.2
lrwxrwxrwx 1 root root 14 Sep 23 19:15 /usr/lib/libpjsua2.so -> 
libpjsua2.so.2
-rwxr-xr-x 1 root root 534949 Sep 23 19:15 /usr/lib/libpjsua2.so.2
-rw-r--r-- 1 root root 892162 Sep 23 19:15 
/usr/lib/libpjsua2-x86_64-unknown-linux-gnu.a
lrwxrwxrwx 1 root root 13 Sep 23 19:14 /usr/lib/libpjsua.so -> libpjsua.so.2
-rwxr-xr-x 1 root root 281900 Sep 23 19:14 /usr/lib/libpjsua.so.2
-rw-r--r-- 1 root root 374498 Sep 23 19:14 
/usr/lib/libpjsua-x86_64-unknown-linux-gnu.a
-rw-r--r-- 1 root root 283852 Sep 23 19:12 
/usr/lib/libpj-x86_64-unknown-linux-gnu.a

travis@pcimphone1:~/downloads/asterisk-13.5.0$ pkg-config --libs libpjproject
-L/usr/local/lib -lpjsua2-x86_64-unknown-linux-gnu -lstdc++ 
-lpjsua-x86_64-unknown-linux-gnu -lpjsip-ua-x86_64-unknown-linux-gnu 
-lpjsip-simple-x86_64-unknown-linux-gnu -lpjsip-x86_64-unknown-linux-gnu 
-lpjmedia-codec-x86_64-unknown-linux-gnu 
-lpjmedia-videodev-x86_64-unknown-linux-gnu 
-lpjmedia-audiodev-x86_64-unknown-linux-gnu -lpjmedia-x86_64-unknown-linux-gnu 
-lpjnath-x86_64-unknown-linux-gnu -lpjlib-util-x86_64-unknown-linux-gnu 
-lsrtp-x86_64-unknown-linux-gnu -lresample-x86_64-unknown-linux-gnu 
-lgsmcodec-x86_64-unknown-linux-gnu -lspeex-x86_64-unknown-linux-gnu 
-lilbccodec-x86_64-unknown-linux-gnu -lg7221codec-x86_64-unknown-linux-gnu 
-lportaudio-x86_64-unknown-linux-gnu -lpj-x86_64-unknown-linux-gnu -lssl 
-lcrypto -luuid -lm -lrt -lpthread


Re: [asterisk-users] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Joshua Colp

On 15-09-24 08:54 AM, Ryan, Travis wrote:


travis@pcimphone1:~/downloads/asterisk-13.5.0$ pkg-config --libs
libpjproject -L/usr/local/lib -lpjsua2-x86_64-unknown-linux-gnu
-lstdc++ -lpjsua-x86_64-unknown-linux-gnu
-lpjsip-ua-x86_64-unknown-linux-gnu
-lpjsip-simple-x86_64-unknown-linux-gnu
-lpjsip-x86_64-unknown-linux-gnu
-lpjmedia-codec-x86_64-unknown-linux-gnu
-lpjmedia-videodev-x86_64-unknown-linux-gnu
-lpjmedia-audiodev-x86_64-unknown-linux-gnu
-lpjmedia-x86_64-unknown-linux-gnu -lpjnath-x86_64-unknown-linux-gnu
-lpjlib-util-x86_64-unknown-linux-gnu -lsrtp-x86_64-unknown-linux-gnu
-lresample-x86_64-unknown-linux-gnu
-lgsmcodec-x86_64-unknown-linux-gnu -lspeex-x86_64-unknown-linux-gnu
-lilbccodec-x86_64-unknown-linux-gnu
-lg7221codec-x86_64-unknown-linux-gnu
-lportaudio-x86_64-unknown-linux-gnu -lpj-x86_64-unknown-linux-gnu
-lssl -lcrypto -luuid -lm -lrt -lpthread


Your pkg-config file is specifying /usr/local/lib - are there any 
remaining libpj files in there?


ls -al /usr/local/lib/libpj*.so
ls -al /usr/local/lib/libpj*.a


--
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] Asterisk => Mediant 1000 (AudioCodes) => PSTN (E1)

2015-09-24 Thread Welinghton Magno Guimaraes

	
		Hello!
	
		 
	
		I am setting up an Asterisk server with a Mediant 1000 (Audiocodes) to make external links. Does anyone have any manual or instructions on how to proceed?
	
		 
	
		Asterisk  =>  Mediant 1000 (AudioCodes)  =>  PSTN (E1)
	
		 
	
		 
	
		I will be very grateful for the help.
	
		 
	
		Thanks!


	 

	 

	Welinghton.


-- 
_
-- 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] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Ryan, Travis
Ok, I reinstalled pkg-config from apt-get and now I think it¹s all good.
Man, PJSIP has been a chore to get working right on this server and on the
last. Though the last server wasn¹t near the issue this was. Lol

I think what happened was that after initial trouble, I ran the ³install
prereq² or something like that and it must have did it¹s own install of
pjsip that sent me down a duplicate path, etc.

Thanks Josh and all!

On 9/24/15, 2:10 PM, "asterisk-users-boun...@lists.digium.com on behalf of
Joshua Colp"  wrote:

>Ryan, Travis wrote:
>>>
>> I think i¹m down to the right set of pj and only have one of the files
>>for
>> pkg-config but now asterisk doesn¹t see that it¹s installed. Also
>>ldconfig
>> is showing right info.
>> 
>> 
>
>What does pkg-config --libs libpjproject show now? That is what Asterisk
>uses.
>
>-- 
>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


-- 
_
-- 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] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Joshua Colp

Ryan, Travis wrote:



That folder doesn¹t have any libpj files in it. How do I make it find the
real ones?


You can delete libpjproject.pc from the places it currently exists and 
then reinstall pjproject. That should put a proper pkg-config file in. 
Then doing a make distclean and make of Asterisk may work.


--
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


Re: [asterisk-users] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Ryan, Travis


On 9/24/15, 1:30 PM, "asterisk-users-boun...@lists.digium.com on behalf of
Joshua Colp"  wrote:

>Ryan, Travis wrote:
>>>
>> That folder doesn¹t have any libpj files in it. How do I make it find
>>the
>> real ones?
>
>You can delete libpjproject.pc from the places it currently exists and
>then reinstall pjproject. That should put a proper pkg-config file in.
>Then doing a make distclean and make of Asterisk may work.
>
>-- 
>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 think i’m down to the right set of pj and only have one of the files for
pkg-config but now asterisk doesn’t see that it’s installed. Also ldconfig
is showing right info.

>

-- 
_
-- 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] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Ryan, Travis


On 9/24/15, 8:10 AM, "asterisk-users-boun...@lists.digium.com on behalf of
Joshua Colp"  wrote:

>On 15-09-24 08:54 AM, Ryan, Travis wrote:
>>
>> travis@pcimphone1:~/downloads/asterisk-13.5.0$ pkg-config --libs
>> libpjproject -L/usr/local/lib -lpjsua2-x86_64-unknown-linux-gnu
>> -lstdc++ -lpjsua-x86_64-unknown-linux-gnu
>> -lpjsip-ua-x86_64-unknown-linux-gnu
>> -lpjsip-simple-x86_64-unknown-linux-gnu
>> -lpjsip-x86_64-unknown-linux-gnu
>> -lpjmedia-codec-x86_64-unknown-linux-gnu
>> -lpjmedia-videodev-x86_64-unknown-linux-gnu
>> -lpjmedia-audiodev-x86_64-unknown-linux-gnu
>> -lpjmedia-x86_64-unknown-linux-gnu -lpjnath-x86_64-unknown-linux-gnu
>> -lpjlib-util-x86_64-unknown-linux-gnu -lsrtp-x86_64-unknown-linux-gnu
>> -lresample-x86_64-unknown-linux-gnu
>> -lgsmcodec-x86_64-unknown-linux-gnu -lspeex-x86_64-unknown-linux-gnu
>> -lilbccodec-x86_64-unknown-linux-gnu
>> -lg7221codec-x86_64-unknown-linux-gnu
>> -lportaudio-x86_64-unknown-linux-gnu -lpj-x86_64-unknown-linux-gnu
>> -lssl -lcrypto -luuid -lm -lrt -lpthread
>
>Your pkg-config file is specifying /usr/local/lib - are there any
>remaining libpj files in there?
>
>ls -al /usr/local/lib/libpj*.so
>ls -al /usr/local/lib/libpj*.a
>
>
>-- 
>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
>
That folder doesn¹t have any libpj files in it. How do I make it find the
real ones?
>


-- 
_
-- 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] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Joshua Colp
Ryan, Travis wrote:
>>
> I think i’m down to the right set of pj and only have one of the files for
> pkg-config but now asterisk doesn’t see that it’s installed. Also ldconfig
> is showing right info.
> 
> 

What does pkg-config --libs libpjproject show now? That is what Asterisk
uses.

-- 
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

Re: [asterisk-users] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Ryan, Travis
Did something change DB-wise with PJSIP and realtime between 13.3.2 and 13.5.0? 
I'm getting an unknown column error and unsure where I need that column and the 
type it needs to be. 

Thanks!

[Sep 24 15:32:41] -- Attempted to remove non-existent contact 
'sip:312@10.1.1.201:5060' from AOR '312' by request
[Sep 24 15:33:53] WARNING[27948]: res_odbc.c:649 ast_odbc_prepare_and_execute: 
SQL Execute returned an error -1: 42S22: [MySQL][ODBC 5.1 
Driver][mysqld-5.5.44-0ubuntu0.14.04.1]Unknown column 'qualify_timeout' in 
'field list' (104)
[Sep 24 15:33:53] WARNING[27948]: res_odbc.c:661 ast_odbc_prepare_and_execute: 
SQL Execute error -1! Verifying connection to pcim [pcim]...
[Sep 24 15:33:53] WARNING[27948]: res_odbc.c:765 ast_odbc_sanity_check: 
Connection is down attempting to reconnect...
[Sep 24 15:33:58] NOTICE[27948]: res_odbc.c:1528 odbc_obj_connect: Connecting 
pcim
[Sep 24 15:33:58] NOTICE[27948]: res_odbc.c:1567 odbc_obj_connect: res_odbc: 
Connected to pcim [pcim]
[Sep 24 15:33:58] WARNING[27948]: res_odbc.c:649 ast_odbc_prepare_and_execute: 
SQL Execute returned an error -1: 42S22: [MySQL][ODBC 5.1 
Driver][mysqld-5.5.44-0ubuntu0.14.04.1]Unknown column 'qualify_timeout' in 
'field list' (104)
[Sep 24 15:33:58] WARNING[27948]: res_odbc.c:661 ast_odbc_prepare_and_execute: 
SQL Execute error -1! Verifying connection to pcim [pcim]...
[Sep 24 15:33:58] WARNING[27948]: res_odbc.c:765 ast_odbc_sanity_check: 
Connection is down attempting to reconnect...
[Sep 24 15:34:03] NOTICE[27948]: res_odbc.c:1528 odbc_obj_connect: Connecting 
pcim
[Sep 24 15:34:03] NOTICE[27948]: res_odbc.c:1567 odbc_obj_connect: res_odbc: 
Connected to pcim [pcim]
[Sep 24 15:34:03] ERROR[27948]: res_pjsip_registrar.c:504 rx_task: Unable to 
bind contact 'sip:312@10.1.1.201:5060' to AOR '312'


-- 
_
-- 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] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Joshua Colp

On 15-09-24 04:42 PM, Ryan, Travis wrote:

Did something change DB-wise with PJSIP and realtime between 13.3.2
and 13.5.0? I'm getting an unknown column error and unsure where I
need that column and the type it needs to be.


Yes, the schema can change between versions. Following the instructions 
on 
https://wiki.asterisk.org/wiki/display/AST/Setting+up+PJSIP+Realtime#SettingupPJSIPRealtime-InstallingandUsingAlembic 
will cause alembic to upgrade the tables.


--
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] same sip username with realms and chan_sip

2015-09-24 Thread Ludovic Gasc
Hi,

How have the same sip username in several realms ?
For now, I must add the realm prefix in the sip username of chan_sip.

For example:
[lg_2540]
amaflags = default
call-limit = 10
host = dynamic
language = en_US
context = lg_default
callerid = "LG" <2540>
secret = XX
type = friend
subscribemwi = no
mohsuggest = default
qualify = yes
fromdomain=lg.allocloud.com
fromuser=2540

If I use only [2540] as section name, I'll have a clash on the same
Asterisk.

Thanks for your answers.
--
Ludovic Gasc (GMLudo)
http://www.gmludo.eu/
-- 
_
-- 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] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Ryan, Travis
Yes, the schema can change between versions. Following the instructions on 
https://wiki.asterisk.org/wiki/display/AST/Setting+up+PJSIP+Realtime#SettingupPJSIPRealtime-InstallingandUsingAlembic
will cause alembic to upgrade the tables.

--
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


I'm not a fan of alembic at all, but I'll give it another try. 

One issue I have is I don't want it to make the extensions table, because I 
already use that name of table for some proprietary stuff I use. Right now it's 
complaining that I already have a table named that. Any way to exclude that 
other stuff, and only have it manage the core sip_devices and PJSIP stuff?


travis@pcimphone1:~/downloads/asterisk-13.5.0/contrib/ast-db-manage$ sudo 
alembic -c config.ini upgrade head
INFO  [alembic.migration] Context impl MySQLImpl.
INFO  [alembic.migration] Will assume non-transactional DDL.
INFO  [alembic.migration] Running upgrade 43956d550a44 -> 581a4264e537, adding 
extensions
Traceback (most recent call last):
  File "/usr/bin/alembic", line 9, in 
load_entry_point('alembic==0.6.2', 'console_scripts', 'alembic')()
  File "/usr/lib/python2.7/dist-packages/alembic/config.py", line 298, in main
CommandLine(prog=prog).main(argv=argv)
  File "/usr/lib/python2.7/dist-packages/alembic/config.py", line 293, in main
self.run_cmd(cfg, options)
  File "/usr/lib/python2.7/dist-packages/alembic/config.py", line 279, in 
run_cmd
**dict((k, getattr(options, k)) for k in kwarg)
  File "/usr/lib/python2.7/dist-packages/alembic/command.py", line 124, in 
upgrade
script.run_env()
  File "/usr/lib/python2.7/dist-packages/alembic/script.py", line 199, in 
run_env
util.load_python_file(self.dir, 'env.py')
  File "/usr/lib/python2.7/dist-packages/alembic/util.py", line 199, in 
load_python_file
module = load_module(module_id, path)
  File "/usr/lib/python2.7/dist-packages/alembic/compat.py", line 55, in 
load_module
mod = imp.load_source(module_id, path, fp)
  File "config/env.py", line 73, in 
run_migrations_online()
  File "config/env.py", line 66, in run_migrations_online
context.run_migrations()
  File "", line 7, in run_migrations
  File "/usr/lib/python2.7/dist-packages/alembic/environment.py", line 652, in 
run_migrations
self.get_context().run_migrations(**kw)
  File "/usr/lib/python2.7/dist-packages/alembic/migration.py", line 225, in 
run_migrations
change(**kw)
  File "config/versions/581a4264e537_adding_extensions.py", line 45, in upgrade
sa.Column('appdata', sa.String(256), nullable=False),
  File "", line 7, in create_table
  File "/usr/lib/python2.7/dist-packages/alembic/operations.py", line 647, in 
create_table
self._table(name, *columns, **kw)
  File "/usr/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 149, in 
create_table
self._exec(schema.CreateTable(table))
  File "/usr/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 76, in _exec
conn.execute(construct, *multiparams, **params)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 662, 
in execute
params)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 720, 
in _execute_ddl
compiled
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 874, 
in _execute_context
context)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1024, 
in _handle_dbapi_exception
exc_info
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 196, 
in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 867, 
in _execute_context
context)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 
324, in do_execute
cursor.execute(statement, parameters)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in 
execute
self.errorhandler(self, exc, value)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in 
defaulterrorhandler
raise errorclass, errorvalue
sqlalchemy.exc.OperationalError: (OperationalError) (1050, "Table 'extensions' 
already exists") '\nCREATE TABLE extensions (\n\tid BIGINT NOT NULL 
AUTO_INCREMENT, \n\tcontext VARCHAR(40) NOT NULL, \n\texten VARCHAR(40) NOT 
NULL, \n\tpriority INTEGER NOT NULL, \n\tapp VARCHAR(40) NOT NULL, \n\tappdata 
VARCHAR(256) NOT NULL, \n\tPRIMARY KEY (id, context, exten, priority), 
\n\tUNIQUE (id)\n)\n\n' ()



-- 
_
-- 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:
   

[asterisk-users] Xorcom T1 to PRI

2015-09-24 Thread Jeff LaCoursiere


Hi,

I have a client that has a 24 channel voice T1 that I have been using 
e signalling over for a number of years.  The local telco finally got 
an ISDN switch and wants to move them to PRI.  I didn't see this as a 
big problem - I've done a few others on this particular Caribbean island 
without issues, but this would be the first time with a Xorcom unit 
involved.


We tried to do it tonight and failed.  I suspect there is an issue at 
their central office where they patched the line away from an old 
dms-100 and to the new ISDN switch - the tech said he couldn't see 
anything at the line layer, though I showed no alarms.  Regardless, 
something odd happened that I am hoping for some advice on.  We reverted 
to the T1 and will try again next week.


The odd bit is this - lsdahdi showed all 24 channels as "T1" instead of 
"PRI".  The output of lsdahdi at another site where I had already done 
this conversion (which uses a Sangoma card) looks like this:


root@astsouth:/etc/dahdi# lsdahdi
### Span  1: WPT1/0 "wanpipe1 card 0" (MASTER) ESF/B8ZS
  1 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  2 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  3 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  4 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  5 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  6 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  7 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  8 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  9 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 10 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 11 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 12 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 13 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 14 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 15 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 16 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 17 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 18 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 19 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 20 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 21 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 22 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 23 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 24 PRIHardware-assisted HDLC  (In use) (EC: WANPIPE_HWEC - 
INACTIVE)


Bah, the scrollback has already erased the output from the box in 
question, but essentially it showed the same as above with "T1" in the 
second column for all channels instead of "PRI".


They both had identical system.conf, which looks like this:

loadzone=us
defaultzone=us
span=1,1,0,esf,b8zs
bchan=1-23
echocanceller=mg2,1-23
hardhdlc=24

In fact the *only* things I changed from the old system.conf tonight was 
swapping "e=1-24" for "bchan=1-23" and adding the "hardhdlc=24".  The 
old (now functioning) system.conf looks like this:


# Span 1: XBUS-00/XPD-00 "Xorcom XPD [usb:X1067719].1: T1" (MASTER) 
B8ZS/ESF RED

loadzone= us
defaultzone= us
span=1,1,0,esf,b8zs
e=1-24
echocanceller=mg2,1-24

So what about system.conf would cause lsdahdi to show "T1" instead of 
"PRI" in column two?  Just trying to head off any additional problems 
once they get their patching sorted out.


Thanks,

j

--
_
-- 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] Xorcom T1 to PRI

2015-09-24 Thread Jeff LaCoursiere

[snip]


So what about system.conf would cause lsdahdi to show "T1" instead of
"PRI" in column two?  Just trying to head off any additional problems
once they get their patching sorted out.



The issue is probably with the wanpipe configuration and not with 
DAHDI or Asterisk.  Run the wanpipe_cfg script again and make sure you 
change all necessary settings from E to ISDN PRI.




The site with the Sangoma (wanpipe) card is working as expected as a 
PRI.  The site that I couldn't switch tonight uses a Xorcom box - the 
only one I have worked on.  Is there also something about Xorcom config 
that needs to change to make it realize it is a PRI and not a T1?  I 
don't recall anything like that in the installation, but that was some 
time ago.


Thanks,

j


--
_
-- 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] Xorcom T1 to PRI

2015-09-24 Thread Carlos Chavez

On 2015-09-24 17:08, Jeff LaCoursiere wrote:

Hi,

I have a client that has a 24 channel voice T1 that I have been using
e signalling over for a number of years.  The local telco finally
got an ISDN switch and wants to move them to PRI.  I didn't see this
as a big problem - I've done a few others on this particular Caribbean
island without issues, but this would be the first time with a Xorcom
unit involved.

We tried to do it tonight and failed.  I suspect there is an issue at
their central office where they patched the line away from an old
dms-100 and to the new ISDN switch - the tech said he couldn't see
anything at the line layer, though I showed no alarms.  Regardless,
something odd happened that I am hoping for some advice on.  We
reverted to the T1 and will try again next week.

The odd bit is this - lsdahdi showed all 24 channels as "T1" instead
of "PRI".  The output of lsdahdi at another site where I had already
done this conversion (which uses a Sangoma card) looks like this:

root@astsouth:/etc/dahdi# lsdahdi
### Span  1: WPT1/0 "wanpipe1 card 0" (MASTER) ESF/B8ZS
  1 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  2 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  3 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  4 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  5 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  6 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  7 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  8 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
  9 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 10 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 11 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 12 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 13 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 14 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 15 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 16 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 17 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 18 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 19 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 20 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 21 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 22 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 23 PRIClear   (In use) (EC: WANPIPE_HWEC - INACTIVE)
 24 PRIHardware-assisted HDLC  (In use) (EC: WANPIPE_HWEC - 
INACTIVE)


Bah, the scrollback has already erased the output from the box in
question, but essentially it showed the same as above with "T1" in the
second column for all channels instead of "PRI".

They both had identical system.conf, which looks like this:

loadzone=us
defaultzone=us
span=1,1,0,esf,b8zs
bchan=1-23
echocanceller=mg2,1-23
hardhdlc=24

In fact the *only* things I changed from the old system.conf tonight
was swapping "e=1-24" for "bchan=1-23" and adding the "hardhdlc=24".
 The old (now functioning) system.conf looks like this:

# Span 1: XBUS-00/XPD-00 "Xorcom XPD [usb:X1067719].1: T1" (MASTER) 
B8ZS/ESF RED

loadzone= us
defaultzone= us
span=1,1,0,esf,b8zs
e=1-24
echocanceller=mg2,1-24

So what about system.conf would cause lsdahdi to show "T1" instead of
"PRI" in column two?  Just trying to head off any additional problems
once they get their patching sorted out.



The issue is probably with the wanpipe configuration and not with DAHDI 
or Asterisk.  Run the wanpipe_cfg script again and make sure you change 
all necessary settings from E to ISDN PRI.


--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
dCAP #1349
+52 (55)9116-91161

--
_
-- 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] problems with PJSIP install on UBUNTU 14.04

2015-09-24 Thread Joshua Colp

On 15-09-24 06:30 PM, Ryan, Travis wrote:

Yes, the schema can change between versions. Following the
instructions on
https://wiki.asterisk.org/wiki/display/AST/Setting+up+PJSIP+Realtime#SettingupPJSIPRealtime-InstallingandUsingAlembic



will cause alembic to upgrade the tables.


-- 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


I'm not a fan of alembic at all, but I'll give it another try.

One issue I have is I don't want it to make the extensions table,
because I already use that name of table for some proprietary stuff I
use. Right now it's complaining that I already have a table named
that. Any way to exclude that other stuff, and only have it manage
the core sip_devices and PJSIP stuff?


No idea, alembic is not something we wrote and I'm not that familiar 
with it.


--
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