Hi all,<div>Our telco is passing us calls to *510. We crafted our dial plan as follows:</div><div><br></div><div>exten =&gt; *510,1,Agi(agi://localhost/myAgi)</div><div>exten =&gt; _*510,1,Agi(agi://localhost/myAgi)</div><div>
exten =&gt; b510,1,Agi(agi://localhost/myAgi)</div><div>exten =&gt; _b510,1,Agi(agi://localhost/myAgi)</div><div>exten =&gt; _*5X,1,Agi(agi://localhost/myAgi)</div><div>exten =&gt; _*5XX,1,Agi(agi://localhost/myAgi)</div>
<div>exten =&gt; _*510X,1,Agi(agi://localhost/myAgi)</div><div>exten =&gt; _*510XX,1,Agi(agi://localhost/myAgi)</div><div><br></div><div>None of them worked, Asterisk didn&#39;t execute the ago script</div><div><br></div>
<div>After that I enabled libss7 debug and compared two calls (the one to *510 and another to 0000 which does produce a match in another section of our dialplan)</div><div><br></div><div>This is the call to *510:</div><div>
<br></div><div><div>Len = 54 [ 92 de 33 85 cb 0b 30 a2 7f 00 01 10 20 01 0a 00 02 07 05 83 10 5b 01 0f 0a 08 84 11 95 71 10 00 40 04 03 04 7d 02 91 81 1d 03 80 90 a3 31 02 00 5a 39 02 31 c0 00 ]</div><div>FSN: 94 FIB 1</div>
<div>BSN: 18 BIB 1</div><div>&lt;[0] MSU</div><div>[ 92 de 33 ]</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Network Indicator: 2 Priority: 0 User Part: ISUP (5)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>[ 85 ]</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>OPC 2240 DPC 3019 SLS 10</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>[ cb 0b 30 a2 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>CIC: 127</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>[ 7f 00 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Message Type: IAM</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>[ 01 ]</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>--FIXED LENGTH PARMS[4]--</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Nature of Connection Indicator:</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Satellites in connection: 0</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Continuity Check: Check not required (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Outgoing half echo control device: included (1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 10 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Forward Call Indicators:</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Nat/Intl Call Ind: call to be treated as a national call (0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>End to End Method Ind: no end-to-end method(s) available (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Interworking Ind: no interworking encountered (0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>End to End Info Ind: no end-to-end information available (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>ISDN User Part Ind: ISDN user part used all the way (1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>ISDN User Part Pref Ind: ISDN user part preferred all the way (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>ISDN Access Ind: originating access ISDN (1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>SCCP Method Ind: no indication (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 20 01 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Calling Party&#39;s Category:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Category: Ordinary calling subscriber (10)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 0a ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Transmission Medium Requirements:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Speech (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 00 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>--VARIABLE LENGTH PARMS[1]--</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>Called Party Number:</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Nature of address: 3</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>NI: 0</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Numbering plan: 1</div><div><span class="Apple-style-span" style="background-color: rgb(255, 0, 0);"><span class="Apple-tab-span" style="white-space:pre">                        </span>Address signals: <span class="Apple-tab-span" style="white-space:pre">        </span></span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 05 83 10 5b 01 0f ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>--OPTIONAL PARMS--</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Calling Party Number:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Nature of address: 4</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>NI: 0</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Numbering plan: 1</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Presentation: 0</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Screening: 1</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Address signals: 59170100044</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 0a 08 84 11 95 71 10 00 40 04 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Access Transport:</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 03 04 7d 02 91 81 ]</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>User Service Information:</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 1d 03 80 90 a3 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Propagation Delay Counter:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Delay: 0ms</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 31 02 00 5a ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Parameter Compatibility Information:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 39 02 31 c0 ]</div></div><div><br></div><div><br></div><div>this is the call to 0000</div><div><br></div><div><div>Len = 54 [ 90 dd 33 85 cb 0b 30 32 7a 00 01 10 20 01 0a 00 02 07 05 83 10 00 00 0f 0a 08 84 11 95 71 60 24 60 09 03 04 7d 02 91 81 1d 03 80 90 a3 31 02 00 5a 39 02 31 c0 00 ]</div>
<div>FSN: 93 FIB 1</div><div>BSN: 16 BIB 1</div><div>&lt;[0] MSU</div><div>[ 90 dd 33 ]</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Network Indicator: 2 Priority: 0 User Part: ISUP (5)</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>[ 85 ]</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>OPC 2240 DPC 3019 SLS 3</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>[ cb 0b 30 32 ]</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>CIC: 122</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>[ 7a 00 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Message Type: IAM</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>[ 01 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>--FIXED LENGTH PARMS[4]--</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Nature of Connection Indicator:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Satellites in connection: 0</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Continuity Check: Check not required (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Outgoing half echo control device: included (1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 10 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Forward Call Indicators:</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Nat/Intl Call Ind: call to be treated as a national call (0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>End to End Method Ind: no end-to-end method(s) available (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Interworking Ind: no interworking encountered (0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>End to End Info Ind: no end-to-end information available (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>ISDN User Part Ind: ISDN user part used all the way (1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>ISDN User Part Pref Ind: ISDN user part preferred all the way (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>ISDN Access Ind: originating access ISDN (1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>SCCP Method Ind: no indication (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 20 01 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Calling Party&#39;s Category:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Category: Ordinary calling subscriber (10)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 0a ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Transmission Medium Requirements:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Speech (0)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 00 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>--VARIABLE LENGTH PARMS[1]--</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>Called Party Number:</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Nature of address: 3</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>NI: 0</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Numbering plan: 1</div><div><span class="Apple-style-span" style="background-color: rgb(255, 0, 0);"><span class="Apple-tab-span" style="white-space:pre">                        </span>Address signals: 0000#</span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 05 83 10 00 00 0f ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>--OPTIONAL PARMS--</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Calling Party Number:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Nature of address: 4</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>NI: 0</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Numbering plan: 1</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Presentation: 0</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Screening: 1</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>Address signals: 59170642069</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 0a 08 84 11 95 71 60 24 60 09 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Access Transport:</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 03 04 7d 02 91 81 ]</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>User Service Information:</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 1d 03 80 90 a3 ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Propagation Delay Counter:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Delay: 0ms</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 31 02 00 5a ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Parameter Compatibility Information:</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ 39 02 31 c0 ]</div></div><div><br></div><div><br></div><div>It seems as if the debugger is not decoding the address digits in the first case (*510). I was wondering how do I go about writing an extension that matches this digits &quot;&quot; , or how can I confirm what digits are actually being passed to the dial plan</div>
<div><br></div><div>My box:</div><div>asterisk-1.6.0.1</div><div>dahdi-linux-2.0.0</div><div>libss7-1.0.1</div><div><br></div><div>thanks in advance.</div>