I can't make a outgoing calls

Discussion in 'General' started by muertesbg, May 28, 2009.

  1. muertesbg

    Joined:
    May 28, 2009
    Messages:
    10
    Likes Received:
    0
    I have been installed last version of elastix.
    I make a Trunks , in Dial Rules a leave a empty.My VoIP provider was say to send the SIP prixy only number.
    The local extension work perfect.In Outbond Routes I use the default Route 9_Outside.But when I attemp to make a outbond call in the Asterisk-CLI I receive that:
    Code:
    SIP Debugging Disabled
        -- Executing [9945828@from-internal:1] Macro("SIP/201-09691828", "user-callerid|SKIPTTL|") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/201-09691828", "AMPUSER=201") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/201-09691828", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/201-09691828", "1|Set|REALCALLERIDNUM=201") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/201-09691828", "AMPUSER=201") in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/201-09691828", "AMPUSERCIDNAME=IT Staff") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/201-09691828", "0?report") in new stack
        -- Executing [s@macro-user-callerid:7] Set("SIP/201-09691828", "AMPUSERCID=201") in new stack
        -- Executing [s@macro-user-callerid:8] Set("SIP/201-09691828", "CALLERID(all)="IT Staff" <201>") in new stack
        -- Executing [s@macro-user-callerid:9] Set("SIP/201-09691828", "REALCALLERIDNUM=201") in new stack
        -- Executing [s@macro-user-callerid:10] ExecIf("SIP/201-09691828", "0|Set|CHANNEL(language)=") in new stack
        -- Executing [s@macro-user-callerid:11] GotoIf("SIP/201-09691828", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,20)
        -- Executing [s@macro-user-callerid:20] NoOp("SIP/201-09691828", "Using CallerID "IT Staff" <201>") in new stack
        -- Executing [9945828@from-internal:2] Set("SIP/201-09691828", "_NODEST=") in new stack
        -- Executing [9945828@from-internal:3] Macro("SIP/201-09691828", "record-enable|201|OUT|") in new stack
        -- Executing [s@macro-record-enable:1] GotoIf("SIP/201-09691828", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] AGI("SIP/201-09691828", "recordingcheck|20090528-140109|1243508469.14") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
      recordingcheck|20090528-140109|1243508469.14: Outbound recording not enabled
        -- AGI Script recordingcheck completed, returning 0
        -- Executing [s@macro-record-enable:5] MacroExit("SIP/201-09691828", "") in new stack
        -- Executing [9945828@from-internal:4] Macro("SIP/201-09691828", "dialout-trunk|1|945828||") in new stack
        -- Executing [s@macro-dialout-trunk:1] Set("SIP/201-09691828", "DIAL_TRUNK=1") in new stack
        -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/201-09691828", "0?sub-pincheck|s|1") in new stack
        -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/201-09691828", "0?disabletrunk|1") in new stack
        -- Executing [s@macro-dialout-trunk:4] Set("SIP/201-09691828", "DIAL_NUMBER=945828") in new stack
        -- Executing [s@macro-dialout-trunk:5] Set("SIP/201-09691828", "DIAL_TRUNK_OPTIONS=tr") in new stack
        -- Executing [s@macro-dialout-trunk:6] Set("SIP/201-09691828", "OUTBOUND_GROUP=OUT_1") in new stack
        -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/201-09691828", "1?nomax") in new stack
        -- Goto (macro-dialout-trunk,s,9)
        -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/201-09691828", "0?skipoutcid") in new stack
        -- Executing [s@macro-dialout-trunk:10] Set("SIP/201-09691828", "DIAL_TRUNK_OPTIONS=") in new stack
        -- Executing [s@macro-dialout-trunk:11] Macro("SIP/201-09691828", "outbound-callerid|1") in new stack
        -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/201-09691828", "0|SetCallerPres|") in new stack
        -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/201-09691828", "0|Set|REALCALLERIDNUM=201") in new stack
        -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/201-09691828", "1?normcid") in new stack
        -- Goto (macro-outbound-callerid,s,6)
        -- Executing [s@macro-outbound-callerid:6] Set("SIP/201-09691828", "USEROUTCID=") in new stack
        -- Executing [s@macro-outbound-callerid:7] Set("SIP/201-09691828", "EMERGENCYCID=") in new stack
        -- Executing [s@macro-outbound-callerid:8] Set("SIP/201-09691828", "TRUNKOUTCID=") in new stack
        -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/201-09691828", "1?trunkcid") in new stack
        -- Goto (macro-outbound-callerid,s,12)
        -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/201-09691828", "0|Set|CALLERID(all)=") in new stack
        -- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/201-09691828", "1?exit") in new stack
        -- Goto (macro-outbound-callerid,s,11)
        -- Executing [s@macro-outbound-callerid:11] MacroExit("SIP/201-09691828", "") in new stack
        -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/201-09691828", "0|AGI|fixlocalprefix") in new stack
        -- Executing [s@macro-dialout-trunk:13] Set("SIP/201-09691828", "OUTNUM=945828") in new stack
        -- Executing [s@macro-dialout-trunk:14] Set("SIP/201-09691828", "custom=DAHDI/g0") in new stack
        -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/201-09691828", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
        -- Executing [s@macro-dialout-trunk:16] Macro("SIP/201-09691828", "dialout-trunk-predial-hook|") in new stack
        -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/201-09691828", "") in new stack
        -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/201-09691828", "0?bypass|1") in new stack
        -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/201-09691828", "0?customtrunk") in new stack
        -- Executing [s@macro-dialout-trunk:19] Dial("SIP/201-09691828", "DAHDI/g0/945828|300|") in new stack
      == Everyone is busy/congested at this time (1:0/0/1)
        -- Executing [s@macro-dialout-trunk:20] Goto("SIP/201-09691828", "s-CHANUNAVAIL|1") in new stack
        -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
        -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/201-09691828", "1?noreport") in new stack
        -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
        -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/201-09691828", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
        -- Executing [9945828@from-internal:5] Macro("SIP/201-09691828", "dialout-trunk|2|945828||") in new stack
        -- Executing [s@macro-dialout-trunk:1] Set("SIP/201-09691828", "DIAL_TRUNK=2") in new stack
        -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/201-09691828", "0?sub-pincheck|s|1") in new stack
        -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/201-09691828", "0?disabletrunk|1") in new stack
        -- Executing [s@macro-dialout-trunk:4] Set("SIP/201-09691828", "DIAL_NUMBER=945828") in new stack
        -- Executing [s@macro-dialout-trunk:5] Set("SIP/201-09691828", "DIAL_TRUNK_OPTIONS=tr") in new stack
        -- Executing [s@macro-dialout-trunk:6] Set("SIP/201-09691828", "OUTBOUND_GROUP=OUT_2") in new stack
        -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/201-09691828", "1?nomax") in new stack
        -- Goto (macro-dialout-trunk,s,9)
        -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/201-09691828", "0?skipoutcid") in new stack
        -- Executing [s@macro-dialout-trunk:10] Set("SIP/201-09691828", "DIAL_TRUNK_OPTIONS=") in new stack
        -- Executing [s@macro-dialout-trunk:11] Macro("SIP/201-09691828", "outbound-callerid|2") in new stack
        -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/201-09691828", "0|SetCallerPres|") in new stack
        -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/201-09691828", "0|Set|REALCALLERIDNUM=201") in new stack
        -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/201-09691828", "1?normcid") in new stack
        -- Goto (macro-outbound-callerid,s,6)
        -- Executing [s@macro-outbound-callerid:6] Set("SIP/201-09691828", "USEROUTCID=") in new stack
        -- Executing [s@macro-outbound-callerid:7] Set("SIP/201-09691828", "EMERGENCYCID=") in new stack
        -- Executing [s@macro-outbound-callerid:8] Set("SIP/201-09691828", "TRUNKOUTCID="NEGO"<35912345678") in new stack
        -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/201-09691828", "1?trunkcid") in new stack
        -- Goto (macro-outbound-callerid,s,12)
        -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/201-09691828", "1|Set|CALLERID(all)=NEGO<35912345678>") in new stack
        -- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/201-09691828", "1?exit") in new stack
        -- Goto (macro-outbound-callerid,s,11)
        -- Executing [s@macro-outbound-callerid:11] MacroExit("SIP/201-09691828", "") in new stack
        -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/201-09691828", "0|AGI|fixlocalprefix") in new stack
        -- Executing [s@macro-dialout-trunk:13] Set("SIP/201-09691828", "OUTNUM=945828") in new stack
        -- Executing [s@macro-dialout-trunk:14] Set("SIP/201-09691828", "custom=SIP/CoolBox511") in new stack
        -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/201-09691828", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
        -- Executing [s@macro-dialout-trunk:16] Macro("SIP/201-09691828", "dialout-trunk-predial-hook|") in new stack
        -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/201-09691828", "") in new stack
        -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/201-09691828", "0?bypass|1") in new stack
        -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/201-09691828", "0?customtrunk") in new stack
        -- Executing [s@macro-dialout-trunk:19] Dial("SIP/201-09691828", "SIP/CoolBox511/945828|300|") in new stack
        -- Called CoolBox511/945828
      == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/201-09691828' in macro 'dialout-trunk'
      == Spawn extension (from-internal, 9945828, 5) exited non-zero on 'SIP/201-09691828'
        -- Executing [h@macro-dialout-trunk:1] Macro("SIP/201-09691828", "hangupcall|") in new stack
        -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/201-09691828", "w") in new stack
        -- Executing [s@macro-hangupcall:2] NoCDR("SIP/201-09691828", "") in new stack
        -- Executing [s@macro-hangupcall:3] GotoIf("SIP/201-09691828", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,6)
        -- Executing [s@macro-hangupcall:6] GotoIf("SIP/201-09691828", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] GotoIf("SIP/201-09691828", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,11)
        -- Executing [s@macro-hangupcall:11] Hangup("SIP/201-09691828", "") in new stack
      == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/201-09691828' in macro 'hangupcall'
      == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/201-09691828'
        -- Unregistered SIP '201'
        -- Remote UNIX connection
        -- Remote UNIX connection disconnected
    
    Please FOR any ideas?
     
  2. Megabyte

    Joined:
    Mar 28, 2009
    Messages:
    327
    Likes Received:
    0
    Hi, you need to create an outbound route with (i think its your case) with the ten digits paterns to match your dialing number.

    Try that and tell me what happen
     
  3. muertesbg

    Joined:
    May 28, 2009
    Messages:
    10
    Likes Received:
    0
    My Outbound route is standart route in FreePBX - 9_Outside - In Dial Patterns I have 9|.
    Another one, when I try to make a out calling , the X-Lite soft phone say - Forbidden
    Maybe I hava a mistake in my Dial Rules in my Trunk.
    But the VoIP provider tell me, no any dialing rules - Just number.
    When I try to make a call directly from X-Lite soft phone, there is no problem.I give only user name, password and sip proxy and any outgoig call is greate, but from FreePBX is a problem.
     
  4. Megabyte

    Joined:
    Mar 28, 2009
    Messages:
    327
    Likes Received:
    0
    Did you select in your outbound route the Sip Trunk?
    I can see in your CLI output trying to place calls in Dahdi channel.

    Another thing are you registered with your provider?

    Do a show registry in CLI to verify that.

    disallow=all
    allow=alaw
    canreinvite=no
    disallow=all
    dtmfmode=info
    fromuser=myusername
    host=nyc.voicepulse.com
    qualify=5000
    secret=mypassword
    sendrpid=yes
    type=peer


    myusername:mypassword@nyc.voicepulse.com


    VOIP provider example.
     
  5. muertesbg

    Joined:
    May 28, 2009
    Messages:
    10
    Likes Received:
    0
    Yes I was register in sip proxy of VoIP.
    Code:
    elastix*CLI> sip show registry
    Host                            Username       Refresh State                Reg.Time
    sip.cooolbox.bg:5060            35932XXXXXX        105 Registered           Fri, 29 May 2009 08:24:37
    elastix*CLI> sip show peers
    Name/username              Host            Dyn Nat ACL Port     Status
    CoolBox511/35932XXXXXX     212.116.145.19              5060     OK (4 ms)
    201/201                    10.0.0.2         D   N      58580    OK (102 ms)
    2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline]
    elastix*CLI>
    
    I delete the default Trunk for Zap0 channel.
    Today the CLI Output is this:
    Code:
    elastix*CLI>
    -- Executing [9945828@from-internal:1] Macro("SIP/201-09e9b1d0", "user-callerid|SKIPTTL|") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/201-09e9b1d0", "AMPUSER=201") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/201-09e9b1d0", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/201-09e9b1d0", "1|Set|REALCALLERIDNUM=201") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/201-09e9b1d0", "AMPUSER=201") in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/201-09e9b1d0", "AMPUSERCIDNAME=IT Staff") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/201-09e9b1d0", "0?report") in new stack
        -- Executing [s@macro-user-callerid:7] Set("SIP/201-09e9b1d0", "AMPUSERCID=201") in new stack
        -- Executing [s@macro-user-callerid:8] Set("SIP/201-09e9b1d0", "CALLERID(all)="IT Staff" <201>") in new stack
        -- Executing [s@macro-user-callerid:9] Set("SIP/201-09e9b1d0", "REALCALLERIDNUM=201") in new stack
        -- Executing [s@macro-user-callerid:10] ExecIf("SIP/201-09e9b1d0", "0|Set|CHANNEL(language)=") in new stack
        -- Executing [s@macro-user-callerid:11] GotoIf("SIP/201-09e9b1d0", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,20)
        -- Executing [s@macro-user-callerid:20] NoOp("SIP/201-09e9b1d0", "Using CallerID "IT Staff" <201>") in new stack
        -- Executing [9945828@from-internal:2] Set("SIP/201-09e9b1d0", "_NODEST=") in new stack
        -- Executing [9945828@from-internal:3] Macro("SIP/201-09e9b1d0", "record-enable|201|OUT|") in new stack
        -- Executing [s@macro-record-enable:1] GotoIf("SIP/201-09e9b1d0", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] AGI("SIP/201-09e9b1d0", "recordingcheck|20090529-082718|1243574838.4") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
      recordingcheck|20090529-082718|1243574838.4: Outbound recording not enabled
        -- AGI Script recordingcheck completed, returning 0
        -- Executing [s@macro-record-enable:5] MacroExit("SIP/201-09e9b1d0", "") in new stack
        -- Executing [9945828@from-internal:4] Macro("SIP/201-09e9b1d0", "dialout-trunk|2|945828||") in new stack
        -- Executing [s@macro-dialout-trunk:1] Set("SIP/201-09e9b1d0", "DIAL_TRUNK=2") in new stack
        -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/201-09e9b1d0", "0?sub-pincheck|s|1") in new stack
        -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/201-09e9b1d0", "0?disabletrunk|1") in new stack
        -- Executing [s@macro-dialout-trunk:4] Set("SIP/201-09e9b1d0", "DIAL_NUMBER=945828") in new stack
        -- Executing [s@macro-dialout-trunk:5] Set("SIP/201-09e9b1d0", "DIAL_TRUNK_OPTIONS=tr") in new stack
        -- Executing [s@macro-dialout-trunk:6] Set("SIP/201-09e9b1d0", "OUTBOUND_GROUP=OUT_2") in new stack
        -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/201-09e9b1d0", "1?nomax") in new stack
        -- Goto (macro-dialout-trunk,s,9)
        -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/201-09e9b1d0", "0?skipoutcid") in new stack
        -- Executing [s@macro-dialout-trunk:10] Set("SIP/201-09e9b1d0", "DIAL_TRUNK_OPTIONS=") in new stack
        -- Executing [s@macro-dialout-trunk:11] Macro("SIP/201-09e9b1d0", "outbound-callerid|2") in new stack
        -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/201-09e9b1d0", "0|SetCallerPres|") in new stack
        -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/201-09e9b1d0", "0|Set|REALCALLERIDNUM=201") in new stack
        -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/201-09e9b1d0", "1?normcid") in new stack
        -- Goto (macro-outbound-callerid,s,6)
        -- Executing [s@macro-outbound-callerid:6] Set("SIP/201-09e9b1d0", "USEROUTCID=") in new stack
        -- Executing [s@macro-outbound-callerid:7] Set("SIP/201-09e9b1d0", "EMERGENCYCID=") in new stack
        -- Executing [s@macro-outbound-callerid:8] Set("SIP/201-09e9b1d0", "TRUNKOUTCID="NEGO"<35932XXXXXX>") in new stack
        -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/201-09e9b1d0", "1?trunkcid") in new stack
        -- Goto (macro-outbound-callerid,s,12)
        -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/201-09e9b1d0", "1|Set|CALLERID(all)=NEGO<35932XXXXXX>") in new stack
        -- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/201-09e9b1d0", "1?exit") in new stack
        -- Goto (macro-outbound-callerid,s,11)
        -- Executing [s@macro-outbound-callerid:11] MacroExit("SIP/201-09e9b1d0", "") in new stack
        -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/201-09e9b1d0", "0|AGI|fixlocalprefix") in new stack
        -- Executing [s@macro-dialout-trunk:13] Set("SIP/201-09e9b1d0", "OUTNUM=945828") in new stack
        -- Executing [s@macro-dialout-trunk:14] Set("SIP/201-09e9b1d0", "custom=SIP/CoolBox511") in new stack
        -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/201-09e9b1d0", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
        -- Executing [s@macro-dialout-trunk:16] Macro("SIP/201-09e9b1d0", "dialout-trunk-predial-hook|") in new stack
        -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/201-09e9b1d0", "") in new stack
        -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/201-09e9b1d0", "0?bypass|1") in new stack
        -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/201-09e9b1d0", "0?customtrunk") in new stack
        -- Executing [s@macro-dialout-trunk:19] Dial("SIP/201-09e9b1d0", "SIP/CoolBox511/945828|300|") in new stack
        -- Called CoolBox511/945828
        -- SIP/CoolBox511-09ec7dd0 is circuit-busy
      == Everyone is busy/congested at this time (1:0/1/0)
        -- Executing [s@macro-dialout-trunk:20] Goto("SIP/201-09e9b1d0", "s-CONGESTION|1") in new stack
        -- Goto (macro-dialout-trunk,s-CONGESTION,1)
        -- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/201-09e9b1d0", "1?noreport") in new stack
        -- Goto (macro-dialout-trunk,s-CONGESTION,3)
        -- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/201-09e9b1d0", "TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new stack
        -- Executing [9945828@from-internal:5] Macro("SIP/201-09e9b1d0", "outisbusy|") in new stack
        -- Executing [s@macro-outisbusy:1] Playback("SIP/201-09e9b1d0", "all-circuits-busy-now|noanswer") in new stack
        -- <SIP/201-09e9b1d0> Playing 'all-circuits-busy-now' (language 'en')
        -- Executing [s@macro-outisbusy:2] Playback("SIP/201-09e9b1d0", "pls-try-call-later|noanswer") in new stack
        -- <SIP/201-09e9b1d0> Playing 'pls-try-call-later' (language 'en')
        -- Executing [s@macro-outisbusy:3] Macro("SIP/201-09e9b1d0", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/201-09e9b1d0", "w") in new stack
        -- Executing [s@macro-hangupcall:2] NoCDR("SIP/201-09e9b1d0", "") in new stack
        -- Executing [s@macro-hangupcall:3] GotoIf("SIP/201-09e9b1d0", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,6)
        -- Executing [s@macro-hangupcall:6] GotoIf("SIP/201-09e9b1d0", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] GotoIf("SIP/201-09e9b1d0", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,11)
        -- Executing [s@macro-hangupcall:11] Hangup("SIP/201-09e9b1d0", "") in new stack
      == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/201-09e9b1d0' in macro 'hangupcall'
      == Spawn extension (macro-outisbusy, s, 3) exited non-zero on 'SIP/201-09e9b1d0' in macro 'outisbusy'
      == Spawn extension (from-internal, 9945828, 5) exited non-zero on 'SIP/201-09e9b1d0'
        -- Executing [h@from-internal:1] Macro("SIP/201-09e9b1d0", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/201-09e9b1d0", "w") in new stack
        -- Executing [s@macro-hangupcall:2] NoCDR("SIP/201-09e9b1d0", "") in new stack
        -- Executing [s@macro-hangupcall:3] GotoIf("SIP/201-09e9b1d0", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,6)
        -- Executing [s@macro-hangupcall:6] GotoIf("SIP/201-09e9b1d0", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] GotoIf("SIP/201-09e9b1d0", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,11)
        -- Executing [s@macro-hangupcall:11] Hangup("SIP/201-09e9b1d0", "") in new stack
      == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/201-09e9b1d0' in macro 'hangupcall'
      == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/201-09e9b1d0'
    elastix*CLI>
    
    Now I try to add and two screenshots:
    Picture 1
    Picture 2
     
  6. Megabyte

    Joined:
    Mar 28, 2009
    Messages:
    327
    Likes Received:
    0
    Hi, try adding this to a new outbound route



    NXXXXXX
    NXXNXXXXXX



    Because your are placing incomplete numbers SIP/CoolBox511/945828 , try what i wrote you.

    Try it dialing 9 at first, and without the 9.
     
  7. muertesbg

    Joined:
    May 28, 2009
    Messages:
    10
    Likes Received:
    0
    Hi again,
    I try to add this dialig patterns but:
    *btw - I try do dialing only this number: 945828.This is our local numbers in our city.Only 6 or 7 digits, witout country code (359) or area code (032).
    Code:
    -- Executing [945828@from-internal:1] ResetCDR("SIP/201-09eba1f8", "") in new stack
        -- Executing [945828@from-internal:2] NoCDR("SIP/201-09eba1f8", "") in new stack
        -- Executing [945828@from-internal:3] Wait("SIP/201-09eba1f8", "1") in new stack
        -- Executing [945828@from-internal:4] Playback("SIP/201-09eba1f8", "silence/1&cannot-complete-as-dialed&check-number-dial-again|noanswer") in new stack
        -- <SIP/201-09eba1f8> Playing 'silence/1' (language 'en')
        -- <SIP/201-09eba1f8> Playing 'cannot-complete-as-dialed' (language 'en')
        -- <SIP/201-09eba1f8> Playing 'check-number-dial-again' (language 'en')
        -- Executing [945828@from-internal:5] Wait("SIP/201-09eba1f8", "1") in new stack
        -- Executing [945828@from-internal:6] Congestion("SIP/201-09eba1f8", "20") in new stack
      == Spawn extension (from-internal, 945828, 6) exited non-zero on 'SIP/201-09eba1f8'
        -- Executing [h@from-internal:1] Macro("SIP/201-09eba1f8", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/201-09eba1f8", "w") in new stack
        -- Executing [s@macro-hangupcall:2] NoCDR("SIP/201-09eba1f8", "") in new stack
        -- Executing [s@macro-hangupcall:3] GotoIf("SIP/201-09eba1f8", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,6)
        -- Executing [s@macro-hangupcall:6] GotoIf("SIP/201-09eba1f8", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] GotoIf("SIP/201-09eba1f8", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,11)
        -- Executing [s@macro-hangupcall:11] Hangup("SIP/201-09eba1f8", "") in new stack
      == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/201-09eba1f8' in macro 'hangupcall'
      == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/201-09eba1f8'
    
    Picture 1

    And now with 9|
    Code:
    -- Executing [9945828@from-internal:1] ResetCDR("SIP/201-09ef49c8", "") in new stack
        -- Executing [9945828@from-internal:2] NoCDR("SIP/201-09ef49c8", "") in new stack
        -- Executing [9945828@from-internal:3] Wait("SIP/201-09ef49c8", "1") in new stack
        -- Executing [9945828@from-internal:4] Playback("SIP/201-09ef49c8", "silence/1&cannot-complete-as-dialed&check-number-dial-again|noanswer") in new stack
        -- <SIP/201-09ef49c8> Playing 'silence/1' (language 'en')
        -- <SIP/201-09ef49c8> Playing 'cannot-complete-as-dialed' (language 'en')
        -- <SIP/201-09ef49c8> Playing 'check-number-dial-again' (language 'en')
        -- Executing [9945828@from-internal:5] Wait("SIP/201-09ef49c8", "1") in new stack
        -- Executing [9945828@from-internal:6] Congestion("SIP/201-09ef49c8", "20") in new stack
      == Spawn extension (from-internal, 9945828, 6) exited non-zero on 'SIP/201-09ef49c8'
        -- Executing [h@from-internal:1] Macro("SIP/201-09ef49c8", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/201-09ef49c8", "w") in new stack
        -- Executing [s@macro-hangupcall:2] NoCDR("SIP/201-09ef49c8", "") in new stack
        -- Executing [s@macro-hangupcall:3] GotoIf("SIP/201-09ef49c8", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,6)
        -- Executing [s@macro-hangupcall:6] GotoIf("SIP/201-09ef49c8", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] GotoIf("SIP/201-09ef49c8", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,11)
        -- Executing [s@macro-hangupcall:11] Hangup("SIP/201-09ef49c8", "") in new stack
      == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/201-09ef49c8' in macro 'hangupcall'
      == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/201-09ef49c8'
    elastix*CLI>
    
    Picture 2
     
  8. muertesbg

    Joined:
    May 28, 2009
    Messages:
    10
    Likes Received:
    0
    An this is the result when I make a this Dial Rules in the trunk directly ans The Outbound route in Dial Rules is only 9|.:
    Code:
    elastix*CLI>
    ------------------------------------------------------------------------------------------------------------------------------------------------------ -- Executing [9945828@from-internal:1] Macro("SIP/201-09ed4110", "user-callerid|SKIPTTL|") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/201-09ed4110", "AMPUSER=201") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/201-09ed4110", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/201-09ed4110", "1|Set|REALCALLERIDNUM=201") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/201-09ed4110", "AMPUSER=201") in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/201-09ed4110", "AMPUSERCIDNAME=IT Staff") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/201-09ed4110", "0?report") in new stack
        -- Executing [s@macro-user-callerid:7] Set("SIP/201-09ed4110", "AMPUSERCID=201") in new stack
        -- Executing [s@macro-user-callerid:8] Set("SIP/201-09ed4110", "CALLERID(all)="IT Staff" <201>") in new stack
        -- Executing [s@macro-user-callerid:9] Set("SIP/201-09ed4110", "REALCALLERIDNUM=201") in new stack
        -- Executing [s@macro-user-callerid:10] ExecIf("SIP/201-09ed4110", "0|Set|CHANNEL(language)=") in new stack
        -- Executing [s@macro-user-callerid:11] GotoIf("SIP/201-09ed4110", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,20)
        -- Executing [s@macro-user-callerid:20] NoOp("SIP/201-09ed4110", "Using CallerID "IT Staff" <201>") in new stack
        -- Executing [9945828@from-internal:2] Set("SIP/201-09ed4110", "_NODEST=") in new stack
        -- Executing [9945828@from-internal:3] Macro("SIP/201-09ed4110", "record-enable|201|OUT|") in new stack
        -- Executing [s@macro-record-enable:1] GotoIf("SIP/201-09ed4110", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] AGI("SIP/201-09ed4110", "recordingcheck|20090529-172252|1243606972.26") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
      recordingcheck|20090529-172252|1243606972.26: Outbound recording not enabled
        -- AGI Script recordingcheck completed, returning 0
        -- Executing [s@macro-record-enable:5] MacroExit("SIP/201-09ed4110", "") in new stack
        -- Executing [9945828@from-internal:4] Macro("SIP/201-09ed4110", "dialout-trunk|2|945828||") in new stack
        -- Executing [s@macro-dialout-trunk:1] Set("SIP/201-09ed4110", "DIAL_TRUNK=2") in new stack
        -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/201-09ed4110", "0?sub-pincheck|s|1") in new stack
        -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/201-09ed4110", "0?disabletrunk|1") in new stack
        -- Executing [s@macro-dialout-trunk:4] Set("SIP/201-09ed4110", "DIAL_NUMBER=945828") in new stack
        -- Executing [s@macro-dialout-trunk:5] Set("SIP/201-09ed4110", "DIAL_TRUNK_OPTIONS=tr") in new stack
        -- Executing [s@macro-dialout-trunk:6] Set("SIP/201-09ed4110", "OUTBOUND_GROUP=OUT_2") in new stack
        -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/201-09ed4110", "1?nomax") in new stack
        -- Goto (macro-dialout-trunk,s,9)
        -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/201-09ed4110", "0?skipoutcid") in new stack
        -- Executing [s@macro-dialout-trunk:10] Set("SIP/201-09ed4110", "DIAL_TRUNK_OPTIONS=") in new stack
        -- Executing [s@macro-dialout-trunk:11] Macro("SIP/201-09ed4110", "outbound-callerid|2") in new stack
        -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/201-09ed4110", "0|SetCallerPres|") in new stack
        -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/201-09ed4110", "0|Set|REALCALLERIDNUM=201") in new stack
        -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/201-09ed4110", "1?normcid") in new stack
        -- Goto (macro-outbound-callerid,s,6)
        -- Executing [s@macro-outbound-callerid:6] Set("SIP/201-09ed4110", "USEROUTCID=") in new stack
        -- Executing [s@macro-outbound-callerid:7] Set("SIP/201-09ed4110", "EMERGENCYCID=") in new stack
        -- Executing [s@macro-outbound-callerid:8] Set("SIP/201-09ed4110", "TRUNKOUTCID="NEGO"<35932XXXXXX>") in new stack
        -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/201-09ed4110", "1?trunkcid") in new stack
        -- Goto (macro-outbound-callerid,s,12)
        -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/201-09ed4110", "1|Set|CALLERID(all)=NEGO<35932XXXXXX>") in new stack
        -- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/201-09ed4110", "1?exit") in new stack
        -- Goto (macro-outbound-callerid,s,11)
        -- Executing [s@macro-outbound-callerid:11] MacroExit("SIP/201-09ed4110", "") in new stack
        -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/201-09ed4110", "1|AGI|fixlocalprefix") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
           >  fixlocalprefix: Using pattern NXXXXXX
           >  fixlocalprefix: Using pattern NXXNXXXXXX
        -- AGI Script fixlocalprefix completed, returning 0
        -- Executing [s@macro-dialout-trunk:13] Set("SIP/201-09ed4110", "OUTNUM=945828") in new stack
        -- Executing [s@macro-dialout-trunk:14] Set("SIP/201-09ed4110", "custom=SIP/CoolBox511") in new stack
        -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/201-09ed4110", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
        -- Executing [s@macro-dialout-trunk:16] Macro("SIP/201-09ed4110", "dialout-trunk-predial-hook|") in new stack
        -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/201-09ed4110", "") in new stack
        -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/201-09ed4110", "0?bypass|1") in new stack
        -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/201-09ed4110", "0?customtrunk") in new stack
        -- Executing [s@macro-dialout-trunk:19] Dial("SIP/201-09ed4110", "SIP/CoolBox511/945828|300|") in new stack
        -- Called CoolBox511/945828
        -- SIP/CoolBox511-09ec5d18 is circuit-busy
      == Everyone is busy/congested at this time (1:0/1/0)
        -- Executing [s@macro-dialout-trunk:20] Goto("SIP/201-09ed4110", "s-CONGESTION|1") in new stack
        -- Goto (macro-dialout-trunk,s-CONGESTION,1)
        -- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/201-09ed4110", "1?noreport") in new stack
        -- Goto (macro-dialout-trunk,s-CONGESTION,3)
        -- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/201-09ed4110", "TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new stack
        -- Executing [9945828@from-internal:5] Macro("SIP/201-09ed4110", "outisbusy|") in new stack
        -- Executing [s@macro-outisbusy:1] Playback("SIP/201-09ed4110", "all-circuits-busy-now|noanswer") in new stack
        -- <SIP/201-09ed4110> Playing 'all-circuits-busy-now' (language 'en')
        -- Executing [s@macro-outisbusy:2] Playback("SIP/201-09ed4110", "pls-try-call-later|noanswer") in new stack
        -- <SIP/201-09ed4110> Playing 'pls-try-call-later' (language 'en')
        -- Executing [s@macro-outisbusy:3] Macro("SIP/201-09ed4110", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/201-09ed4110", "w") in new stack
        -- Executing [s@macro-hangupcall:2] NoCDR("SIP/201-09ed4110", "") in new stack
        -- Executing [s@macro-hangupcall:3] GotoIf("SIP/201-09ed4110", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,6)
        -- Executing [s@macro-hangupcall:6] GotoIf("SIP/201-09ed4110", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] GotoIf("SIP/201-09ed4110", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,11)
        -- Executing [s@macro-hangupcall:11] Hangup("SIP/201-09ed4110", "") in new stack
      == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/201-09ed4110' in macro 'hangupcall'
      == Spawn extension (macro-outisbusy, s, 3) exited non-zero on 'SIP/201-09ed4110' in macro 'outisbusy'
      == Spawn extension (from-internal, 9945828, 5) exited non-zero on 'SIP/201-09ed4110'
        -- Executing [h@from-internal:1] Macro("SIP/201-09ed4110", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/201-09ed4110", "w") in new stack
        -- Executing [s@macro-hangupcall:2] NoCDR("SIP/201-09ed4110", "") in new stack
        -- Executing [s@macro-hangupcall:3] GotoIf("SIP/201-09ed4110", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,6)
        -- Executing [s@macro-hangupcall:6] GotoIf("SIP/201-09ed4110", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] GotoIf("SIP/201-09ed4110", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,11)
        -- Executing [s@macro-hangupcall:11] Hangup("SIP/201-09ed4110", "") in new stack
      == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/201-09ed4110' in macro 'hangupcall'
      == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/201-09ed4110'
    elastix*CLI>
    
     
  9. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    Try asking your voip provider how many digits is he expecting from you when you want to call a number on your city, some voip providers expect that the user also enter the city code number, no matter if the user is on the same city, and with that information, configure your outbound route
     
  10. muertesbg

    Joined:
    May 28, 2009
    Messages:
    10
    Likes Received:
    0
    I already talk with my VoIP provider.No limits of the number.He say - this when come in the trunk - this is the number.When I try to make a call directly from X-Lite soft phone, with user name, password and sip proxy on the provider, there is no problem.I make a call perfect.But when I try from Elastix - I can't.
     
  11. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    1. How many outbound routes you have? Paste all of them (including the dial pattern),also include the trunk sequence
    2. Paste the configuration of your sip trunk, have you tried using insecure=very paremeter on the configuration?
     
  12. muertesbg

    Joined:
    May 28, 2009
    Messages:
    10
    Likes Received:
    0
    The problem with Outgoing calls is SOLVED.Thank You for Your help.
    I add these :
    context=from-[name of the trunk]
    fromdomain=sip.XXXXX.XX
    fromuser=XXXXXXXXXX
    insecure=very
    Now Outgoing call is OK.
     

Share This Page