Re: [asterisk-users] FAX CNG detected but no fax extension

2016-11-29 Thread Harel
Hi Kevin,

Thank you for your detailed answer which explained some basics of what I need 
to know about fax.

So if I have a number which is dedicated for fax I could actually do without 
faxdetect=yes in sip.conf, right?

John, thank you for your input as well.  Indeed I’ve noticed that the hangup() 
is never executed but it’s my habit  to put one in such small modules to avoid 
nasty  auto-fallthrough when you don’t expect it…

Kind Regards,

Harel Cohen
Director

Mayorcom Limited
Mobile:+350 58009379

Office: +350 2005

  ha...@mayorcom.com

 

From: kevin.lar...@pioneerballoon.com [mailto:kevin.lar...@pioneerballoon.com] 
Sent: Tuesday, 29 November, 2016 5:24 PM
To: ha...@mayorcom.com; Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: Re: [asterisk-users] FAX CNG detected but no fax extension

 

> Hello,
> I have a question regarding incoming fax to local file (on the 
> Asterisk server).
> While the fax is received properly (I have the tiff file generated 
> as expected) I get the warning 'FAX CNG detected but no fax 
> extension' on the consol.
> 
> If the fax is received ok then what 'fax extension' does it expect 
> and what should I do there? 
> 
> My Setup:
> Sender -> Public PSTN -> provider -> SIP trunk (configured with 
> G711a) -> Asterisk (13.6.0)
> 
> My extension.conf on relevant section is this (obviously this is not
> production code):
> exten => s,1,Answer()
> same =>  n,Verbose(0, Attempt to Receive FAX)
> same =>  n,Set(FAXOPT(gateway)=no)
> same =>  n,ReceiveFax(/var/workspace/testfax.tiff,d)
> same =>  n,Hangup()
> 
> and 
> Server*CLI> module show like fax
> Module Description  
> Use Count  Status  Support Level
> res_fax.so Generic FAX Applications 
> 1  Running  core
> res_fax_spandsp.so Spandsp G.711 and T.38 FAX 
> Technologies  0  Running  extended
> 2 modules loaded

The good news is you don't really have anything wrong and as things are working 
as expected, you can ignore the warning if you so choose. 

What generates that error is that on your trunk, you have faxdetect=yes. This 
will cause Asterisk to listen in to all your calls on that trunk and try to 
detect a fax and if it finds it will redirect it to a fax extension to be 
handled as a fax. 

You have written a fax handler for your fax lines, but that doesn't stop the 
fax detection from trying to route it to an extension called fax. Since this 
doesn't exist in your case, you get the warning, but the fax is received 
because you are handling in the current path. 

Where things would actually break is if someone sent a fax to one of your voice 
lines. If you don't have a fax extension to send it to, the person being called 
would pick up to fax tones. If you do have a fax extension, they would get the 
call yanked from them and it would be sent over to the fax extension. In my 
particular case, testing shows I get about half a ring to my desk phone before 
the system determines fax call and sends it to the fax system. 
__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
__

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

[asterisk-users] Spout Communications

2016-11-29 Thread Brandon B.
Does anyone on this list have any contact information for anyone 
associated with Steven Steffler, the late owner 
 
of the VoIP company Spout Communications ? I'd 
like to help get my services restored and help this company if possible.


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] Asterisk compatibility with SMS services

2016-11-29 Thread Brandon B.


Can anyone comment on using SMS in conjunction with VoIP service using 
one of these three VoIP providers: voip.ms, vitelity.com, 
flowroute.com? Are some SMS services more compatible with Asterisk 
(i.e. SMS over SIP works perfectly or not)? Is it best to use a 
different data channel for SMS messages (i.e. SMS via HTTP, SMS via 
XMPP) instead of Asterisk's built in SMS application MessageSend 
? In order to 
develop a web application for sending and receives SMS messages for 
business users, are there any pitfalls in using Asterisk to handle the 
message exchanges?




On 2016-11-29 09:01 AM, Sebastian Nielsen wrote:


Im using SMS successfully over VoIP. No problems at all. You however 
need to use a good codec.


However, I don’t use the MessageSend application, instead I use the 
raw SMS() application.


This works by the SMS centre calling my fixed landline from a specific 
number, I detect the callerid, initiate a SMS reception and then the 
SMS is in the spool files.


If I want to send a outgoing SMS, I push a SMS file in the spool 
folder, then initate a call to the SMS centre.




That's pretty cool, thank you for the details. You are using the builtin 
SMS application that exchanges SMS data over SIP / PSTN connections. I 
don't believe I can get service like that in Canada. Does anyone use the 
SMS applications to send and receive SMS messages in North America? Who 
provides that service?


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] Asterisk compatibility with SMS services

2016-11-29 Thread Sebastian Nielsen
Im using SMS successfully over VoIP. No problems at all. You however need to 
use a good codec.

 

However, I don’t use the MessageSend application, instead I use the raw SMS() 
application.

This works by the SMS centre calling my fixed landline from a specific number, 
I detect the callerid, initiate a SMS reception and then the SMS is in the 
spool files.

If I want to send a outgoing SMS, I push a SMS file in the spool folder, then 
initate a call to the SMS centre.

 

Ergo, incoming is like this (as early as possible in the dialplan):

 

exten => s,[any],GotoIf($[${CALLERID(num)} = 0740940]?recvsms,s,1)

(where 0740940 is your SMS centre number)

 

Then at recvsms:

[recvsms]

exten => s,1,SMS(in-${clid},a)

exten => s,2,System(/usr/sbin/mailbot sms ${clid})

exten => s,3,Hangup()

 

(where /usr/sbin/mailbot is a script that reads /var/spool/asterisk/mtrx 
folder, and clid is a variable containing a random number)

 

 

 

Outgoing is like this:

Place a file named [RandomA].[RandomB] into /var/spool/asterisk/motx with the 
following content:

da=[number you want to send to]

ud=[text you want to send, only GSM alphabet supported, composite messages NOT 
supported]

 

Then create the following file into /var/spool/asterisk/tmp:

Channel: SIP/074094@YOUROPERATOR

Callerid: "[YOURNUM]" <[YOURNUM]>

Application: SMS

Data: [RandomA]

 

(where 074094 is your SMS center)

Move the file from tmp into /var/spool/asterisk/outgoing/ and the SMS will be 
sent.

 

 

Från: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] För Brandon B.
Skickat: den 29 november 2016 17:25
Till: asterisk-users@lists.digium.com
Ämne: [asterisk-users] Asterisk compatibility with SMS services

 

Can anyone comment on using SMS in conjunction with VoIP service using one of 
these three VoIP providers: voip.ms, vitelity.com, flowroute.com? Are some SMS 
services more compatible with Asterisk (i.e. SMS over SIP works perfectly or 
not)? Is it best to use a different data channel for SMS messages (i.e. SMS via 
HTTP, SMS via XMPP) instead of Asterisk's built in SMS application MessageSend 
 ? In order to develop a 
web application for sending and receives SMS messages for business users, are 
there any pitfalls in using Asterisk to handle the message exchanges?



smime.p7s
Description: S/MIME Cryptographic Signature
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

[asterisk-users] Asterisk compatibility with SMS services

2016-11-29 Thread Brandon B.
Can anyone comment on using SMS in conjunction with VoIP service using 
one of these three VoIP providers: voip.ms, vitelity.com, flowroute.com? 
Are some SMS services more compatible with Asterisk (i.e. SMS over SIP 
works perfectly or not)? Is it best to use a different data channel for 
SMS messages (i.e. SMS via HTTP, SMS via XMPP) instead of Asterisk's 
built in SMS application MessageSend 
? In order to 
develop a web application for sending and receives SMS messages for 
business users, are there any pitfalls in using Asterisk to handle the 
message exchanges?


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] FAX CNG detected but no fax extension

2016-11-29 Thread Tech Support
Just an FYI, in the dialplan below, The ReceiveFax() application
receives the fax document and then automatically hangs up the call when it
is finished. That means Asterisk will then jump to the hangup extension in
the same context (if it exists) without executing any lines of code after
the ReceiveFax line (the Hangup() never gets executed).
Regards;
John V.   

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Harel
Sent: Tuesday, November 29, 2016 7:00 AM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] FAX CNG detected but no fax extension

Hello,
I have a question regarding incoming fax to local file (on the Asterisk
server).
While the fax is received properly (I have the tiff file generated as
expected) I get the warning 'FAX CNG detected but no fax extension' on the
consol.

If the fax is received ok then what 'fax extension' does it expect and what
should I do there? 

My Setup:
Sender -> Public PSTN -> provider -> SIP trunk (configured with G711a) ->
Asterisk (13.6.0)

My extension.conf on relevant section is this (obviously this is not
production code):
exten => s,1,Answer()
same =>  n,Verbose(0, Attempt to Receive FAX)
same =>  n,Set(FAXOPT(gateway)=no)
same =>  n,ReceiveFax(/var/workspace/testfax.tiff,d)
same =>  n,Hangup()

and 
Server*CLI> module show like fax
Module Description  Use
Count  Status  Support Level
res_fax.so Generic FAX Applications 1
Running  core
res_fax_spandsp.so Spandsp G.711 and T.38 FAX Technologies  0
Running  extended
2 modules loaded

Thank you for your assistance,

Kind Regards,
Harel Cohen


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at:
https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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


Re: [asterisk-users] FAX CNG detected but no fax extension

2016-11-29 Thread kevin . larsen
> Hello,
> I have a question regarding incoming fax to local file (on the 
> Asterisk server).
> While the fax is received properly (I have the tiff file generated 
> as expected) I get the warning 'FAX CNG detected but no fax 
> extension' on the consol.
> 
> If the fax is received ok then what 'fax extension' does it expect 
> and what should I do there? 
> 
> My Setup:
> Sender -> Public PSTN -> provider -> SIP trunk (configured with 
> G711a) -> Asterisk (13.6.0)
> 
> My extension.conf on relevant section is this (obviously this is not
> production code):
> exten => s,1,Answer()
> same =>  n,Verbose(0, Attempt to Receive FAX)
> same =>  n,Set(FAXOPT(gateway)=no)
> same =>  n,ReceiveFax(/var/workspace/testfax.tiff,d)
> same =>  n,Hangup()
> 
> and 
> Server*CLI> module show like fax
> Module Description 
> Use Count  Status  Support Level
> res_fax.so Generic FAX Applications 
> 1  Running  core
> res_fax_spandsp.so Spandsp G.711 and T.38 FAX 
> Technologies  0  Running  extended
> 2 modules loaded

The good news is you don't really have anything wrong and as things are 
working as expected, you can ignore the warning if you so choose.

What generates that error is that on your trunk, you have faxdetect=yes. 
This will cause Asterisk to listen in to all your calls on that trunk and 
try to detect a fax and if it finds it will redirect it to a fax extension 
to be handled as a fax.

You have written a fax handler for your fax lines, but that doesn't stop 
the fax detection from trying to route it to an extension called fax. 
Since this doesn't exist in your case, you get the warning, but the fax is 
received because you are handling in the current path.

Where things would actually break is if someone sent a fax to one of your 
voice lines. If you don't have a fax extension to send it to, the person 
being called would pick up to fax tones. If you do have a fax extension, 
they would get the call yanked from them and it would be sent over to the 
fax extension. In my particular case, testing shows I get about half a 
ring to my desk phone before the system determines fax call and sends it 
to the fax system.

__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
__-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

[asterisk-users] FAX CNG detected but no fax extension

2016-11-29 Thread Harel
Hello,
I have a question regarding incoming fax to local file (on the Asterisk server).
While the fax is received properly (I have the tiff file generated as expected) 
I get the warning 'FAX CNG detected but no fax extension' on the consol.

If the fax is received ok then what 'fax extension' does it expect and what 
should I do there? 

My Setup:
Sender -> Public PSTN -> provider -> SIP trunk (configured with G711a) -> 
Asterisk (13.6.0)

My extension.conf on relevant section is this (obviously this is not production 
code):
exten => s,1,Answer()
same =>  n,Verbose(0, Attempt to Receive FAX)
same =>  n,Set(FAXOPT(gateway)=no)
same =>  n,ReceiveFax(/var/workspace/testfax.tiff,d)
same =>  n,Hangup()

and 
Server*CLI> module show like fax
Module Description  Use 
Count  Status  Support Level
res_fax.so Generic FAX Applications 1   
   Running  core
res_fax_spandsp.so Spandsp G.711 and T.38 FAX Technologies  0   
   Running  extended
2 modules loaded

Thank you for your assistance,

Kind Regards,
Harel Cohen


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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


Re: [asterisk-users] Any reason Asterisk won't start without a rebuild on a cloned VPS?

2016-11-29 Thread Guido Falsi
On 11/29/16 12:42, Jonathan H wrote:
> Thanks for the super-quick answer! Now I was able to find this:
> https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+Asterisk#BuildingandInstallingAsterisk-Buildingfornon-nativearchitectures
> 
> I had just assumed a cloned vps would be identical.

In fact there are chances the CPU will not be the same even by stopping
and then restarting the same VM. The Hypervisor could choose to start
the same VM on different iron depending on it's load balancing settings
and whim at the moment.

-- 
Guido Falsi 

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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


Re: [asterisk-users] Any reason Asterisk won't start without a rebuild on a cloned VPS?

2016-11-29 Thread Guido Falsi
On 11/29/16 12:19, Joshua Colp wrote:
> On Tue, Nov 29, 2016, at 07:15 AM, Barry Flanagan wrote:
>> On 29 November 2016 at 10:56, Jonathan H  wrote:
>>
>>> Any ideas why a VPS, cloned from another instance (DigitalOcean
>>> "droplets" if it matters), won't run on the new instance?
>>>
>>> Everything else is the same; region, memory, disk, hypervisor version etc.
>>>
>>
>> You probably need to select  "DONT_OPTIMIZE"  in make menuselect under
>> "Compiler Flags". This is generally required for VPS or any situation
>> where
>> the binary might be used on a slightly different CPU.
> 
> Close! The compiler flag to disable is BUILD_NATIVE. It instructs GCC to
> build optimized for the CPU, if the binary is moved to a CPU that
> differs - it may or may not work depending on how close they are.
> 

BTW, I had to disable it by defualt in the FreeBSD port, otherwise the
official binary packages would be broken on CPUs different from the ones
used by the FreeBSD project build cluster.

I think all linux distributions are/should do the same for default
package builds.

-- 
Guido Falsi 

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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


Re: [asterisk-users] Any reason Asterisk won't start without a rebuild on a cloned VPS?

2016-11-29 Thread Joshua Colp
On Tue, Nov 29, 2016, at 07:42 AM, Jonathan H wrote:
> Thanks for the super-quick answer! Now I was able to find this:
> https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+Asterisk#BuildingandInstallingAsterisk-Buildingfornon-nativearchitectures
> 
> I had just assumed a cloned vps would be identical.

Pay no attention to the CPU behind the curtain :D

> 
> Out of interest, how unoptimized would the result be?
> 
> I mean, on a low-end VPS with maybe 3 simultaneous calls at most and runs
> almost idle even then, is the difference going to be noticeable at all?

Should be fine for that.

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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


Re: [asterisk-users] Any reason Asterisk won't start without a rebuild on a cloned VPS?

2016-11-29 Thread Jonathan H
Thanks for the super-quick answer! Now I was able to find this:
https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+Asterisk#BuildingandInstallingAsterisk-Buildingfornon-nativearchitectures

I had just assumed a cloned vps would be identical.

Out of interest, how unoptimized would the result be?

I mean, on a low-end VPS with maybe 3 simultaneous calls at most and runs
almost idle even then, is the difference going to be noticeable at all?

Thanks again.

On 29 November 2016 at 11:19, Joshua Colp  wrote:

>
> Close! The compiler flag to disable is BUILD_NATIVE. It instructs GCC to
> build optimized for the CPU, if the binary is moved to a CPU that
> differs - it may or may not work depending on how close they are.
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] Any reason Asterisk won't start without a rebuild on a cloned VPS?

2016-11-29 Thread Barry Flanagan
On 29 November 2016 at 11:19, Joshua Colp  wrote:

> On Tue, Nov 29, 2016, at 07:15 AM, Barry Flanagan wrote:
> > On 29 November 2016 at 10:56, Jonathan H  wrote:
> >
> > > Any ideas why a VPS, cloned from another instance (DigitalOcean
> > > "droplets" if it matters), won't run on the new instance?
> > >
> > > Everything else is the same; region, memory, disk, hypervisor version
> etc.
> > >
> >
> > You probably need to select  "DONT_OPTIMIZE"  in make menuselect under
> > "Compiler Flags". This is generally required for VPS or any situation
> > where
> > the binary might be used on a slightly different CPU.
>
> Close! The compiler flag to disable is BUILD_NATIVE. It instructs GCC to
> build optimized for the CPU, if the binary is moved to a CPU that
> differs - it may or may not work depending on how close they are.
>
>

Aya! That'll be the one :-)

-Barry
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] Any reason Asterisk won't start without a rebuild on a cloned VPS?

2016-11-29 Thread Joshua Colp
On Tue, Nov 29, 2016, at 07:15 AM, Barry Flanagan wrote:
> On 29 November 2016 at 10:56, Jonathan H  wrote:
> 
> > Any ideas why a VPS, cloned from another instance (DigitalOcean
> > "droplets" if it matters), won't run on the new instance?
> >
> > Everything else is the same; region, memory, disk, hypervisor version etc.
> >
> 
> You probably need to select  "DONT_OPTIMIZE"  in make menuselect under
> "Compiler Flags". This is generally required for VPS or any situation
> where
> the binary might be used on a slightly different CPU.

Close! The compiler flag to disable is BUILD_NATIVE. It instructs GCC to
build optimized for the CPU, if the binary is moved to a CPU that
differs - it may or may not work depending on how close they are.

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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


Re: [asterisk-users] Any reason Asterisk won't start without a rebuild on a cloned VPS?

2016-11-29 Thread Barry Flanagan
On 29 November 2016 at 10:56, Jonathan H  wrote:

> Any ideas why a VPS, cloned from another instance (DigitalOcean
> "droplets" if it matters), won't run on the new instance?
>
> Everything else is the same; region, memory, disk, hypervisor version etc.
>

You probably need to select  "DONT_OPTIMIZE"  in make menuselect under
"Compiler Flags". This is generally required for VPS or any situation where
the binary might be used on a slightly different CPU.

Hope this helps

-Barry Flanagan
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

[asterisk-users] Any reason Asterisk won't start without a rebuild on a cloned VPS?

2016-11-29 Thread Jonathan H
Any ideas why a VPS, cloned from another instance (DigitalOcean
"droplets" if it matters), won't run on the new instance?

Everything else is the same; region, memory, disk, hypervisor version etc.

And everything else runs, just not Asterisk, unless I do a make
distclean in the /usr/src/asterisk directory, rebuild, and then it
runs just fine.

I'd understand if I was moving it to a machine with a different
kernel, but this is just a cloned instance.

Here's the kernel log for that time:

Nov 25 15:45:41  kernel: [  519.943161] traps: asterisk[1909] trap
invalid opcode ip:55a2ce786b63 sp:7ffc0f2604e0 error:0 in
asterisk[55a2ce68b000+2f6000]
Nov 25 15:46:19  kernel: [  557.633108] traps: asterisk[2677] trap
invalid opcode ip:560385143b63 sp:7ffd846cb540 error:0 in
asterisk[560385048000+2f6000]
Nov 25 15:46:22  kernel: [  560.387907] traps: asterisk[2678] trap
invalid opcode ip:5618d09a5b63 sp:7fff731341a0 error:0 in
asterisk[5618d08aa000+2f6000]
Nov 25 15:46:28  systemd[1]: Starting LSB: Asterisk PBX...
Nov 25 15:46:28  asterisk[2684]:  * Starting Asterisk PBX: asterisk
Nov 25 15:46:28  kernel: [  566.681372] traps: asterisk[2692] trap
invalid opcode ip:55b01c3feb63 sp:7ffd99b0dec0 error:0 in
asterisk[55b01c303000+2f6000]
Nov 25 15:46:28  asterisk[2684]: Illegal instruction
Nov 25 15:46:28  kernel: [  566.689693] traps: asterisk[2696] trap
invalid opcode ip:562036befb63 sp:7fff80876c80 error:0 in
asterisk[562036af4000+2f6000]
Nov 25 15:46:28  systemd[1]: asterisk.service: Control process exited,
code=exited status=132
Nov 25 15:46:28  systemd[1]: Failed to start LSB: Asterisk PBX.
Nov 25 15:46:28  systemd[1]: asterisk.service: Unit entered failed state.
Nov 25 15:46:28  systemd[1]: asterisk.service: Failed with result 'exit-code'.

BTW, while I'm in the log, any idea what this is about (less important)
63:Nov 28 11:31:23  kernel: [243839.969623] INFO: task asterisk:13711
blocked for more than 120 seconds.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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