[Asterisk-Users] Q.931 clearing causes

Marcin Kuzmicki martin at agilecall.com
Tue May 18 05:41:56 MST 2004


Cytowanie Robinson Tim-W10277 <Tim.Robinson at 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



More information about the asterisk-users mailing list