Custom Trunk to route for INUM +883

Discussion in 'General' started by midiabyte, Jan 25, 2010.

  1. midiabyte

    Joined:
    Aug 31, 2009
    Messages:
    58
    Likes Received:
    0
    Hello, I need to create an exit route for INUM numbers. I tried to create a custom trunk, with the dial string Local/$OUTNUM$/81.201.81.50 but I could not route calls.

    Please, anybody help me?

    Thank's
    Fernando
     
  2. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    for INUM I'm routing the calls through either: callcentric or fonosip that route it for free.
    Try also your other regular providers, they maybe route it properly.
     
  3. midiabyte

    Joined:
    Aug 31, 2009
    Messages:
    58
    Likes Received:
    0
    Patrick, we received today the registration of INUM, with our approval. In other words: We were approved as a provider of INUM numbers. However, we are failing to direct calls to the INUM server.

    The manual only gives them the parameters of IP to route calls (81.201.81.50).
    We have we enabled our IP's to receive and to provide the numbers to customers, but in fact we are not managing to route calls from our network to the INUM server (81.201.81.50).

    I believe that only by creating a custom trunk, where all the calls initiated with +883, should follow him.

    Thank's
     
  4. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    congratulation, I wish more people would be using INUM. So far out of the 12 providers I'm playing with, only 4 are routing to it. On the PSTN side its even worst.

    What requirement did you need to be approved?
    Is it something that could be considered for a small business that will not issue more than 50~100 INUM number to seek this approval?
     
  5. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    did you try instead
    Code:
    sip/$OUTNUM$@81.201.81.50
     
  6. midiabyte

    Joined:
    Aug 31, 2009
    Messages:
    58
    Likes Received:
    0
    Sorry! I just typed wrong in this post. This is exactly what is there "Local/$OUTNUM$@81.201.81.50". And it's not working!


    I also had tried
    Code:
    sip/$OUTNUM$@81.201.81.50
    , but did not work also.

    Are we in trouble for "pass" the signal of positive (+) before the number?

    In our exit route we are using the mask +883XXXXXXXXXXXX to send calls to the custom trunk. And in it, have only . (dot) to pass all digits (including +), correct?.

    Thank's
     
  7. midiabyte

    Joined:
    Aug 31, 2009
    Messages:
    58
    Likes Received:
    0
    Patrick, now on trunk rules i'm add the (+) before the number, and make a test with INUM Echo Test. Now I don't understand! Have "Congestion"???.

    Please, see below.

    Code:
     -- Executing [883510000000091@from-internal:1] Macro("SIP/1002-b6b53188", "user-callerid|SKIPTTL|") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/1002-b6b53188", "AMPUSER=1002") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/1002-b6b53188", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/1002-b6b53188", "1|Set|REALCALLERIDNUM=1002") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/1002-b6b53188", "AMPUSER=1002") in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/1002-b6b53188", "AMPUSERCIDNAME=RamalGateway") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/1002-b6b53188", "0?report") in new stack
        -- Executing [s@macro-user-callerid:7] Set("SIP/1002-b6b53188", "AMPUSERCID=1002") in new stack
        -- Executing [s@macro-user-callerid:8] Set("SIP/1002-b6b53188", "CALLERID(all)="RamalGateway" <1002>") in new stack
        -- Executing [s@macro-user-callerid:9] ExecIf("SIP/1002-b6b53188", "1|Set|CHANNEL(language)=pt_BR") in new stack
        -- Executing [s@macro-user-callerid:10] GotoIf("SIP/1002-b6b53188", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,19)
        -- Executing [s@macro-user-callerid:19] NoOp("SIP/1002-b6b53188", "Using CallerID "RamalGateway" <1002>") in new stack
        -- Executing [883510000000091@from-internal:2] Set("SIP/1002-b6b53188", "_NODEST=") in new stack
        -- Executing [883510000000091@from-internal:3] Macro("SIP/1002-b6b53188", "record-enable|1002|OUT|") in new stack
        -- Executing [s@macro-record-enable:1] GotoIf("SIP/1002-b6b53188", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] AGI("SIP/1002-b6b53188", "recordingcheck|20100126-131023|1264518623.953") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
      recordingcheck|20100126-131023|1264518623.953: Outbound recording not enabled
        -- AGI Script recordingcheck completed, returning 0
        -- Executing [s@macro-record-enable:5] MacroExit("SIP/1002-b6b53188", "") in new stack
        -- Executing [883510000000091@from-internal:4] Macro("SIP/1002-b6b53188", "dialout-trunk|34|883510000000091||") in new stack
        -- Executing [s@macro-dialout-trunk:1] Set("SIP/1002-b6b53188", "DIAL_TRUNK=34") in new stack
        -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1002-b6b53188", "0?sub-pincheck|s|1") in new stack
        -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1002-b6b53188", "0?disabletrunk|1") in new stack
        -- Executing [s@macro-dialout-trunk:4] Set("SIP/1002-b6b53188", "DIAL_NUMBER=883510000000091") in new stack
        -- Executing [s@macro-dialout-trunk:5] Set("SIP/1002-b6b53188", "DIAL_TRUNK_OPTIONS=tTr") in new stack
        -- Executing [s@macro-dialout-trunk:6] Set("SIP/1002-b6b53188", "OUTBOUND_GROUP=OUT_34") in new stack
        -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1002-b6b53188", "1?nomax") in new stack
        -- Goto (macro-dialout-trunk,s,9)
        -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1002-b6b53188", "0?skipoutcid") in new stack
        -- Executing [s@macro-dialout-trunk:10] Set("SIP/1002-b6b53188", "DIAL_TRUNK_OPTIONS=tT") in new stack
        -- Executing [s@macro-dialout-trunk:11] Macro("SIP/1002-b6b53188", "outbound-callerid|34") in new stack
        -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1002-b6b53188", "0|SetCallerPres|") in new stack
        -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/1002-b6b53188", "0|Set|REALCALLERIDNUM=1002") in new stack
        -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/1002-b6b53188", "1?normcid") in new stack
        -- Goto (macro-outbound-callerid,s,6)
        -- Executing [s@macro-outbound-callerid:6] Set("SIP/1002-b6b53188", "USEROUTCID="MidiaByte" <1002>") in new stack
        -- Executing [s@macro-outbound-callerid:7] Set("SIP/1002-b6b53188", "EMERGENCYCID=") in new stack
        -- Executing [s@macro-outbound-callerid:8] Set("SIP/1002-b6b53188", "TRUNKOUTCID=") in new stack
        -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/1002-b6b53188", "1?trunkcid") in new stack
        -- Goto (macro-outbound-callerid,s,12)
        -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/1002-b6b53188", "0|Set|CALLERID(all)=") in new stack
        -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/1002-b6b53188", "1|Set|CALLERID(all)=MidiaByte <1002>") in new stack
        -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/1002-b6b53188", "0|SetCallerPres|prohib_passed_screen") in new stack
        -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/1002-b6b53188", "1|AGI|fixlocalprefix") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
      ==  fixlocalprefix: Dialpattern 883XXXXXXXXXXXX matched. 883510000000091 -> 883510000000091
        -- AGI Script fixlocalprefix completed, returning 0
        -- Executing [s@macro-dialout-trunk:13] Set("SIP/1002-b6b53188", "OUTNUM=+883510000000091") in new stack
        -- Executing [s@macro-dialout-trunk:14] Set("SIP/1002-b6b53188", "custom=AMP") in new stack
        -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/1002-b6b53188", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)tT") in new stack
        -- Executing [s@macro-dialout-trunk:16] Macro("SIP/1002-b6b53188", "dialout-trunk-predial-hook|") in new stack
        -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1002-b6b53188", "") in new stack
        -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/1002-b6b53188", "0?bypass|1") in new stack
        -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1002-b6b53188", "1?customtrunk") in new stack
        -- Goto (macro-dialout-trunk,s,21)
        -- Executing [s@macro-dialout-trunk:21] Set("SIP/1002-b6b53188", "pre_num=AMP:local/") in new stack
        -- Executing [s@macro-dialout-trunk:22] Set("SIP/1002-b6b53188", "the_num=OUTNUM") in new stack
        -- Executing [s@macro-dialout-trunk:23] Set("SIP/1002-b6b53188", "post_num=@81.201.82.50") in new stack
        -- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/1002-b6b53188", "1?outnum:skipoutnum") in new stack
        -- Goto (macro-dialout-trunk,s,25)
        -- Executing [s@macro-dialout-trunk:25] Set("SIP/1002-b6b53188", "the_num=+883510000000091") in new stack
        -- Executing [s@macro-dialout-trunk:26] Dial("SIP/1002-b6b53188", "local/+883510000000091@81.201.82.50|300|tT") in new stack
        -- Couldn't call +883510000000091@81.201.82.50
      == Everyone is busy/congested at this time (0:0/0/0)
        -- Executing [s@macro-dialout-trunk:27] Goto("SIP/1002-b6b53188", "s-CHANUNAVAIL|1") in new stack
        -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
        -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/1002-b6b53188", "1?noreport") in new stack
        -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
        -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/1002-b6b53188", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
        -- Executing [883510000000091@from-internal:5] Macro("SIP/1002-b6b53188", "outisbusy|") in new stack
        -- Executing [s@macro-outisbusy:1] Playback("SIP/1002-b6b53188", "all-circuits-busy-now|noanswer") in new stack
        -- <SIP/1002-b6b53188> Playing 'all-circuits-busy-now' (language 'pt_BR')
      == Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/1002-b6b53188' in macro 'outisbusy'
      == Spawn extension (from-internal, 883510000000091, 5) exited non-zero on 'SIP/1002-b6b53188'
        -- Executing [h@from-internal:1] Macro("SIP/1002-b6b53188", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] GotoIf("SIP/1002-b6b53188", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,4)
        -- Executing [s@macro-hangupcall:4] GotoIf("SIP/1002-b6b53188", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,7)
        -- Executing [s@macro-hangupcall:7] GotoIf("SIP/1002-b6b53188", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] Hangup("SIP/1002-b6b53188", "") in new stack
    
     

Share This Page