problem with connecting 2 elastix server

Discussion in 'General' started by bono056, Apr 11, 2010.

  1. bono056

    Joined:
    Jan 19, 2010
    Messages:
    70
    Likes Received:
    0
    i installed 2 elastix in 2 server. for connecting extension in servers, i defined IAX2 trunck & outgouing route. in rasterisk i checked trunk by "iax2 show peers" & both trunks are ok.
    now i can call from extensions in server 1 to server 2, but from extensions in server2 to server 1 it doesnt work. in eyebeam i get "call failed 503" error & this is the log when i try to call:

    in server 1:
    Code:
        -- Accepting AUTHENTICATED call from 192.168.200.xxx:
           > requested format = ulaw,
           > requested prefs = (ulaw|alaw|gsm),
           > actual format = ulaw,
           > host prefs = (ulaw|alaw|gsm),
           > priority = mine
        -- Executing [11@from-trunk:1] NoOp("IAX2/my-user-12763", "Catch-All DID Match - Found 11 - You probably want a DID for this.") in new stack
        -- Executing [11@from-trunk:2] Goto("IAX2/my-user-12763", "ext-did|s|1") in new stack
        -- Goto (ext-did,s,1)
        -- Executing [s@ext-did:1] Set("IAX2/my-user-12763", "__FROM_DID=s") in new stack
        -- Executing [s@ext-did:2] Gosub("IAX2/my-user-12763", "app-blacklist-check|s|1") in new stack
        -- Executing [s@app-blacklist-check:1] LookupBlacklist("IAX2/my-user-12763", "") in new stack
        -- Executing [s@app-blacklist-check:2] GotoIf("IAX2/my-user-12763", "0?blacklisted") in new stack
        -- Executing [s@app-blacklist-check:3] Return("IAX2/my-user-12763", "") in new stack
        -- Executing [s@ext-did:3] ExecIf("IAX2/my-user-12763", "0 |Set|CALLERID(name)=113") in new stack
        -- Executing [s@ext-did:4] Set("IAX2/my-user-12763", "__CALLINGPRES_SV=allowed_not_screened") in new stack
        -- Executing [s@ext-did:5] SetCallerPres("IAX2/my-user-12763", "allowed_not_screened") in new stack
        -- Executing [s@ext-did:6] Goto("IAX2/my-user-12763", "app-blackhole|hangup|1") in new stack
        -- Goto (app-blackhole,hangup,1)
        -- Executing [hangup@app-blackhole:1] NoOp("IAX2/my-user-12763", "Blackhole Dest: Hangup") in new stack
        -- Executing [hangup@app-blackhole:2] Hangup("IAX2/my-user-12763", "") in new stack
      == Spawn extension (app-blackhole, hangup, 2) exited non-zero on 'IAX2/my-user-12763'
        -- Hungup 'IAX2/my-user-12763'
    
    in server 2:
    Code:
     -- Executing [7711@from-internal:1] Macro("SIP/113-b7d26740", "user-callerid|SKIPTTL|") i                                                                n new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/113-b7d26740", "AMPUSER=113") in new stac                                                                k
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/113-b7d26740", "0?report") in new stac                                                                k
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/113-b7d26740", "1|Set|REALCALLERIDNUM=                                                                113") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/113-b7d26740", "AMPUSER=113") in new stac                                                                k
        -- Executing [s@macro-user-callerid:5] Set("SIP/113-b7d26740", "AMPUSERCIDNAME=Goudarzi")                                                                 in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/113-b7d26740", "0?report") in new stac                                                                k
        -- Executing [s@macro-user-callerid:7] Set("SIP/113-b7d26740", "AMPUSERCID=113") in new s                                                                tack
        -- Executing [s@macro-user-callerid:8] Set("SIP/113-b7d26740", "CALLERID(all)="Goudarzi"                                                                 <113>") in new stack
        -- Executing [s@macro-user-callerid:9] ExecIf("SIP/113-b7d26740", "0|Set|CHANNEL(language                                                                )=") in new stack
        -- Executing [s@macro-user-callerid:10] GotoIf("SIP/113-b7d26740", "1?continue") in new s                                                                tack
        -- Goto (macro-user-callerid,s,19)
        -- Executing [s@macro-user-callerid:19] NoOp("SIP/113-b7d26740", "Using CallerID "Goudarz                                                                i" <113>") in new stack
        -- Executing [7711@from-internal:2] Set("SIP/113-b7d26740", "_NODEST=") in new stack
        -- Executing [7711@from-internal:3] Macro("SIP/113-b7d26740", "record-enable|113|OUT|") i                                                                n new stack
        -- Executing [s@macro-record-enable:1] GotoIf("SIP/113-b7d26740", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] AGI("SIP/113-b7d26740", "recordingcheck|20100411-1                                                                64124|1270987884.82") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
      recordingcheck|20100411-164124|1270987884.82: Outbound recording not enabled
        -- AGI Script recordingcheck completed, returning 0
        -- Executing [s@macro-record-enable:5] MacroExit("SIP/113-b7d26740", "") in new stack
        -- Executing [7711@from-internal:4] Macro("SIP/113-b7d26740", "dialout-trunk|2|711||") in                                                                 new stack
        -- Executing [s@macro-dialout-trunk:1] Set("SIP/113-b7d26740", "DIAL_TRUNK=2") in new sta                                                                ck
        -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/113-b7d26740", "0?sub-pincheck|s|1")                                                                 in new stack
        -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/113-b7d26740", "0?disabletrunk|1") in                                                                 new stack
        -- Executing [s@macro-dialout-trunk:4] Set("SIP/113-b7d26740", "DIAL_NUMBER=711") in new                                                                 stack
        -- Executing [s@macro-dialout-trunk:5] Set("SIP/113-b7d26740", "DIAL_TRUNK_OPTIONS=tr") i                                                                n new stack
        -- Executing [s@macro-dialout-trunk:6] Set("SIP/113-b7d26740", "OUTBOUND_GROUP=OUT_2") in                                                                 new stack
        -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/113-b7d26740", "1?nomax") in new stack
        -- Goto (macro-dialout-trunk,s,9)
        -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/113-b7d26740", "0?skipoutcid") in new                                                                 stack
        -- Executing [s@macro-dialout-trunk:10] Set("SIP/113-b7d26740", "DIAL_TRUNK_OPTIONS=") in                                                                 new stack
        -- Executing [s@macro-dialout-trunk:11] Macro("SIP/113-b7d26740", "outbound-callerid|2")                                                                 in new stack
        -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/113-b7d26740", "0|SetCallerPres|")                                                                 in new stack
        -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/113-b7d26740", "0|Set|REALCALLERID                                                                NUM=113") in new stack
        -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/113-b7d26740", "1?normcid") in new                                                                 stack
        -- Goto (macro-outbound-callerid,s,6)
        -- Executing [s@macro-outbound-callerid:6] Set("SIP/113-b7d26740", "USEROUTCID=") in new                                                                 stack
        -- Executing [s@macro-outbound-callerid:7] Set("SIP/113-b7d26740", "EMERGENCYCID=") in ne                                                                w stack
        -- Executing [s@macro-outbound-callerid:8] Set("SIP/113-b7d26740", "TRUNKOUTCID=") in new                                                                 stack
        -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/113-b7d26740", "1?trunkcid") in ne                                                                w stack
        -- Goto (macro-outbound-callerid,s,12)
        -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/113-b7d26740", "0|Set|CALLERID(al                                                                l)=") in new stack
        -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/113-b7d26740", "0|Set|CALLERID(al                                                                l)=") in new stack
        -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/113-b7d26740", "0|SetCallerPres|p                                                                rohib_passed_screen") in new stack
        -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/113-b7d26740", "1|AGI|fixlocalprefix"                                                                ) in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
      ==  fixlocalprefix: Dialpattern 7|. matched. 711 -> 11
        -- AGI Script fixlocalprefix completed, returning 0
        -- Executing [s@macro-dialout-trunk:13] Set("SIP/113-b7d26740", "OUTNUM=11") in new stack
        -- Executing [s@macro-dialout-trunk:14] Set("SIP/113-b7d26740", "custom=IAX2/your-tr                                                                unk") in new stack
        -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/113-b7d26740", "0|Set|DIAL_TRUNK_OPTI                                                                ONS=M(setmusic^)") in new stack
        -- Executing [s@macro-dialout-trunk:16] Macro("SIP/113-b7d26740", "dialout-trunk-predial-                                                                hook|") in new stack
        -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/113-b7d26740", "") in                                                                 new stack
        -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/113-b7d26740", "0?bypass|1") in new s                                                                tack
        -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/113-b7d26740", "0?customtrunk") in ne                                                                w stack
        -- Executing [s@macro-dialout-trunk:19] Dial("SIP/113-b7d26740", "IAX2/your-trunk/11                                                                |300|") in new stack
        -- Called your-trunk/11
        -- Call accepted by 192.168.200.234 (format ulaw)
        -- Format for call is ulaw
        -- Hungup 'IAX2/your-trunk-16385'
        -- No one is available to answer at this time (1:0/0/0)
        -- Executing [s@macro-dialout-trunk:20] Goto("SIP/113-b7d26740", "s-NOANSWER|1") in new s                                                                tack
        -- Goto (macro-dialout-trunk,s-NOANSWER,1)
        -- Executing [s-NOANSWER@macro-dialout-trunk:1] NoOp("SIP/113-b7d26740", "Dial failed due                                                                 to trunk reporting NOANSWER - giving up") in new stack
        -- Executing [s-NOANSWER@macro-dialout-trunk:2] PlayTones("SIP/113-b7d26740", "congestion                                                                ") in new stack
        -- Executing [s-NOANSWER@macro-dialout-trunk:3] Congestion("SIP/113-b7d26740", "20") in n                                                                ew stack
      == Spawn extension (macro-dialout-trunk, s-NOANSWER, 3) exited non-zero on 'SIP/113-b7d2674                                                                0' in macro 'dialout-trunk'
      == Spawn extension (from-internal, 7711, 4) exited non-zero on 'SIP/113-b7d26740'
        -- Executing [h@macro-dialout-trunk:1] Macro("SIP/113-b7d26740", "hangupcall|") in new st                                                                ack
        -- Executing [s@macro-hangupcall:1] GotoIf("SIP/113-b7d26740", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,4)
        -- Executing [s@macro-hangupcall:4] GotoIf("SIP/113-b7d26740", "1?skipblkvm") in new stac                                                                k
        -- Goto (macro-hangupcall,s,7)
        -- Executing [s@macro-hangupcall:7] GotoIf("SIP/113-b7d26740", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,9)
        -- Executing [s@macro-hangupcall:9] Hangup("SIP/113-b7d26740", "") in new stack
      == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/113-b7d26740' in macro                                                                 'hangupcall'
      == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/113-b7d26740'
    [code]
    
    any suggestion?
     

Share This Page