[asterisk-r2] How to dial a '*' digit?

Moises Silva moises.silva at gmail.com
Wed Apr 30 16:01:50 CDT 2014


It's just matter of removing the isdigit() validation in src/r2proto.c

On Wed, Apr 30, 2014 at 4:28 PM, servtelar <servtelar at gmail.com> wrote:

> Hi Moi
>
> Mine does. I don’t remember where, but out there is a patch to allow this.
> Perhaps I applied in the past. I’ll try to get it.
>
>
> On Apr 30, 2014, at 3:52 PM, Moises Silva <moises.silva at gmail.com> wrote:
>
> openr2 only sends digits (0-9), so not even letters will work. I could
> allow sending ABCDEF but not sure if that will help you.
>
>
> *Moises Silva **Manager, Software Engineering*
> msilva at sangoma.com
> Sangoma Technologies
> 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada
>
> t.   +1 800 388 2475 (N. America)
> t.   +1 905 474 1990 x128
> f.   +1 905 474 9223
>
>
> <http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures>
> Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>  | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>  | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>  | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>  | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>  | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>  | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`|
> | YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>
>
>
> On Wed, Apr 30, 2014 at 1:39 PM, servtelar <servtelar at gmail.com> wrote:
>
>> * is not a digit. The numbers coded are hexadecimal. Try using B (or C,
>> don’t remember now) instead of *.
>>
>>
>> On Apr 30, 2014, at 2:21 PM, Rafael Montante <rafamontante at yahoo.com.mx>
>> wrote:
>>
>> Hi,
>>
>> I'm trying to dial a string which contains the '*' char (*86) but it
>> seems the char is not sent and the following message is displayed:
>>
>> [Apr 23 17:42:44] VERBOSE[64318][C-0000806a] chan_dahdi.c: Chan 186 -
>> Char '*' is not a digit, DNIS will not be sent
>>
>> the complete log is:
>>
>> [Apr 23 17:42:44] VERBOSE[64318][C-0000806a] pbx.c:     -- Executing
>> [688 at abc:3] Dial("IAX2/5344-14485", "DAHDI/G0/*86,30,tT") in new stack
>> [Apr 23 17:42:44] VERBOSE[64318][C-0000806a] chan_dahdi.c: Chan 186 -
>> Char '*' is not a digit, DNIS will not be sent.
>> [Apr 23 17:42:44] VERBOSE[64318][C-0000806a] app_dial.c:     -- Called
>> DAHDI/G0/*86
>> [Apr 23 17:43:14] VERBOSE[64318][C-0000806a] app_dial.c:     -- Nobody
>> picked up in 30000 ms
>> [Apr 23 17:43:14] VERBOSE[64318][C-0000806a] chan_dahdi.c:     -- Hungup
>> 'DAHDI/186-1'
>>
>> Do you know is there any way to force dial these char?
>>
>> This is the log of mfcr2:
>>
>> [17:42:44:287] [Thread: 140064829769472] [Chan 186] - Call started at Wed
>> Apr 23 17:42:44 2014 on chan 186 [openr2 version 1.3.3, revision (release)]
>> [17:42:44:287] [Thread: 140064829769472] [Chan 186] - Outgoing call
>> proceeding: ANI=5344, DNIS=*86, Category=National Subscriber
>> [17:42:44:287] [Thread: 140064829769472] [Chan 186] - CAS Tx >> [SEIZE]
>> 0x00
>> [17:42:44:287] [Thread: 140064829769472] [Chan 186] - CAS Raw Tx >> 0x01
>> [17:42:44:287] [Thread: 140064829769472] [Chan 186] - scheduled timer id
>> 2 (r2_seize)
>> [17:42:44:341] [Thread: 140064829769472] [Chan 186] - Bits changed from
>> 0x08 to 0x0C
>> [17:42:44:341] [Thread: 140064829769472] [Chan 186] - CAS Rx << [SEIZE
>> ACK] 0x0C
>> [17:42:44:341] [Thread: 140064829769472] [Chan 186] - Attempting to
>> cancel timer timer 2
>> [17:42:44:341] [Thread: 140064829769472] [Chan 186] - timer id 2 found,
>> cancelling it now
>> [17:42:44:341] [Thread: 140064829769472] [Chan 186] - MFC/R2 call
>> acknowledge!
>> [17:42:44:341] [Thread: 140064829769472] [Chan 186] - No more DNIS. Doing
>> nothing, waiting for timeout.
>> [17:42:44:341] [Thread: 140064829769472] [Chan 186] - scheduled timer id
>> 3 (mf_fwd_safety)
>> [17:43:14:288] [Thread: 140064829769472] [Chan 186] - Attempting to
>> cancel timer timer 0
>> [17:43:14:288] [Thread: 140064829769472] [Chan 186] - Cannot cancel timer
>> 0
>> [17:43:14:288] [Thread: 140064829769472] [Chan 186] - CAS Tx >> [CLEAR
>> FORWARD] 0x08
>> [17:43:14:288] [Thread: 140064829769472] [Chan 186] - CAS Raw Tx >> 0x09
>> [17:43:14:326] [Thread: 140077689812736] [Chan 186] - Bits changed from
>> 0x0C to 0x08
>> [17:43:14:326] [Thread: 140077689812736] [Chan 186] - CAS Rx << [IDLE]
>> 0x08
>> [17:43:14:326] [Thread: 140077689812736] [Chan 186] - Call ended
>> [17:43:14:326] [Thread: 140077689812736] [Chan 186] - Attempting to
>> cancel timer timer 0
>> [17:43:14:326] [Thread: 140077689812736] [Chan 186] - Cannot cancel timer
>> 0
>>
>> Here in Mexico the carrier has a service that require dial *86 or *88.
>>
>> Any help would be appreciate it.
>>
>> Best regards
>> --
>> _____________________________________________________________________
>> -- 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
>>
>>
>>
>> --
>> _____________________________________________________________________
>> -- 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
>>
>
> --
> _____________________________________________________________________
> -- 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
>
>
>
> --
> _____________________________________________________________________
> -- 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/20140430/de1ad584/attachment.html>


More information about the asterisk-r2 mailing list