[asterisk-ss7] handling * and # of dialed number on the extension.conf
Kaloyan Kovachev
kkovachev at varna.net
Fri Sep 18 01:48:19 CDT 2009
Hi,
for libss7 there two functions in isup.c that are responsible for this and
they do not have ABCD*
Look for char2digit and digit2char in isup.c and add the codes you need.
Looking at the "Called Party Number: ... Address signals:" in your debug you
should probably add "case 11: return '*'" in digit2char
On Thu, 17 Sep 2009 14:32:33 -0400, Rafael Visser wrote
> Gustavo:
> Are you talking about chan_ss7 or libss7?
> I think that it would help on chan_ss7.
>
> I am not getting the same results with libss7.
> Or perhaps i'm doing wrong in other place..
>
> 2009/9/17, Gustavo Marsico <gustavomarsico at gmail.com>:
> > * is B, and # is C.
> > Replace them and it should be fine.
> >
> > Regards,
> >
> > Gustavo
> >
> >
> > On 17 Sep 2009, at 09:43, Rafael Visser wrote:
> >
> >> Hi guys.
> >>
> >> I use asterisk with libss7 as an ivr for vas purpose on a mobile
> >> company.
> >>
> >> Some of the numbers to access the service begins with * or # like
> >> "*555".
> >>
> >> When we access the services from a sip home, the "*" are interpreted
> >> in the dial plan fine.
> >> But when we access from mobile phone through libss7, asterisk can't
> >> interprete the dialed number.
> >>
> >> Is there some trick to handle "*" or "#" on the dni with libss7 and
> >> asterisk?.
> >>
> >> thanks in advance!!!
> >>
> >>
> >>
> >> this is the the debug of one call.
> >> Len = 73 [ 97 96 3f 85 e5 09 71 f2 5f 00 01 00 60 01 0a 00 02 08 06 83
> >> 90 3b 38 87 0f 0a 07 02 13 90 17 02 10 86 08 01 00 1d 03 80 90 a3 31
> >> 02 00 64 3a 06 44 05 95 00 00 00 3f 08 04 93 95 95 17 02 00 87 39 06
> >> 31 d0 3a d0 3f c0 00 ]
> >> FSN: 22 FIB 1
> >> BSN: 23 BIB 1
> >> <[1] MSU
> >> [ 97 96 3f ]
> >> Network Indicator: 2 Priority: 0 User Part: ISUP (5)
> >> [ 85 ]
> >> OPC XXXX DPC XXXX SLS 15
> >> [ e5 09 71 f2 ]
> >> CIC: 95
> >> [ 5f 00 ]
> >> Message Type: IAM
> >> [ 01 ]
> >> --FIXED LENGTH PARMS[4]--
> >> Nature of Connection Indicator:
> >> Satellites in connection: 0
> >> Continuity Check: Check not required (0)
> >> Outgoing half echo control device: not
> >> included (0)
> >> [ 00 ]
> >> Forward Call Indicators:
> >> Nat/Intl Call Ind: call to be treated as a
> >> national call (0)
> >> End to End Method Ind: no end-to-end method(s)
> >> available (0)
> >> Interworking Ind: no
> >> interworking encountered (0)
> >> End to End Info Ind: no end-to-end information
> >> available (0)
> >> ISDN User Part Ind: ISDN user part used all
> >> the way (1)
> >> ISDN User Part Pref Ind: ISDN
> >> user part not preferred all the way (1)
> >> ISDN Access Ind: originating access ISDN (1)
> >> SCCP Method Ind: no indication (0)
> >> [ 60 01 ]
> >> Calling Party's Category:
> >> Category: Ordinary calling subscriber (10)
> >> [ 0a ]
> >> Transmission Medium Requirements:
> >> Speech (0)
> >> [ 00 ]
> >> --VARIABLE LENGTH PARMS[1]--
> >> Called Party Number:
> >> Nature of address: 3
> >> NI: 1
> >> Numbering plan: 1
> >> Address signals:
> >> [ 06 83 90 3b 38 87 0f ]
> >> --OPTIONAL PARMS--
> >> Calling Party Number:
> >> Nature of address: 2
> >> NI: 0
> >> Numbering plan: 1
> >> Presentation: 0
> >> Screening: 3
> >> Address signals: 0971200199
> >> [ 0a 07 02 13 90 17 02 10 86 ]
> >> Optional forward call indicator:
> >> [ 08 01 00 ]
> >> User Service Information:
> >> [ 1d 03 80 90 a3 ]
> >> Propagation Delay Counter:
> >> Delay: 0ms
> >> [ 31 02 00 64 ]
> >> Unknown Parameter (0x3a):
> >> [ 44 05 95 00 00 00 ]
> >> Location Number:
> >> [ 3f 08 04 93 95 95 17 02 00 87 ]
> >> Parameter Compatibility Information:
> >> [ 39 06 31 d0 3a d0 3f c0 ]
> >>
> >> Unhandled optional parameter 0x8 'Optional forward call indicator'
> >> [0x0 ]
> >> Unhandled optional parameter 0x31 'Propagation Delay Counter'
> >> [0x0 0x64 ]
> >> Unhandled optional parameter 0x3a 'Unknown'
> >> [0x44 0x5 0x95 0x0 0x0 0x0 ]
> >> Unhandled optional parameter 0x3f 'Location Number'
> >> 0x4 0x93 0x95 0x95 0x17 0x2 0x0 0x87 ]
> >> Unhandled optional parameter 0x39 'Parameter Compatibility
> >> Information'
> >> [0x31 0xd0 0x3a 0xd0 0x3f 0xc0 ]
> >> Len = 16 [ 96 98 0d 85 c4 49 79 f2 5f 00 0c 02 00 02 81 81 ]
> >> FSN: 24 FIB 1
> >> BSN: 22 BIB 1
> >>> [1] MSU
> >> [ 96 98 0d
> >>
> >> _______________________________________________
> >> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> >>
> >> asterisk-ss7 mailing list
> >> To UNSUBSCRIBE or update options visit:
> >> http://lists.digium.com/mailman/listinfo/asterisk-ss7
> >
> >
> > _______________________________________________
> > --Bandwidth and Colocation Provided by http://www.api-digital.com--
> >
> > asterisk-ss7 mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-ss7
> >
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-ss7 mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-ss7
More information about the asterisk-ss7
mailing list