asterisk 1.6

Discussions about development of VICIDIAL and astGUIclient

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

asterisk 1.6

Postby mcargile » Sat Jul 28, 2007 1:59 pm

Due to the fact that asterisk 1.2 is nearing "end of life" and the fact that the alternatives to asterisk that we have seen are looking to break compatibility with asterisk, we are experimenting with using 1.6 more over the current SVN head for use with Vicidial. Our reasoning for doing so is as follows:

A. Most of the Digium developers are working on SVN head and so bugs that are discovered should hopefully be fixed faster.
B. Digium just got a large influx of cash so hopefully they have more developers working on Asterisk and not silly side projects.
C. There have been some major changes to the way the Asterisk code handles I/O operations that should cut back drastically with the locking issues.
D. If we can get them working properly the applications that are available natively in SVN head are great.
E. We plan on finding problems in asterisk by breaking it and either fix the problems ourselves or provide feedback to the Developers involved.
F. If we want to insure that Vicidial runs well in the future the best time to find and address problems in asterisk is now before it becomes the release.

To this end I have set up an Vicidial test system running SVN head.... and it does not work. It is complaining that the extensions the agents are supposed to go into do not exist. I believe that it is because of a change in the manager events. I plan on looking into this come Monday. If anyone has tackled this in the past and can give me pointer please let me know.
Last edited by mcargile on Mon Aug 20, 2007 11:23 am, edited 1 time in total.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 614
Joined: Tue Jan 16, 2007 9:38 am

Postby mflorell » Sat Jul 28, 2007 5:50 pm

Thank you for working on 1.6 compatibility, I would love to, but I just don't have the time, and 1.6 is not stable at this point in time so I have read.

I have read a lot about core Asterisk CLI commands changing, Manager events changing drasticly, and even some modules being completely rewritten, any of which could throw off VICIDIAL.

As to your current problem, what are you putting in the asterisk_version field for your server?
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ramindia » Sun Jul 29, 2007 11:09 pm

Hi Matt

what are you putting in the asterisk_version


is there any difference install other version, keep in database some other version.

is this inputs using any other place.

ram
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby mflorell » Mon Jul 30, 2007 6:45 am

Yes, the asterisk_version field in the servers table does matter, There are things that are done differently for several versions of asterisk within VICIDIAL from 1.0.8-9, 1.2.X and 1.4.X all have some little different things in them that need to be done in different ways and this field lets VICIDIAL know so it can tailor itself to the Asterisk version installed.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby mcargile » Mon Jul 30, 2007 9:23 am

I just changed the name from 1.6svn to 1.6.svn-r77631.

These are the errors I am getting in the cli:
Code: Select all
[Jul 30 10:17:59] NOTICE[16210]: chan_local.c:578 local_alloc: No such extension/context 913195550151@default creating local channel
[Jul 30 10:17:59] NOTICE[16210]: channel.c:2965 __ast_request_and_dial: Unable to request channel Local/913195550151@default
[Jul 30 10:17:59] WARNING[16210]: cdr.c:828 ast_cdr_init: CDR already initialized on '**Unknown**'

They repeat over and over again for different extensions.

When I just enabled Vicidial asterisk actually core dumped, so I guess I am on the way :D
Last edited by mcargile on Mon Aug 20, 2007 11:24 am, edited 1 time in total.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 614
Joined: Tue Jan 16, 2007 9:38 am

Postby Op3r » Mon Jul 30, 2007 9:43 am

I was thinking the whole time that you dont have the prefix on the extensions.conf or your iax.conf or sip.conf have a difference context.

is that how much asterisk svn changed?
Get paid for US outbound Toll Free calls. PM me.
Op3r
 
Posts: 1424
Joined: Wed Jun 07, 2006 7:53 pm
Location: Manila

Postby mcargile » Mon Jul 30, 2007 1:27 pm

Now i feel like an idiot. I made the context for vicidial [vicidial] and forgot to set that in the new servers config.
Last edited by mcargile on Mon Aug 20, 2007 11:24 am, edited 1 time in total.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 614
Joined: Tue Jan 16, 2007 9:38 am

Postby mcargile » Mon Jul 30, 2007 1:41 pm

Now it is working... for about three minutes. Then asterisk crashes. :D Only change I had to make to my dialplan is they got rid of DeadAGI and just have AGI detect if it should be dead or not.
Last edited by mcargile on Mon Aug 20, 2007 11:24 am, edited 1 time in total.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 614
Joined: Tue Jan 16, 2007 9:38 am

Postby mcargile » Thu Aug 02, 2007 9:28 am

Now it crashes after 45 minutes. So there is some progress. For anyone else interested in trying it, the version number is SVN trunk 77893 with our patch from http://bugs.digium.com/view.php?id=10347 applied.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 614
Joined: Tue Jan 16, 2007 9:38 am

Postby mcargile » Thu Jan 17, 2008 2:06 pm

Well it has been some months since I tried 1.6 so I decided to try again. It seems that the changes that they have made to the Manager interface are not compatible with Vicidial now. First off Vicidial hangs while trying to log in to the Manager interface with any of the scripts because the following line hangs:
Code: Select all
$tn->waitfor('/0\n$/');


By changing it to :
Code: Select all
$tn->waitfor('/[01]\n$/');


the scripts were able to authenticate. Now I need to figure out why my dummy agents are not logging in.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 614
Joined: Tue Jan 16, 2007 9:38 am

Postby mcargile » Thu Jan 17, 2008 3:03 pm

Figured it out and crashed it within 2 minutes this time.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 614
Joined: Tue Jan 16, 2007 9:38 am

Postby enjay » Thu Jan 17, 2008 6:57 pm

I have a test/demo server up as well, I'd be happy to test it as well.
enjay
 
Posts: 806
Joined: Mon Jun 19, 2006 12:40 pm
Location: Utah

Postby mcargile » Wed Feb 20, 2008 2:02 pm

I have tested this fix in both 1.2 and 1.4 and they still work flawlessly.

This is not to say that Vicidial will work completely with 1.6. I have it running in a performance testing environment with no actual agents. If someone can test this with a production system that would be fantastic.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 614
Joined: Tue Jan 16, 2007 9:38 am

Re: asterisk 1.6

Postby bobbymc » Wed Jun 25, 2014 4:49 am

looks like i got the same hang issue with asterisk 11.8.1

i did a telnet dump and it looks like its the same as asterisk 1.8

< 0x00000: 41 73 74 65 72 69 73 6b 20 43 61 6c 6c 20 4d 61 Asterisk Call Ma
< 0x00010: 6e 61 67 65 72 2f 31 2e 33 0d 0a nager/1.3..


what does that pice of code check for exacly?
bobbymc
 
Posts: 425
Joined: Fri Jan 05, 2007 12:26 am

Re: asterisk 1.6

Postby bobbymc » Wed Jun 25, 2014 5:30 am

whats even the point of doing

$tn->waitfor('/[01]\n$/'); # print login

when i remove this i have no lag and it executed the command right away with asterisk 11,
bobbymc
 
Posts: 425
Joined: Fri Jan 05, 2007 12:26 am


Return to Development

Who is online

Users browsing this forum: No registered users and 37 guests