SOLVED Asteridex on Beaglebone Black

dandy_don

Member
Joined
Sep 27, 2010
Messages
173
Reaction score
11
Help please! I'm trying to make Asteridex work on the Beaglebone Black. I have Asteridex working great on my other server but I'm stumped with the Beaglebone...

Whenever I call into the Asteridex (412 dial code), I get the normal prompts, etc. Then when I enter the 3-digit code, there is a several second delay and then I get a message saying that the dial code entered is not in the correct format.

When I run the CLI, I get the following which seems to indicate that the beaglebone doesn't think I entered any digits:

-- <SIP/780-00000000> Playing '/tmp/flite_38138087.slin' (language 'en')
-- Executing [412@from-internal:7] Goto("SIP/780-00000000", "412,9") in new stack
-- Goto (from-internal,412,9)
-- Executing [412@from-internal:9] Read("SIP/780-00000000", "DIALCODE,beep,3") in new stack
-- Accepting a maximum of 3 digits.
-- <SIP/780-00000000> Playing 'beep.ulaw' (language 'en')
-- User entered nothing.
-- Executing [412@from-internal:10] NoOp("SIP/780-00000000", "Name lookup: ") in new stack
-- Executing [412@from-internal:11] AGI("SIP/780-00000000", "nv-callwho2.php,") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/nv-callwho2.php
-- AGI Script Executing Application: (flite) Options: (The dial code you entered in not in the correct format. Goodbye.)

One more question about the instructions for setting up Asteridex... On the Beaglebone Black there does not appear to be extensions_additional.conf. so I'm not able to look up the references for OUT1, OUT2, etc., as described in http://bestof.nerdvittles.com/applications/asteridex4/

Many thanks!
Don
 

dandy_don

Member
Joined
Sep 27, 2010
Messages
173
Reaction score
11
Am I the only one experiencing problems with the Beaglebone Black?

I bought two of them and have the identical issues with them both. This issue with Asteridex and the documented problems with it not recognizing USB hardware, hence proximity detection doesn't work either.

Is anyone using Asteridex with the Beaglebone Black?
Anyone successfully gotten proximity detection working with Beaglebone Black?

I really would like to get this working but am running out of ideas.

Thanks,
Don
 

dandy_don

Member
Joined
Sep 27, 2010
Messages
173
Reaction score
11
Igaetz,

Thanks for responding!

I'm accessing from a local extension. I can make calls, use the custom features, etc., from this extension without problem.
The dtmfmode is set to RFC 2833.

Any ideas are greatly appreciated.

Thanks,
Don
 

dandy_don

Member
Joined
Sep 27, 2010
Messages
173
Reaction score
11
Dear Mr. Igaetz,

Thanks! I'm "experimenting" with the dtmf settings. Setting it to "Auto" now make it work. Not sure why it would make a difference.

Thanks!
Don
 

dandy_don

Member
Joined
Sep 27, 2010
Messages
173
Reaction score
11
In my recent install on the Beaglebone Black, the nv-callwho2.php file needed to be modified (change "After the beep," to "After the beep.") so that entries with the same 3-digit code could be used.

Now works great!
Thanks Ward! and Thanks Igaetz!

Don
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,206
Reaction score
5,228
Here's the one line fix:

Code:
sed -i 's|After the beep,|After the beep.|' /var/lib/asterisk/agi-bin/nv-callwho2.php
 

dandy_don

Member
Joined
Sep 27, 2010
Messages
173
Reaction score
11
Well,

I never did get this figured out. Tonight I built a new incredible pbx server on another beaglebone black. There are still problems with Asteridex. Can someone point me in the right direction please? Here is the CLI output when I called 411 and try and call American Airlines.

Any help is greatly appreciated!
Thanks,
Don

=========================================================================
Connected to Asterisk 11.13.0 currently running on raspbx (pid = 4644)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [411@from-internal:1] Answer("SIP/701-0000001d", "") in new stack
> 0xb6606a28 -- Probation passed - setting RTP source address to 10.10.220.105:5014
-- Executing [411@from-internal:2] Wait("SIP/701-0000001d", "1") in new stack
-- Executing [411@from-internal:3] Set("SIP/701-0000001d", "TIMEOUT(digit)=7") in new stack
-- Digit timeout set to 7.000
-- Executing [411@from-internal:4] Set("SIP/701-0000001d", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10.000
-- Executing [411@from-internal:5] GotoIf("SIP/701-0000001d", "0?8") in new stack
-- Executing [411@from-internal:6] Flite("SIP/701-0000001d", ""At the beep say the name of the person or company you wish to call. Then press the pound key."") in new stack
-- <SIP/701-0000001d> Playing '/tmp/flite_85204698.slin' (language 'en')
-- Executing [411@from-internal:7] Goto("SIP/701-0000001d", "411,9") in new stack
-- Goto (from-internal,411,9)
-- Executing [411@from-internal:9] AGI("SIP/701-0000001d", "speech-recog.agi,en-US") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/speech-recog.agi
-- <SIP/701-0000001d> Playing 'beep.ulaw' (language 'en')
-- <SIP/701-0000001d>AGI Script speech-recog.agi completed, returning 0
-- Executing [411@from-internal:10] NoOp("SIP/701-0000001d", "= Script returned: , , 0.98762906 , American Airlines =") in new stack
-- Executing [411@from-internal:11] AGI("SIP/701-0000001d", "nv-callwho.php,American Airlines") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/nv-callwho.php
[2014-11-30 16:50:07] ERROR[9641][C-00000016]: utils.c:1362 ast_carefulwrite: write() returned error: Broken pipe
[2014-11-30 16:50:07] ERROR[9641][C-00000016]: utils.c:1362 ast_carefulwrite: write() returned error: Broken pipe
[2014-11-30 16:50:07] ERROR[9641][C-00000016]: utils.c:1362 ast_carefulwrite: write() returned error: Broken pipe
[2014-11-30 16:50:07] ERROR[9641][C-00000016]: utils.c:1362 ast_carefulwrite: write() returned error: Broken pipe
[2014-11-30 16:50:07] ERROR[9641][C-00000016]: utils.c:1362 ast_carefulwrite: write() returned error: Broken pipe

GOBS AND GOBS of the same error repeating over and over....

[2014-11-30 16:50:07] ERROR[9641][C-00000016]: utils.c:1362 ast_carefulwrite: write() returned error: Broken pipe
[2014-11-30 16:50:07] ERROR[9641][C-00000016]: utils.c:1362 ast_carefulwrite: write() returned error: Broken pipe
-- <SIP/701-0000001d>AGI Script nv-callwho.php completed, returning 0
-- Executing [411@from-internal:12] NoOp("SIP/701-0000001d", "Number to call: ") in new stack
-- Executing [411@from-internal:13] GotoIf("SIP/701-0000001d", "0?15") in new stack
-- Executing [411@from-internal:14] Goto("SIP/701-0000001d", "outbound-allroutes,,1") in new stack
-- Goto (outbound-allroutes,411,1)
[2014-11-30 16:50:07] WARNING[9641][C-00000016]: pbx.c:6646 __ast_pbx_run: Channel 'SIP/701-0000001d' sent to invalid extension but no invalid handler: context,exten,priority=outbound-allroutes,411,1
 

dandy_don

Member
Joined
Sep 27, 2010
Messages
173
Reaction score
11
OK -- Well, I figured it out...
The following files in /var/lib/asterisk need corrections:
nv-callwho.php
nv-callwho2.php

These two files start out like this:
#!/usr/bin/php -q
<?

The correction is to change the <? to <?php
So the first two lines of the nv-callwho.php and nv-callwho2.php should read as follows:

#!/usr/bin/php -q
<?php

Thanks,
Don
 

dandy_don

Member
Joined
Sep 27, 2010
Messages
173
Reaction score
11
Now the last hurdle...
I'm trying to get the web interface to Asteridex working. I can open the web interface, edit, add, delete entries in the database, etc. However whenever I click on one of the entries in an attempt to have Asteridex ring the associated extension (701 in this case), wait for it to answer, then initiate the call to the party identified in Asteridex, nothing happens except that the browser opens a new window that shows this in the address:

http://INTERNALSERVERADDRESS/asteridex4/callboth.php?SEQ=654321&IN=*&OUT=8002478726

There are NO messages in the CLI, the system just sits there....


However, on another system behind the same firewall and on the same network, I get this display briefly, then extension 701 begins ringing.


When I pickup extension 701, the call is put through as expected. I would like to get this working on the beagelbone black system as well.

Any help is greatly appreciated!
Thanks,
Don
 

dandy_don

Member
Joined
Sep 27, 2010
Messages
173
Reaction score
11
Igaetz -- Great!!

That fixed it! Thank you!


Now I just need to resolve the lack of audio in either direction on outbound-only calls via the Obivoice trunk...

Thanks
 

Members online

Forum statistics

Threads
25,824
Messages
167,828
Members
19,249
Latest member
jetest
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top