[asterisk-r2] Sending backward tones

Guilherme Peron guiperon at gmail.com
Fri Jul 13 14:32:34 CDT 2012


Here is the call trace:
Please see the red lines... when we receive the "send category request"
(tone II-1)... then we send a B-5, but the subscriber is busy, so it should
be a B-3. Then openr2 sends a disconnect.

 Chan 24 - Entered in openr2_chan_handle_zap_event
 Chan 24 - Handle CAS.
 Chan 24 - Bits changed from 0x08 to 0x00
 Chan 24 - CAS STATE [100].
 Chan 24 - CAS Rx << [SEIZE] 0x00
 Chan 24 - Handle incoming call.
 Chan 24 - Initialized R2 MF detector
 Chan 24 - CAS Tx >> [SEIZE ACK] 0x0C
 Chan 24 - CAS Raw Tx >> 0x0D
 Chan 24 - MF Rx << 5 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [1], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 5
 Chan 24 - DNIS so far: 5, expected length: 12
 Chan 24 - Enter request_next_dnis_digit().
 Chan 24 - Requesting next DNIS with signal 0x31.
 Chan 24 - MF Tx >> 1 [ON]
 Chan 24 - MF Rx << 5 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 1 [OFF]
 Chan 24 - MF Rx << 5 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 5
 Chan 24 - DNIS so far: 55, expected length: 12
 Chan 24 - Enter request_next_dnis_digit().
 Chan 24 - Requesting next DNIS with signal 0x31.
 Chan 24 - MF Tx >> 1 [ON]
 Chan 24 - MF Rx << 5 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 1 [OFF]
 Chan 24 - MF Rx << 4 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 4
 Chan 24 - DNIS so far: 554, expected length: 12
 Chan 24 - Enter request_next_dnis_digit().
 Chan 24 - Requesting next DNIS with signal 0x31.
 Chan 24 - MF Tx >> 1 [ON]
 Chan 24 - MF Rx << 4 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 1 [OFF]
 Chan 24 - MF Rx << 1 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 1
 Chan 24 - DNIS so far: 5541, expected length: 12
 Chan 24 - Enter request_next_dnis_digit().
 Chan 24 - Requesting next DNIS with signal 0x31.
 Chan 24 - MF Tx >> 1 [ON]
 Chan 24 - MF Rx << 1 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 1 [OFF]
 Chan 24 - MF Rx << 3 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 3
 Chan 24 - DNIS so far: 55413, expected length: 12
 Chan 24 - Enter request_next_dnis_digit().
 Chan 24 - Requesting next DNIS with signal 0x31.
 Chan 24 - MF Tx >> 1 [ON]
 Chan 24 - MF Rx << 3 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 1 [OFF]
 Chan 24 - MF Rx << 3 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 3
 Chan 24 - DNIS so far: 554133, expected length: 12
 Chan 24 - Enter request_next_dnis_digit().
 Chan 24 - Requesting next DNIS with signal 0x31.
 Chan 24 - MF Tx >> 1 [ON]
 Chan 24 - MF Rx << 3 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 1 [OFF]
 Chan 24 - MF Rx << 4 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 4
 Chan 24 - DNIS so far: 5541334, expected length: 12
 Chan 24 - Enter request_next_dnis_digit().
 Chan 24 - Requesting next DNIS with signal 0x31.
 Chan 24 - MF Tx >> 1 [ON]
 Chan 24 - MF Rx << 4 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 1 [OFF]
 Chan 24 - MF Rx << 1 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 1
 Chan 24 - DNIS so far: 55413341, expected length: 12
 Chan 24 - Enter request_next_dnis_digit().
 Chan 24 - Requesting next DNIS with signal 0x31.
 Chan 24 - MF Tx >> 1 [ON]
 Chan 24 - MF Rx << 1 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 1 [OFF]
 Chan 24 - MF Rx << 3 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 3
 Chan 24 - DNIS so far: 554133413, expected length: 12
 Chan 24 - Enter request_next_dnis_digit().
 Chan 24 - Requesting next DNIS with signal 0x31.
 Chan 24 - MF Tx >> 1 [ON]
 Chan 24 - MF Rx << 3 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 1 [OFF]
 Chan 24 - MF Rx << 3 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 3
 Chan 24 - DNIS so far: 5541334133, expected length: 12
 Chan 24 - Enter request_next_dnis_digit().
 Chan 24 - Requesting next DNIS with signal 0x31.
 Chan 24 - MF Tx >> 1 [ON]
 Chan 24 - MF Rx << 3 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 1 [OFF]
 Chan 24 - MF Rx << 2 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 2
 Chan 24 - DNIS so far: 55413341332, expected length: 12
 Chan 24 - Enter request_next_dnis_digit().
 Chan 24 - Requesting next DNIS with signal 0x31.
 Chan 24 - MF Tx >> 1 [ON]
 Chan 24 - MF Rx << 2 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 1 [OFF]
 Chan 24 - MF Rx << 1 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_dnis().
 Chan 24 - Getting DNIS digit 1
 Chan 24 - DNIS so far: 554133413321, expected length: 12
 Chan 24 - Done getting DNIS!
 Chan 24 - Enter try_request_calling_party_category().
 Chan 24 - Enter request_calling_party_category().
 Chan 24 - MF Tx >> 5 [ON]
 Chan 24 - MF Rx << 1 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 5 [OFF]
 Chan 24 - MF Rx << 1 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_ani().
 Chan 24 - MF Tx >> 5 [ON]
 Chan 24 - MF Rx << 1 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 5 [OFF]
 Chan 24 - MF Rx << F [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [2], MF State[200].
 Chan 24 - Enter mf_receive_expected_ani().
 Chan 24 - Got end of ANI
 Chan 24 - Enter request_change_to_g2().
 Chan 24 - Requesting change to Group II with signal 0x33
 Chan 24 - MF Tx >> 3 [ON]
 Chan 24 - MF Rx << F [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 3 [OFF]
 Chan 24 - MF Rx << 1 [ON]
 Chan 24 - Enter handle_forward_mf_tone().
 Chan 24 - MF Group [3], MF State[200].
 Chan 24 - Entered openr2_proto_accept_call().
 Chan 24 - MF Tx >> 5 [ON]
 Chan 24 - MF Rx << 1 [OFF]
 Chan 24 - Enter handle_forward_mf_silence().
 Chan 24 - MF Tx >> 5 [OFF]
 Chan 24 - Enter turn_off_mf_engine().
 Chan 24 - calling timer 17 (r2_answer_delay) callback
 Chan 24 - Enter ready_to_answer().
 Chan 24 - Enter openr2_proto_disconnect_call().
 Chan 24 - Enter send_forced_release().
 Chan 24 - Enter turn_off_mf_engine().
 Chan 24 - CAS Tx >> [FORCED RELEASE] 0x00
 Chan 24 - CAS Raw Tx >> 0x01
 Chan 24 - Entered in openr2_chan_handle_zap_event
 Chan 24 - Handle CAS.
 Chan 24 - Bits changed from 0x00 to 0x08
 Chan 24 - CAS STATE [205].
 Chan 24 - CAS Rx << [CLEAR FORWARD] 0x08
 Chan 24 - Call ended
 Chan 24 - Enter openr2_proto_set_idle().
 Chan 24 - Enter openr2_proto_init().
 Chan 24 - Enter turn_off_mf_engine().
 Chan 24 - CAS Tx >> [IDLE] 0x08
 Chan 24 - CAS Raw Tx >> 0x09
 Chan 24 - Enter fix_rx_signal().

Thanks,
Guilherme

On Fri, Jul 13, 2012 at 3:13 PM, Mc GRATH Ricardo <mcgrathr at mail2web.com>wrote:

>    Guilherme
>
> Could you provide  a call trace, by the way in case of busy extension
> shouldn't never send by any reason a congestion tone.
> Thanks.
>
>  Mc GRATH Ricardo
> E-Mail mcgrathr at mail2web.com
>
>  ------------------------------
> *From:* asterisk-r2-bounces at lists.digium.com [
> asterisk-r2-bounces at lists.digium.com] On Behalf Of Guilherme Peron [
> guiperon at gmail.com]
> *Sent:* 13 July 2012 14:34
> *To:* asterisk-r2 at lists.digium.com
> *Subject:* [asterisk-r2] Sending backward tones
>
>  Hello,
>
>  I'm using asterisk 1.6.0.27 and openr2 1.3.0.
> When trying to make incoming calls to asterisk to busy phones, openr2 does
> not send a congestion/busy tone to the PSTN.
> Firstly it sends "line is free, don't charge", then it sends a clearback.
> Does anybody knows if there is any patch or configuration to change this
> behaviour?
>
>  Thanks,
> Guilherme
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-r2 mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-r2
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-r2/attachments/20120713/cbda1f36/attachment-0001.htm>


More information about the asterisk-r2 mailing list