[asterisk-users] Merlin Legend integration not routing calls back to PSTN.

C F shmaltz at gmail.com
Tue Jan 5 22:00:56 CST 2010


On Tue, Jan 5, 2010 at 9:40 PM, Shane Brath <shane at brath.net> wrote:
>
> Folks,
>
> I have a Merlin Legend R7 V10.0 with a 2 100D cards.

Sorry, I feel your pain.

>
> I have 1 card in slot 4 going to CenturyTel, and the card in slot 10 going
> to a flip cable to a TE110P card in a Asterisk 1.6.x box.
>
> I have routing setup on the Merlin to send a block of numbers to the
> Asterisk.
>
> Currently the PSTN can dial the Asterisk Extensions.
> The Asterisk can dial Merlin Extensions.
> The Merlin can Dial Asterisk extensions.
>
> But the Asterisk can't dial out to the PSTN?
>
> I have tried everything, and I'm hoping someone else can shed some light on
> this. I'm open to ideas.
> I've already removed the barrier codes, and disable access code requirements
> on Tie and Non-Tie lines, with no effect.
> I made sure that the Asterisk is dialing 9XXXXXXX when sending the call over
> the DAHDI trunk to the Merlin.
>
> Whenever you call from the Asterisk to the Merlin you are redirected to the
> "Unassigned Extension" extension, and dropped to the Operator. I have a
> suspicion that this might have something to do with the NetwkService on the
> Slot 4 100D card ( out to PSTN ).
>
> Here are some relavant files for comment:
>
> Merlin PRIINFO:
> A PRI INFORMATION
>
>
>
> A Slot 4 Switch: 5ESS
>
> A Slot 10 Switch: Legend-Ntwk
>
> A System: By line
>
> A BchnlGrp #: Slot: TestTelNum: NtwkServ: Incoming Routing:
> A 1 4 CallbyCall By Dial Plan
>
> A Channel ID: 23 22 21 20 19 18 17 16 15 14
> A 13 12 11 10 9 8 7 6 5 4
> A 3 2 1
>
> A Line PhoneNumber NumberToSend
> A 801 NPANXXLLLL
> A 802 NPANXXLLLL
> A 803 NPANXXLLLL
> A 804 NPANXXLLLL
> A 805 NPANXXLLLL
> A 806 NPANXXLLLL
> A 807 NPANXXLLLL
> A 808 NPANXXLLLL
> A 809 NPANXXLLLL
> A 810 NPANXXLLLL
> A 811 NPANXXLLLL
> A 812 NPANXXLLLL
> A 813 NPANXXLLLL
> A 814 NPANXXLLLL
> A 815 NPANXXLLLL
> A 816 NPANXXLLLL
> A 817 NPANXXLLLL
> A 818 NPANXXLLLL
> A 819 NPANXXLLLL
> A 820 NPANXXLLLL
> A 821 NPANXXLLLL
> A 822 NPANXXLLLL
> A 823 NPANXXLLLL
>
> A BchnlGrp #: Slot: TestTelNum: NtwkServ: Incoming Routing:
> A 80 10 ElecTandNtwk Route Directly to UDP
>
> A Channel ID: 23 22 21 20 19 18 17 16 15 14
> A 13 12 11 10 9 8 7 6 5 4
> A 3 2 1
>
> A Line PhoneNumber NumberToSend
> A 829 NPANXXLLLL
> A 830 NPANXXLLLL
> A 831 NPANXXLLLL
> A 832 NPANXXLLLL
> A 833 NPANXXLLLL
> A 834 NPANXXLLLL
> A 835 NPANXXLLLL
> A 836 NPANXXLLLL
> A PRI INFORMATION
>
>
> A 837 NPANXXLLLL
> A 838 NPANXXLLLL
> A 839 NPANXXLLLL
> A 840 NPANXXLLLL
> A 841 NPANXXLLLL
> A 842 NPANXXLLLL
> A 843 NPANXXLLLL
> A 844 NPANXXLLLL
> A 845 NPANXXLLLL
> A 846 NPANXXLLLL
> A 847 NPANXXLLLL
> A 848 NPANXXLLLL
> A 849 NPANXXLLLL
> A 850 NPANXXLLLL
> A 851 NPANXXLLLL
>
> A Network Selection Table
>
> A Entry Number: 0 1 2 3
> A Pattern to Match: 101**** 10***
>
> A Special Service Table
>
> A Entry Number: 0 1 2 3 4 5 6 7
> A Pattern to Match: 011 010 01 00 1
> A Operator: none OP OP OP/P OP none none none
> A Type of Number: I I I N N N N N
> A Digits to Delete: 3 0 0 0 0 0 0 0
>
> A Call-By-Call Service Table
>
> A Entry Number: 0 1 2 3 4
> A Pattern 0: 0
> A Pattern 1: 1
> A Pattern 2: 2
> A Pattern 3: 3
> A Pattern 4: 4
> A Pattern 5: 5
> A Pattern 6: 6
> A Pattern 7: 7
> A Pattern 8: 8
> A Pattern 9: 9
> A Call Type: BOTH BOTH BOTH BOTH BOTH
> A NtwkServ: No Service
> A DeleteDigits: 0 0 0 0 0
>
> A Entry Number: 5 6 7 8 9
> A Call Type: BOTH BOTH BOTH BOTH BOTH
> A NtwkServ:
> A DeleteDigits: 0 0 0 0 0
>
> A Dial Plan Routing Table
>
> A Entry Number: 0 1 2 3
> A NtwkServ: Any service Any service
> A PRI INFORMATION
>
>
> A Expected Digits: 4 4 0 0
> A Pattern to Match: LLLL
> A Digits to Delete: 0 4 0 0
> A Digits to Add: LLLL
>
> A Entry Number: 4 5 6 7
> A NtwkServ:
> A Expected Digits: 0 0 0 0
> A Pattern to Match:
> A Digits to Delete: 0 0 0 0
> A Digits to Add:
>
> A Entry Number: 8 9 10 11
> A NtwkServ:
> A Expected Digits: 0 0 0 0
> A Pattern to Match:
> A Digits to Delete: 0 0 0 0
> A Digits to Add:
>
> A Entry Number: 12 13 14 15
> A NtwkServ:
> A Expected Digits: 0 0 0 0
> A Pattern to Match:
> A Digits to Delete: 0 0 0 0
> A Digits to Add:
>
> ------------
>
> Merlin TRUNKINFO
>
> A GENERAL TRUNK INFORMATION
>
>
>
> A QCC QCC Extern
> A Trk SS/PP RemAccess Pool TlPrfx HldDisc Principal Prty Oper Switch
> A 801 4/ 1 No Remote 70 Yes Long 4
> A 802 4/ 2 No Remote 70 Yes Long 4
> A 803 4/ 3 No Remote 70 Yes Long 4
> A 804 4/ 4 No Remote 70 Yes Long 4
> A 805 4/ 5 No Remote 70 Yes Long 4
> A 806 4/ 6 No Remote 70 Yes Long 4
> A 807 4/ 7 No Remote 70 Yes Long 4
> A 808 4/ 8 No Remote 70 Yes Long 4
> A 809 4/ 9 No Remote 70 Yes Long 4
> A 810 4/10 No Remote 70 Yes Long 4
> A 811 4/11 No Remote 70 Yes Long 4
> A 812 4/12 No Remote 70 Yes Long 4
> A 813 4/13 No Remote 70 Yes Long 4
> A 814 4/14 No Remote 70 Yes Long 4
> A 815 4/15 No Remote 70 Yes Long 4
> A 816 4/16 No Remote 70 Yes Long 4
> A 817 4/17 No Remote 70 Yes Long 4
> A 818 4/18 No Remote 70 Yes Long 4
> A 819 4/19 No Remote 70 Yes Long 4
> A 820 4/20 No Remote 70 Yes Long 4
> A 821 4/21 No Remote 70 Yes Long 4
> A 822 4/22 No Remote 70 Yes Long 4
> A 823 4/23 No Remote 70 Yes Long 4
> A 824 4/24 No Remote Yes Long 4
> A 825 5/ 1 No Remote Yes Long 4
> A 826 5/ 2 No Remote Yes Long 4
> A 827 5/ 3 No Remote Yes Long 4
> A 828 5/ 4 No Remote Yes Long 4
> A 829 10/ 1 No Remote 890 Yes Long 4
> A 830 10/ 2 No Remote 890 Yes Long 4
> A 831 10/ 3 No Remote 890 Yes Long 4
> A 832 10/ 4 No Remote 890 Yes Long 4
> A 833 10/ 5 No Remote 890 Yes Long 4
> A 834 10/ 6 No Remote 890 Yes Long 4
> A 835 10/ 7 No Remote 890 Yes Long 4
> A 836 10/ 8 No Remote 890 Yes Long 4
> A 837 10/ 9 No Remote 890 Yes Long 4
> A 838 10/10 No Remote 890 Yes Long 4
> A 839 10/11 No Remote 890 Yes Long 4
> A 840 10/12 No Remote 890 Yes Long 4
> A 841 10/13 No Remote 890 Yes Long 4
> A 842 10/14 No Remote 890 Yes Long 4
> A 843 10/15 No Remote 890 Yes Long 4
> A 844 10/16 No Remote 890 Yes Long 4
> A 845 10/17 No Remote 890 Yes Long 4
> A 846 10/18 No Remote 890 Yes Long 4
> A 847 10/19 No Remote 890 Yes Long 4
> A 848 10/20 No Remote 890 Yes Long 4
> A 849 10/21 No Remote 890 Yes Long 4
> A 850 10/22 No Remote 890 Yes Long 4
> A 851 10/23 No Remote 890 Yes Long 4
> A 852 10/24 No Remote Yes Long 4
> A 853 0/ 0 No Remote Yes Long 4
> A 854 0/ 0 No Remote Yes Long 4
> A 855 0/ 0 No Remote Yes Long 4
> A GENERAL TRUNK INFORMATION
>
>
> ----------------
>
>
> Merlin ARS:
>
> A AUTOMATIC ROUTE SELECTION
>
>
> A ARS IS: ACTIVE ACCESS CODE: 9
>
>
> A TABLE 1: Area Code
> A 01)800 02)888 03)877 04)876 05)866 06)--- 07)--- 08)--- 09)--- 10)---
> A 11)--- 12)--- 13)--- 14)--- 15)--- 16)--- 17)--- 18)--- 19)--- 20)---
> A 21)--- 22)--- 23)--- 24)--- 25)--- 26)--- 27)--- 28)--- 29)--- 30)---
> A 31)--- 32)--- 33)--- 34)--- 35)--- 36)--- 37)--- 38)--- 39)--- 40)---
> A 41)--- 42)--- 43)--- 44)--- 45)--- 46)--- 47)--- 48)--- 49)--- 50)---
> A 51)--- 52)--- 53)--- 54)--- 55)--- 56)--- 57)--- 58)--- 59)--- 60)---
> A 61)--- 62)--- 63)--- 64)--- 65)--- 66)--- 67)--- 68)--- 69)--- 70)---
> A 71)--- 72)--- 73)--- 74)--- 75)--- 76)--- 77)--- 78)--- 79)--- 80)---
> A 81)--- 82)--- 83)--- 84)--- 85)--- 86)--- 87)--- 88)--- 89)--- 90)---
> A 91)--- 92)--- 93)--- 94)--- 95)--- 96)--- 97)--- 98)--- 99)--- 100)---
>
> A Pool Absorb Other Digits FRL Call type Start Pattern
> A 1)70-- 00 -------------------- 3 BOTH --:-- A
> A 2)---- -- -------------------- - ----- --:-- A
> A 3)---- -- -------------------- - ----- --:-- A
> A 4)---- -- -------------------- - ----- --:-- A
> A 5)---- -- -------------------- - ----- --:-- A
> A 6)---- -- -------------------- - ----- --:-- A
>
> A Pool Absorb Other Digits FRL Call type Start Pattern
> A 1)---- -- -------------------- - ----- --:-- B
> A 2)---- -- -------------------- - ----- --:-- B
> A 3)---- -- -------------------- - ----- --:-- B
> A 4)---- -- -------------------- - ----- --:-- B
> A 5)---- -- -------------------- - ----- --:-- B
> A 6)---- -- -------------------- - ----- --:-- B
> A AUTOMATIC ROUTE SELECTION
>
>
>
> A TABLE 2: Area Code
> A 01)011 02)--- 03)--- 04)--- 05)--- 06)--- 07)--- 08)--- 09)--- 10)---
> A 11)--- 12)--- 13)--- 14)--- 15)--- 16)--- 17)--- 18)--- 19)--- 20)---
> A 21)--- 22)--- 23)--- 24)--- 25)--- 26)--- 27)--- 28)--- 29)--- 30)---
> A 31)--- 32)--- 33)--- 34)--- 35)--- 36)--- 37)--- 38)--- 39)--- 40)---
> A 41)--- 42)--- 43)--- 44)--- 45)--- 46)--- 47)--- 48)--- 49)--- 50)---
> A 51)--- 52)--- 53)--- 54)--- 55)--- 56)--- 57)--- 58)--- 59)--- 60)---
> A 61)--- 62)--- 63)--- 64)--- 65)--- 66)--- 67)--- 68)--- 69)--- 70)---
> A 71)--- 72)--- 73)--- 74)--- 75)--- 76)--- 77)--- 78)--- 79)--- 80)---
> A 81)--- 82)--- 83)--- 84)--- 85)--- 86)--- 87)--- 88)--- 89)--- 90)---
> A 91)--- 92)--- 93)--- 94)--- 95)--- 96)--- 97)--- 98)--- 99)--- 100)---
>
> A Pool Absorb Other Digits FRL Call type Start Pattern
> A 1)70-- 00 -------------------- 3 BOTH --:-- A
> A 2)---- -- -------------------- - ----- --:-- A
> A 3)---- -- -------------------- - ----- --:-- A
> A 4)---- -- -------------------- - ----- --:-- A
> A 5)---- -- -------------------- - ----- --:-- A
> A 6)---- -- -------------------- - ----- --:-- A
>
> A Pool Absorb Other Digits FRL Call type Start Pattern
> A 1)---- -- -------------------- - ----- --:-- B
> A 2)---- -- -------------------- - ----- --:-- B
> A 3)---- -- -------------------- - ----- --:-- B
> A 4)---- -- -------------------- - ----- --:-- B
> A 5)---- -- -------------------- - ----- --:-- B
> A 6)---- -- -------------------- - ----- --:-- B
> A AUTOMATIC ROUTE SELECTION
>
>
>
> A TABLE 17: Default Toll Output Table
>
> A Pool Absorb Other Digits FRL Call type Start Pattern
> A 1)70-- 00 -------------------- 3 BOTH --:-- A
> A 2)---- -- -------------------- - ----- --:-- A
> A 3)---- -- -------------------- - ----- --:-- A
> A 4)---- -- -------------------- - ----- --:-- A
> A 5)---- -- -------------------- - ----- --:-- A
> A 6)---- -- -------------------- - ----- --:-- A
>
> A Pool Absorb Other Digits FRL Call type Start Pattern
> A 1)70-- 00 -------------------- 3 BOTH --:-- B
> A 2)---- -- -------------------- - ----- --:-- B
> A 3)---- -- -------------------- - ----- --:-- B
> A 4)---- -- -------------------- - ----- --:-- B
> A 5)---- -- -------------------- - ----- --:-- B
> A 6)---- -- -------------------- - ----- --:-- B
> A AUTOMATIC ROUTE SELECTION
>
>
>
> A TABLE 18: Default Local Output Table
>
> A Pool Absorb Other Digits FRL Call type Start Pattern
> A 1)70-- 00 -------------------- 2 BOTH --:-- A
> A 2)---- -- -------------------- - ----- --:-- A
> A 3)---- -- -------------------- - ----- --:-- A
> A 4)---- -- -------------------- - ----- --:-- A
> A 5)---- -- -------------------- - ----- --:-- A
> A 6)---- -- -------------------- - ----- --:-- A
>
> A Pool Absorb Other Digits FRL Call type Start Pattern
> A 1)70-- 00 -------------------- 2 BOTH --:-- B
> A 2)---- -- -------------------- - ----- --:-- B
> A 3)---- -- -------------------- - ----- --:-- B
> A 4)---- -- -------------------- - ----- --:-- B
> A 5)---- -- -------------------- - ----- --:-- B
> A 6)---- -- -------------------- - ----- --:-- B
> A AUTOMATIC ROUTE SELECTION
>
>
>
> A TABLE 19: Dial 0 Output Table
>
> A Pool Absorb Other Digits FRL Call type Start Pattern
> A 1)70-- 00 -------------------- 3 BOTH --:-- A
> A AUTOMATIC ROUTE SELECTION
>
>
>
> A TABLE 20: N11 Output Table
> A 01)411 02)611 03)811 04)911
>
> A Pool Absorb Other Digits FRL Call type Start Pattern
> A 1)70-- 00 -------------------- 3 BOTH --:-- A
>
> -----------------
> NON-LOCAL DIALPLAN
>
> A NON-LOCAL DIALPLAN
>
>
>
> A Range Ptn Dgt Range Ptn Dgt Range Ptn Dgt
> A 1) 9340-9350 01 04 18) - 35) -
> A 2) - 19) - 36) -
> A 3) - 20) - 37) -
> A 4) - 21) - 38) -
> A 5) - 22) - 39) -
> A 6) - 23) - 40) -
> A 7) - 24) - 41) -
> A 8) - 25) - 42) -
> A 9) - 26) - 43) -
> A 10) - 27) - 44) -
> A 11) - 28) - 45) -
> A 12) - 29) - 46) -
> A 13) - 30) - 47) -
> A 14) - 31) - 48) -
> A 15) - 32) - 49) -
> A 16) - 33) - 50) -
> A 17) - 34) -
>
> A Pattern 1:
>
> A Pool Absorb Other Digits FRL Call type
> A 1)890- 00 -------------------- 3 VOICE
> A 2)---- -- -------------------- - -----
> A 3)---- -- -------------------- - -----
> A 4)---- -- -------------------- - -----
>
>
>
> -------------------
>
> Asterisk configs:
> /etc/dahdi/system.conf
> ---
> span = 1,1,0,esf,b8zs
> bchan = 1-23
> dchan = 24
> echocanceller = mg2,1-240
> loadzone = us
> defaultzone = us
>
>
> -- other blocks:
>
> [span_1]
> group = 1
> usecallingpres=no
> hasexten = no
> switchtype = 5ess
> signalling = pri_net
> trunkname = Span 1
> trunkstyle = digital
> hassip = no
> hasiax = no
> context = DID_span_1
> dahdichan = 1-23
>
>
> in extensions.conf
> exten => _XXXXXXX,n,Dial(DAHDI/g1/9${EXTEN})
>
>
> dahdi-channels.com
> ; Span 1: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0" (MASTER) B8ZS/ESF
> group=1
> context=from-pstn
> ;switchtype = national
> switchtype = 5ess
> signalling = pri_net
> channel => 1-23
>
>
>
> ---- debug of the call setup from asterisk ----
>
>
> == Using SIP RTP CoS mark 5
> -- Executing [9<number removed>@shane:1] Dial("SIP/4342-00000004",
> "DAHDI/g1/9<number removed>") in new stack
> -- Requested transfer capability: 0x00 - SPEECH
> -- Called g1/9<number removed>
> -- DAHDI/1-1 is proceeding passing it to SIP/4342-00000004
> -- DAHDI/1-1 is ringing
> -- Hungup 'DAHDI/1-1'
> == Spawn extension (shane, 9<number removed>, 1) exited non-zero on
> 'SIP/4342-00000004'
>
>
> --------------------
>
> I know I have the span_1 and the dadhi-channels kind of duplicated, and I'm
> not sure why the gui did that, but I can remove it if someone thinks that is
> confusing things..
>
>
>
>
> Shane Brath
> shane at brath.net
> Skype: shane.brath
>
>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list