Dear all - Some wisom please. We have a need to customise the Q.931 clearing causes being sent back to the network based on decisions made in some scripts or extension logic. i.e. I want to be able to decide to clear a call (either answered or during the alerting phase) with any clearing cause needed. E.g. 'All circuits busy' or 'network fault' or 'vacant number' etc. We are using Asterisk to do mobile phone testing and we need to check how our handsets behave when presented with a variety of different PSTN clearing causes. Some pointers to where in the source code we should be looking would be great. We can then make the tweaks and feed the changes back in to CVS if anyone else is interested in this feature. Best Regards Tim Robinson Motorola Ltd United Kingdom Tel. +44 1256 790472
Cytowanie Robinson Tim-W10277 <Tim.Robinson@motorola.com>:> > Dear all - > > Some wisom please. We have a need to customise the Q.931 clearing causes > being sent back to the network based on decisions made in some scripts or > extension logic. > > i.e. I want to be able to decide to clear a call (either answered or during > the alerting phase) with any clearing cause needed. E.g. 'All circuits > busy' or 'network fault' or 'vacant number' etc. We are using Asterisk to do > mobile phone testing and we need to check how our handsets behave when > presented with a variety of different PSTN clearing causes. > > Some pointers to where in the source code we should be looking would be > great. We can then make the tweaks and feed the changes back in to CVS if > anyone else is interested in this feature. >channel.c ast_hangup() channels/chan_zap.c, zt_hangup() pri_disconnect takes as argument Disconnect cause so all you have to do is modify Hangup(), then ast_hangup and zt_hangup to take additonal argument that will be passed to pri_disconnect. -- Marcin Kuzmicki Agile Telecom Ltd. Golden Doors Plaza 23 6 Frederick Str. Port of Spain Trinidad and Tobago, West Indies phone (+1868) 625 20 13 fax (+1868) 624 79 88
Hi, On Tue, 2004-05-18 at 06:49, Robinson Tim-W10277 wrote:> Some pointers to where in the source code we should > be looking would be great. We can then make the > tweaks and feed the changes back in to CVS if anyone > else is interested in this feature.I believe that even if there isn't a lot of interest shown for your enhancements at this point in time, Asterisk and the community at large will benefit from them in the future. So, push them up to CVS anyway! Just my opinion... :) Take care, Kanwar Systems Aligned Inc. www.systemsaligned.com
Having looked at the latest CVS it seems that there is already some support for this. However, there are some flaws in the logic as it is currently implemented. revk put in a feature request Bug 1337 that explains the problem. We will have a look at this in the next week or so and see if it is an easy change to improve things. Rgds Tim Robinson -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of M3 Freak Sent: 18 May 2004 16:04 To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Q.931 clearing causes Hi, On Tue, 2004-05-18 at 06:49, Robinson Tim-W10277 wrote:> Some pointers to where in the source code we should > be looking would be great. We can then make the > tweaks and feed the changes back in to CVS if anyone > else is interested in this feature.I believe that even if there isn't a lot of interest shown for your enhancements at this point in time, Asterisk and the community at large will benefit from them in the future. So, push them up to CVS anyway! Just my opinion... :) Take care, Kanwar Systems Aligned Inc. www.systemsaligned.com _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users