BRI can not make a call out and accept calls

upper_hua
Joined: Tue 22 of May, 2012

BRI can not make a call out and accept calls

Posted:Tue 22 of May, 2012 (07:07 UTC)
I have a BRI card,now "Pri show spans" is up,But I can noy make calls out and receive calls.My carrier tod me I need use a device compatiable with
NI2 .So I change the switchtype=euroisdn to switchtype=national.But everything is still all the same.the following are the logs:

Incoming logs
Making new call for cref 1
Received message for call 0x8d4e210 on 0x8d14468 TEI/SAPI 73/0, call->pri is 0x8d108b8 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
< Protocol Discriminator: Q.931 (8)  len=63
< TEI=73 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: SETUP (5)
< [04 03 80 90 a2]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: Speech (0)
<                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
<                                User information layer 1: u-Law (34)
< [18 01 88]
< Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Exclusive  Dchan: 0
<                       ChanSel: No channel selected
<                     ]
< [34 01 40]
< Signal (len=03): Signal Alerting on - pattern 0 (64)
< [3b 02 f0 80]
< [6c 02 11 a3]
< Calling Number (len= 4) [ Ext: 0  TON: International Number (1)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163
<                           Presentation: Presentation prohibited of network provided number (35)  '' ]
< [70 08 c1 33 32 32 34 30 38 33]
< Called Number (len=10) [ Ext: 1  TON: Subscriber Number (4)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1
< [95]
< Locking Shift (len=01): Requested codeset 5
< [2a 1b 80 8d 0c 4f 55 54 53 49 44 45 20 43 41 4c 4c 80 01 08 80 01 14 80 01 14 80 01 14]
-- Making new call for cref 1
Received message for call 0xb7401ef0 on 0x8d14468 TEI/SAPI 73/0, call->pri is 0x8d108b8 TEI/SAPI 127/63
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 52 (cs0, Signal)
-- Processing IE 59 (cs0, Unknown Information Element)
!! Unknown IE 59 (cs0, Unknown Information Element)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
-- Processing IE 42 (cs5, Unknown Information Element)
!! Unknown IE 42 (cs5, Unknown Information Element)
q931.c:6774 post_handle_q931_message: Call 1 enters state 6 (Call Present).  Hold state: Idle
q931.c:4426 q931_call_proceeding: Call 1 enters state 9 (Incoming Call Proceeding).  Hold state: Idle
> Protocol Discriminator: Q.931 (8)  len=7
> TEI=127 Call Ref: len= 1 (reference 1/0x1) (Sent to originator)
> Message Type: CALL PROCEEDING (2)
> [18 01 8a]
> Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Exclusive  Dchan: 0
>                       ChanSel: B2 channel
>                     ]
    -- Accepting call from '' to '3224083' on channel 0/2, span 1
    -- Executing [3224083@from-zaptel:1] Set("DAHDI/2-1", "DID=3224083") in new stack
    -- Executing [3224083@from-zaptel:2] Goto("DAHDI/2-1", "s,1") in new stack
    -- Goto (from-zaptel,s,1)
    -- Executing [s@from-zaptel:1] NoOp("DAHDI/2-1", "Entering from-dahdi with DID == 3224083") in new stack
    -- Executing [s@from-zaptel:2] Ringing("DAHDI/2-1", "") in new stack
q931.c:4454 q931_alerting: Call 1 enters state 7 (Call Received).  Hold state: Idle
> Protocol Discriminator: Q.931 (8)  len=8
> TEI=127 Call Ref: len= 1 (reference 1/0x1) (Sent to originator)
> Message Type: ALERTING (1)
> [1e 02 81 88]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Private network serving
>                               Ext: 1  Progress Description: Inband information or appropriate pattern now availa
    -- Executing [s@from-zaptel:3] Set("DAHDI/2-1", "DID=3224083") in new stack
    -- Executing [s@from-zaptel:4] NoOp("DAHDI/2-1", "DID is now 3224083") in new stack
    -- Executing [s@from-zaptel:5] GotoIf("DAHDI/2-1", "1?dahdiok:checkzap") in new stack
    -- Goto (from-zaptel,s,9)
    -- Executing [s@from-zaptel:9] NoOp("DAHDI/2-1", "Is a DAHDi Channel") in new stack
    -- Executing [s@from-zaptel:10] Set("DAHDI/2-1", "CHAN=2-1") in new stack
    -- Executing [s@from-zaptel:11] Set("DAHDI/2-1", "CHAN=2") in new stack
    -- Executing [s@from-zaptel:12] Macro("DAHDI/2-1", "from-dahdi-2,3224083,1") in new stack
    -- Executing [s@from-zaptel:13] NoOp("DAHDI/2-1", "Returned from Macro from-dahdi-2") in new stack
    -- Executing [s@from-zaptel:14] Goto("DAHDI/2-1", "from-pstn,3224083,1") in new stack
    -- Goto (from-pstn,3224083,1)
    -- Executing [3224083@from-pstn:1] Set("DAHDI/2-1", "__FROM_DID=3224083") in new stack
    -- Executing [3224083@from-pstn:2] ExecIf("DAHDI/2-1", "1 ?Set(CALLERID(name)=)") in new stack
    -- Executing [3224083@from-pstn:3] Set("DAHDI/2-1", "__CALLINGPRES_SV=prohib") in new stack
    -- Executing [3224083@from-pstn:4] Set("DAHDI/2-1", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [3224083@from-pstn:5] Goto("DAHDI/2-1", "from-did-direct,301,1") in new stack
    -- Goto (from-did-direct,301,1)
    -- Executing [301@from-did-direct:1] GotoIf("DAHDI/2-1", "0?ext-local,301,1") in new stack
    -- Executing [301@from-did-direct:2] Macro("DAHDI/2-1", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("DAHDI/2-1", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/2-1", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/2-1", "1?Set(REALCALLERIDNUM=)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("DAHDI/2-1", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("DAHDI/2-1", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/2-1", "1?report") in new stack
    -- Goto (macro-user-callerid,s,11)
    -- Executing [s@macro-user-callerid:11] GotoIf("DAHDI/2-1", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:12] Set("DAHDI/2-1", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("DAHDI/2-1", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,24)
    -- Executing [s@macro-user-callerid:24] Set("DAHDI/2-1", "CALLERID(number)=") in new stack
    -- Executing [s@macro-user-callerid:25] Set("DAHDI/2-1", "CALLERID(name)=") in new stack
    -- Executing [301@from-did-direct:3] Set("DAHDI/2-1", "__EXTTOCALL=301") in new stack
    -- Executing [301@from-did-direct:4] Set("DAHDI/2-1", "__PICKUPMARK=301") in new stack
    -- Executing [301@from-did-direct:5] Macro("DAHDI/2-1", "blkvm-setifempty,") in new stack
    -- Executing [s@macro-blkvm-setifempty:1] GotoIf("DAHDI/2-1", "1?init") in new stack
    -- Goto (macro-blkvm-setifempty,s,4)
    -- Executing [s@macro-blkvm-setifempty:4] Set("DAHDI/2-1", "__BLKVM_CHANNEL=DAHDI/2-1") in new stack
    -- Executing [s@macro-blkvm-setifempty:5] Set("DAHDI/2-1", "SHARED(BLKVM,DAHDI/2-1)=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:6] Set("DAHDI/2-1", "GOSUB_RETVAL=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:7] MacroExit("DAHDI/2-1", "") in new stack
    -- Executing [301@from-did-direct:6] GotoIf("DAHDI/2-1", "1?skipov") in new stack
    -- Goto (from-did-direct,301,9)
    -- Executing [301@from-did-direct:9] Set("DAHDI/2-1", "RRNODEST=") in new stack
    -- Executing [301@from-did-direct:10] Set("DAHDI/2-1", "__NODEST=301") in new stack
    -- Executing [301@from-did-direct:11] GosubIf("DAHDI/2-1", "0?sub-fmsetcid,s,1") in new stack
    -- Executing [301@from-did-direct:12] Set("DAHDI/2-1", "RecordMethod=Group") in new stack
    -- Executing [301@from-did-direct:13] Macro("DAHDI/2-1", "record-enable,301-301,Group") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("DAHDI/2-1", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("DAHDI/2-1", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("DAHDI/2-1", "1?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,6)
    -- Executing [s@macro-record-enable:6] Set("DAHDI/2-1", "LOOPCNT=2") in new stack
    -- Executing [s@macro-record-enable:7] Set("DAHDI/2-1", "ITER=1") in new stack
    -- Executing [s@macro-record-enable:8] GotoIf("DAHDI/2-1", "1?continue") in new stack
    -- Goto (macro-record-enable,s,12)
    -- Executing [s@macro-record-enable:12] Set("DAHDI/2-1", "ITER=2") in new stack
    -- Executing [s@macro-record-enable:13] GotoIf("DAHDI/2-1", "1?begin") in new stack
    -- Goto (macro-record-enable,s,8)
    -- Executing [s@macro-record-enable:8] GotoIf("DAHDI/2-1", "1?continue") in new stack
    -- Goto (macro-record-enable,s,12)
    -- Executing [s@macro-record-enable:12] Set("DAHDI/2-1", "ITER=3") in new stack
    -- Executing [s@macro-record-enable:13] GotoIf("DAHDI/2-1", "0?begin") in new stack
    -- Executing [s@macro-record-enable:14] GotoIf("DAHDI/2-1", "0?IN") in new stack
    -- Executing [s@macro-record-enable:15] ExecIf("DAHDI/2-1", "1?MacroExit()") in new stack
    -- Executing [301@from-did-direct:14] Set("DAHDI/2-1", "RingGroupMethod=ringallv2") in new stack
    -- Executing [301@from-did-direct:15] Set("DAHDI/2-1", "_FMGRP=301") in new stack
    -- Executing [301@from-did-direct:16] GotoIf("DAHDI/2-1", "0?doconfirm") in new stack
    -- Executing [301@from-did-direct:17] Macro("DAHDI/2-1", "dial,20,tr,301") in new stack
    -- Executing [s@macro-dial:1] GotoIf("DAHDI/2-1", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("DAHDI/2-1", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
       > dialparties.agi: USE_CONFIRMATION:  'FALSE'
       > dialparties.agi: RINGGROUP_INDEX:   ''
 dialparties.agi: Methodology of ring is  'ringallv2'
    -- dialparties.agi: Added extension 301 to extension map
       > dialparties.agi: got fmgrp_prering: 2, fmgrp_grptime: 20
       > dialparties.agi: fmgrp_totalprering: 22
       > dialparties.agi: found extension in pre-ring and array
       > dialparties.agi: ringallv2 ring times: REALPRERING: 22, PRERING: 2
       > dialparties.agi: Extension 301 has call screening off
    -- dialparties.agi: Extension 301 cf is disabled
    -- dialparties.agi: Extension 301 do not disturb is disabled
       > dialparties.agi: extnum 301 has:  cw: 1; hascfb: 0 [] hascfu: 0 []
    -- dialparties.agi: DbDel CALLTRACE/301 - Caller ID is not defined
    -- dialparties.agi: Filtered ARG3: 301
       > dialparties.agi: NODEST: 301 adding M(auto-blkvm) to dialopts: trM(auto-blkvm)
       > dialparties.agi: NODEST: 301 blkvm enabled macro already in dialopts: trM(auto-blkvm)
    -- <DAHDI/2-1>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("DAHDI/2-1", "SIP/301,22,trM(auto-blkvm)") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called 301
    -- SIP/301-00000027 is ringing
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=73 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 d1]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local
<                  Ext: 1  Cause: Invalid call reference value (81), message (e.g. parameter out o
Received message for call 0xb7401ef0 on 0x8d14468 TEI/SAPI 73/0, call->pri is 0x8d108b8 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931.c:6986 post_handle_q931_message: Call 1 enters state 0 (Null).  Hold state: Idle
    -- Channel 0/2, span 1 got hangup, cause 81
  == Spawn extension (macro-dial, s, 7) exited non-zero on 'DAHDI/2-1' in macro 'dial'
  == Spawn extension (from-did-direct, 301, 17) exited non-zero on 'DAHDI/2-1'
    -- Executing [h@from-did-direct:1] Macro("DAHDI/2-1", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/2-1", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] Hangup("DAHDI/2-1", "") in new stack
  == Spawn extension (macro-hangupcall, s, 3) exited non-zero on 'DAHDI/2-1' in macro 'hangupcall'
  == Spawn extension (from-did-direct, h, 1) exited non-zero on 'DAHDI/2-1'
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
    -- Hungup 'DAHDI/2-1'
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=73 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 d1]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local
<                  Ext: 1  Cause: Invalid call reference value (81), message (e.g. parameter out o
-- Making new call for cref 1
Received message for call 0xb74009c8 on 0x8d14468 TEI/SAPI 73/0, call->pri is 0x8d108b8 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
< Protocol Discriminator: Q.931 (8)  len=63
< TEI=73 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: SETUP (5)
< [04 03 80 90 a2]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: Speech (0)
<                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
<                                User information layer 1: u-Law (34)
< [18 01 88]
< Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Exclusive  Dchan: 0
<                       ChanSel: No channel selected
<                     ]
< [34 01 40]
< Signal (len=03): Signal Alerting on - pattern 0 (64)
< [3b 02 f0 80]
< [6c 02 11 a3]
< Calling Number (len= 4) [ Ext: 0  TON: International Number (1)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163
<                           Presentation: Presentation prohibited of network provided number (35)  '' ]
< [70 08 c1 33 32 32 34 30 38 33]
< Called Number (len=10) [ Ext: 1  TON: Subscriber Number (4)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1
< [95]
< Locking Shift (len=01): Requested codeset 5
< [2a 1b 80 8d 0c 4f 55 54 53 49 44 45 20 43 41 4c 4c 80 01 08 80 01 14 80 01 14 80 01 14]
-- Making new call for cref 1
Received message for call 0xb7403408 on 0x8d14468 TEI/SAPI 73/0, call->pri is 0x8d108b8 TEI/SAPI 127/63
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 52 (cs0, Signal)
-- Processing IE 59 (cs0, Unknown Information Element)
!! Unknown IE 59 (cs0, Unknown Information Element)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
-- Processing IE 42 (cs5, Unknown Information Element)
!! Unknown IE 42 (cs5, Unknown Information Element)
q931.c:6774 post_handle_q931_message: Call 1 enters state 6 (Call Present).  Hold state: Idle
q931.c:4426 q931_call_proceeding: Call 1 enters state 9 (Incoming Call Proceeding).  Hold state: Idle
> Protocol Discriminator: Q.931 (8)  len=7
> TEI=127 Call Ref: len= 1 (reference 1/0x1) (Sent to originator)
> Message Type: CALL PROCEEDING (2)
> [18 01 8a]
> Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Exclusive  Dchan: 0
>                       ChanSel: B2 channel
>                     ]
    -- Accepting call from '' to '3224083' on channel 0/2, span 1
    -- Executing [3224083@from-zaptel:1] Set("DAHDI/2-1", "DID=3224083") in new stack
    -- Executing [3224083@from-zaptel:2] Goto("DAHDI/2-1", "s,1") in new stack
    -- Goto (from-zaptel,s,1)
    -- Executing [s@from-zaptel:1] NoOp("DAHDI/2-1", "Entering from-dahdi with DID == 3224083") in new stack
    -- Executing [s@from-zaptel:2] Ringing("DAHDI/2-1", "") in new stack
q931.c:4454 q931_alerting: Call 1 enters state 7 (Call Received).  Hold state: Idle
> Protocol Discriminator: Q.931 (8)  len=8
> TEI=127 Call Ref: len= 1 (reference 1/0x1) (Sent to originator)
> Message Type: ALERTING (1)
> [1e 02 81 88]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Private network serving
>                               Ext: 1  Progress Description: Inband information or appropriate pattern now availa
    -- Executing [s@from-zaptel:3] Set("DAHDI/2-1", "DID=3224083") in new stack
    -- Executing [s@from-zaptel:4] NoOp("DAHDI/2-1", "DID is now 3224083") in new stack
    -- Executing [s@from-zaptel:5] GotoIf("DAHDI/2-1", "1?dahdiok:checkzap") in new stack
    -- Goto (from-zaptel,s,9)
    -- Executing [s@from-zaptel:9] NoOp("DAHDI/2-1", "Is a DAHDi Channel") in new stack
    -- Executing [s@from-zaptel:10] Set("DAHDI/2-1", "CHAN=2-1") in new stack
    -- Executing [s@from-zaptel:11] Set("DAHDI/2-1", "CHAN=2") in new stack
    -- Executing [s@from-zaptel:12] Macro("DAHDI/2-1", "from-dahdi-2,3224083,1") in new stack
    -- Executing [s@from-zaptel:13] NoOp("DAHDI/2-1", "Returned from Macro from-dahdi-2") in new stack
    -- Executing [s@from-zaptel:14] Goto("DAHDI/2-1", "from-pstn,3224083,1") in new stack
    -- Goto (from-pstn,3224083,1)
    -- Executing [3224083@from-pstn:1] Set("DAHDI/2-1", "__FROM_DID=3224083") in new stack
    -- Executing [3224083@from-pstn:2] ExecIf("DAHDI/2-1", "1 ?Set(CALLERID(name)=)") in new stack
    -- Executing [3224083@from-pstn:3] Set("DAHDI/2-1", "__CALLINGPRES_SV=prohib") in new stack
    -- Executing [3224083@from-pstn:4] Set("DAHDI/2-1", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [3224083@from-pstn:5] Goto("DAHDI/2-1", "from-did-direct,301,1") in new stack
    -- Goto (from-did-direct,301,1)
    -- Executing [301@from-did-direct:1] GotoIf("DAHDI/2-1", "0?ext-local,301,1") in new stack
    -- Executing [301@from-did-direct:2] Macro("DAHDI/2-1", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("DAHDI/2-1", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/2-1", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/2-1", "1?Set(REALCALLERIDNUM=)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("DAHDI/2-1", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("DAHDI/2-1", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/2-1", "1?report") in new stack
    -- Goto (macro-user-callerid,s,11)
    -- Executing [s@macro-user-callerid:11] GotoIf("DAHDI/2-1", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:12] Set("DAHDI/2-1", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("DAHDI/2-1", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,24)
    -- Executing [s@macro-user-callerid:24] Set("DAHDI/2-1", "CALLERID(number)=") in new stack
    -- Executing [s@macro-user-callerid:25] Set("DAHDI/2-1", "CALLERID(name)=") in new stack
    -- Executing [301@from-did-direct:3] Set("DAHDI/2-1", "__EXTTOCALL=301") in new stack
    -- Executing [301@from-did-direct:4] Set("DAHDI/2-1", "__PICKUPMARK=301") in new stack
    -- Executing [301@from-did-direct:5] Macro("DAHDI/2-1", "blkvm-setifempty,") in new stack
    -- Executing [s@macro-blkvm-setifempty:1] GotoIf("DAHDI/2-1", "1?init") in new stack
    -- Goto (macro-blkvm-setifempty,s,4)
    -- Executing [s@macro-blkvm-setifempty:4] Set("DAHDI/2-1", "__BLKVM_CHANNEL=DAHDI/2-1") in new stack
    -- Executing [s@macro-blkvm-setifempty:5] Set("DAHDI/2-1", "SHARED(BLKVM,DAHDI/2-1)=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:6] Set("DAHDI/2-1", "GOSUB_RETVAL=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:7] MacroExit("DAHDI/2-1", "") in new stack
    -- Executing [301@from-did-direct:6] GotoIf("DAHDI/2-1", "1?skipov") in new stack
    -- Goto (from-did-direct,301,9)
    -- Executing [301@from-did-direct:9] Set("DAHDI/2-1", "RRNODEST=") in new stack
    -- Executing [301@from-did-direct:10] Set("DAHDI/2-1", "__NODEST=301") in new stack
    -- Executing [301@from-did-direct:11] GosubIf("DAHDI/2-1", "0?sub-fmsetcid,s,1") in new stack
    -- Executing [301@from-did-direct:12] Set("DAHDI/2-1", "RecordMethod=Group") in new stack
    -- Executing [301@from-did-direct:13] Macro("DAHDI/2-1", "record-enable,301-301,Group") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("DAHDI/2-1", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("DAHDI/2-1", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("DAHDI/2-1", "1?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,6)
    -- Executing [s@macro-record-enable:6] Set("DAHDI/2-1", "LOOPCNT=2") in new stack
    -- Executing [s@macro-record-enable:7] Set("DAHDI/2-1", "ITER=1") in new stack
    -- Executing [s@macro-record-enable:8] GotoIf("DAHDI/2-1", "1?continue") in new stack
    -- Goto (macro-record-enable,s,12)
    -- Executing [s@macro-record-enable:12] Set("DAHDI/2-1", "ITER=2") in new stack
    -- Executing [s@macro-record-enable:13] GotoIf("DAHDI/2-1", "1?begin") in new stack
    -- Goto (macro-record-enable,s,8)
    -- Executing [s@macro-record-enable:8] GotoIf("DAHDI/2-1", "1?continue") in new stack
    -- Goto (macro-record-enable,s,12)
    -- Executing [s@macro-record-enable:12] Set("DAHDI/2-1", "ITER=3") in new stack
    -- Executing [s@macro-record-enable:13] GotoIf("DAHDI/2-1", "0?begin") in new stack
    -- Executing [s@macro-record-enable:14] GotoIf("DAHDI/2-1", "0?IN") in new stack
    -- Executing [s@macro-record-enable:15] ExecIf("DAHDI/2-1", "1?MacroExit()") in new stack
    -- Executing [301@from-did-direct:14] Set("DAHDI/2-1", "RingGroupMethod=ringallv2") in new stack
    -- Executing [301@from-did-direct:15] Set("DAHDI/2-1", "_FMGRP=301") in new stack
    -- Executing [301@from-did-direct:16] GotoIf("DAHDI/2-1", "0?doconfirm") in new stack
    -- Executing [301@from-did-direct:17] Macro("DAHDI/2-1", "dial,20,tr,301") in new stack
    -- Executing [s@macro-dial:1] GotoIf("DAHDI/2-1", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("DAHDI/2-1", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
       > dialparties.agi: USE_CONFIRMATION:  'FALSE'
       > dialparties.agi: RINGGROUP_INDEX:   ''
 dialparties.agi: Methodology of ring is  'ringallv2'
    -- dialparties.agi: Added extension 301 to extension map
       > dialparties.agi: got fmgrp_prering: 2, fmgrp_grptime: 20
       > dialparties.agi: fmgrp_totalprering: 22
       > dialparties.agi: found extension in pre-ring and array
       > dialparties.agi: ringallv2 ring times: REALPRERING: 22, PRERING: 2
       > dialparties.agi: Extension 301 has call screening off
    -- dialparties.agi: Extension 301 cf is disabled
    -- dialparties.agi: Extension 301 do not disturb is disabled
       > dialparties.agi: extnum 301 has:  cw: 1; hascfb: 0 [] hascfu: 0 []
    -- dialparties.agi: DbDel CALLTRACE/301 - Caller ID is not defined
    -- dialparties.agi: Filtered ARG3: 301
       > dialparties.agi: NODEST: 301 adding M(auto-blkvm) to dialopts: trM(auto-blkvm)
       > dialparties.agi: NODEST: 301 blkvm enabled macro already in dialopts: trM(auto-blkvm)
    -- <DAHDI/2-1>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("DAHDI/2-1", "SIP/301,22,trM(auto-blkvm)") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called 301
    -- SIP/301-00000028 is ringing
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=73 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 d1]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local
<                  Ext: 1  Cause: Invalid call reference value (81), message (e.g. parameter out o
Received message for call 0xb7403408 on 0x8d14468 TEI/SAPI 73/0, call->pri is 0x8d108b8 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931.c:6986 post_handle_q931_message: Call 1 enters state 0 (Null).  Hold state: Idle
    -- Channel 0/2, span 1 got hangup, cause 81
  == Spawn extension (macro-dial, s, 7) exited non-zero on 'DAHDI/2-1' in macro 'dial'
  == Spawn extension (from-did-direct, 301, 17) exited non-zero on 'DAHDI/2-1'
    -- Executing [h@from-did-direct:1] Macro("DAHDI/2-1", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/2-1", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] Hangup("DAHDI/2-1", "") in new stack
  == Spawn extension (macro-hangupcall, s, 3) exited non-zero on 'DAHDI/2-1' in macro 'hangupcall'
  == Spawn extension (from-did-direct, h, 1) exited non-zero on 'DAHDI/2-1'
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
    -- Hungup 'DAHDI/2-1'
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=73 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 d1]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving th
<                  Ext: 1  Cause: Invalid call reference value (81), message (e.g. paramet
-- Making new call for cref 1
Received message for call 0xb74011f0 on 0x8d14468 TEI/SAPI 73/0, call->pri is 0x8d108b8 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
bahamas*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
[root@bahamas sbin]#
[root@bahamas sbin]#
[root@bahamas sbin]#
[root@bahamas sbin]#
[root@bahamas sbin]# cd &etc
[1] 7820
-bash: etc: command not found
[1]+  Done                    cd
[root@bahamas sbin]# cd /etc
[root@bahamas etc]# cd asterisk
[root@bahamas asterisk]#
[root@bahamas asterisk]#
[root@bahamas asterisk]#
[root@bahamas asterisk]# vi extensions.conf
[root@bahamas asterisk]# vi extensions.conf
[root@bahamas asterisk]#
[root@bahamas asterisk]#
[root@bahamas asterisk]#
[root@bahamas asterisk]#
[root@bahamas asterisk]#
[root@bahamas asterisk]# service asterisk stop
Stopping safe_asterisk:                                    [  OK  ]
Shutting down asterisk:                                    [  OK  ]
[root@bahamas asterisk]#
[root@bahamas asterisk]#
[root@bahamas asterisk]# service asterisk start
Starting asterisk:                                         [  OK  ]
[root@bahamas asterisk]#
[root@bahamas asterisk]#
[root@bahamas asterisk]#
[root@bahamas asterisk]# asterisk -vvvvvvvvvvvvr
Asterisk 1.6.1.18, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
Connected to Asterisk 1.6.1.18 currently running on bahamas (pid = 7885)
Verbosity was 3 and is now 12
bahamas*CLI>
bahamas*CLI>
bahamas*CLI>
bahamas*CLI>
bahamas*CLI> pri set debug span 1
No such command 'pri set debug span 1' (type 'help pri set' for other possible commands)
bahamas*CLI>
bahamas*CLI>
bahamas*CLI>
bahamas*CLI> pri debug span 1
Enabled debugging on span 1
bahamas*CLI>
bahamas*CLI>
bahamas*CLI>
bahamas*CLI>
Received MDL message
Sending TEI management message 5, TEI=74
Received MDL message
Sending TEI management message 5, TEI=74
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [00376873339@from-internal:1] Dial("SIP/CN-SIP-00000000", "dahdi/g0/00376873339") in new stack
-- Making new call for cref 32769
    -- Requested transfer capability: 0x00 - SPEECH
Adding facility ie contents to send in SETUP message:
ASN.1 dump
  Context Specific/C [1 0x01] <A1> Len:6 <06>
    Integer(2 0x02) <02> Len:1 <01>
      <01> - "~"
    Integer(2 0x02) <02> Len:1 <01>
      <01> - "~"
ASN.1 end
INVOKE Component Context Specific/C [1 0x01]
  invokeId Integer(2 0x02) = 1 0x0001
  operationValue Integer(2 0x02) = 1 0x0001
  operationValue = ROSE_DMS100_RLT_OperationInd
Changing from state 4 to 5
> Protocol Discriminator: Q.931 (8)  len=58
> TEI=127 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
> Message Type: SETUP (5)
> [04 03 80 90 a3]
> Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: Speech (0)
>                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
>                                User information layer 1: A-Law (35)
> [18 01 81]
> Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Preferred  Dchan: 0
>                       ChanSel: B1 channel
>                     ]
> [1c 0a 11 be a1 06 02 01 01 02 01 01]
> Facility (len=12, codeset=0) [ 0x11, 0xBE, 0xA1, 0x06, 0x02, 0x01, 0x01, 0x02, 0x01, 0x01 ]
> [28 0e b1 54 72 75 6e 6b 5f 42 61 68 61 6d 65 73]
> Display (len=14) Charset: 31 [ Trunk_Bahames ]
> [6c 02 08 83]
> Calling Number (len= 4) [ Ext: 0  TON: Unknown Number Type (0)  NPI: National Standard Numbering Plan (8)
>                           Presentation: Presentation allowed of network provided number (3)  '' ]
> [70 0c 80 30 30 33 37 36 38 37 33 33 33 39]
> Called Number (len=14) [ Ext: 1  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)  '00376873339' ]
q931.c:4861 q931_setup: Call 32769 enters state 1 (Call Initiated).  Hold state: Idle
    -- Called g0/00376873339
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=74 Call Ref: len= 1 (reference 1/0x1) (Sent to originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 b2]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local user (2)
<                  Ext: 1  Cause: Facility not subscribed (50), or Option not Available (3) ]
Received message for call 0x9f122a0 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931.c:6986 post_handle_q931_message: Call 32769 enters state 0 (Null).  Hold state: Idle
    -- Channel 0/1, span 1 got hangup, cause 50
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
    -- Hungup 'DAHDI/1-1'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [00376873339@from-internal:2] Hangup("SIP/CN-SIP-00000000", "") in new stack
  == Spawn extension (from-internal, 00376873339, 2) exited non-zero on 'SIP/CN-SIP-00000000'
    -- Executing [h@from-internal:1] Hangup("SIP/CN-SIP-00000000", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/CN-SIP-00000000'
< Protocol Discriminator: Q.931 (8)  len=6
< TEI=74 Call Ref: len= 0 (reference -32769/0xFFFF7FFF) (Dummy)
< Message Type: INFORMATION (123)
< [32 01 c3]
< IE: Feature Request (len = 3)
Received message for call 0x9ef4394 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing IE 50 (cs0, Feature Request)
< Protocol Discriminator: Q.931 (8)  len=6
< TEI=74 Call Ref: len= 0 (reference -32769/0xFFFF7FFF) (Dummy)
< Message Type: INFORMATION (123)
< [32 01 83]
< IE: Feature Request (len = 3)
Received message for call 0x9ef4394 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing IE 50 (cs0, Feature Request)
bahamas*CLI>



outgoing logs

-- Making new call for cref 32770
Adding facility ie contents to send in SETUP message:
ASN.1 dump
  Context Specific/C [1 0x01] <A1> Len:6 <06>
    Integer(2 0x02) <02> Len:1 <01>
      <01> - "~"
    Integer(2 0x02) <02> Len:1 <01>
      <01> - "~"
ASN.1 end
INVOKE Component Context Specific/C [1 0x01]
  invokeId Integer(2 0x02) = 1 0x0001
  operationValue Integer(2 0x02) = 1 0x0001
  operationValue = ROSE_DMS100_RLT_OperationInd
> Protocol Discriminator: Q.931 (8)  len=58
> TEI=127 Call Ref: len= 1 (reference 2/0x2) (Sent from originator)
> Message Type: SETUP (5)
> [04 03 80 90 a3]
> Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: Speech (0)
>                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
>                                User information layer 1: A-Law (35)
> [18 01 81]
> Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Preferred  Dchan: 0
>                       ChanSel: B1 channel
>                     ]
> [1c 0a 11 be a1 06 02 01 01 02 01 01]
> Facility (len=12, codeset=0) [ 0x11, 0xBE, 0xA1, 0x06, 0x02, 0x01, 0x01, 0x02, 0x01, 0x01 ]
> [28 0e b1 54 72 75 6e 6b 5f 42 61 68 61 6d 65 73]
> Display (len=14) Charset: 31 [ Trunk_Bahames ]
> [6c 02 08 83]
> Calling Number (len= 4) [ Ext: 0  TON: Unknown Number Type (0)  NPI: National Standard Numbering Plan (8)
>                           Presentation: Presentation allowed of network provided number (3)  '' ]
> [70 0c 80 30 30 33 37 36 38 37 33 33 33 39]
> Called Number (len=14) [ Ext: 1  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)  '00376873339' ]
q931.c:4861 q931_setup: Call 32770 enters state 1 (Call Initiated).  Hold state: Idle
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=74 Call Ref: len= 1 (reference 2/0x2) (Sent to originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 b2]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local user (2)
<                  Ext: 1  Cause: Facility not subscribed (50), or Option not Available (3) ]
Received message for call 0xb7d7c340 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931.c:6986 post_handle_q931_message: Call 32770 enters state 0 (Null).  Hold state: Idle
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
< Protocol Discriminator: Q.931 (8)  len=63
< TEI=74 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: SETUP (5)
< [04 03 80 90 a2]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: Speech (0)
<                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
<                                User information layer 1: u-Law (34)
< [18 01 88]
< Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Exclusive  Dchan: 0
<                       ChanSel: No channel selected
<                     ]
< [34 01 40]
< Signal (len=03): Signal Alerting on - pattern 0 (64)
< [3b 02 f0 80]
!! < Unknown IE 59 (cs0, len = 4)
< [6c 02 11 a3]
< Calling Number (len= 4) [ Ext: 0  TON: International Number (1)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
<                           Presentation: Presentation prohibited of network provided number (35)  '' ]
< [70 08 c1 33 32 32 34 30 38 33]
< Called Number (len=10) [ Ext: 1  TON: Subscriber Number (4)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '3224083' ]
< [95]
< Locking Shift (len=01): Requested codeset 5
< [2a 1b 80 8d 0c 4f 55 54 53 49 44 45 20 43 41 4c 4c 80 01 08 80 01 14 80 01 14 80 01 14]
!! < Unknown IE 42 (cs5, len = 29)
-- Making new call for cref 1
Received message for call 0x9f163f0 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 52 (cs0, Signal)
-- Processing IE 59 (cs0, Unknown Information Element)
!! Unknown IE 59 (cs0, Unknown Information Element)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
-- Processing IE 42 (cs5, Unknown Information Element)
!! Unknown IE 42 (cs5, Unknown Information Element)
q931.c:6774 post_handle_q931_message: Call 1 enters state 6 (Call Present).  Hold state: Idle
q931.c:4426 q931_call_proceeding: Call 1 enters state 9 (Incoming Call Proceeding).  Hold state: Idle
> Protocol Discriminator: Q.931 (8)  len=7
> TEI=127 Call Ref: len= 1 (reference 1/0x1) (Sent to originator)
> Message Type: CALL PROCEEDING (2)
> [18 01 8a]
> Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Exclusive  Dchan: 0
>                       ChanSel: B2 channel
>                     ]
q931.c:4454 q931_alerting: Call 1 enters state 7 (Call Received).  Hold state: Idle
> Protocol Discriminator: Q.931 (8)  len=8
> TEI=127 Call Ref: len= 1 (reference 1/0x1) (Sent to originator)
> Message Type: ALERTING (1)
> [1e 02 81 88]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Inband information or appropriate pattern now available. (8) ]
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=74 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 d1]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local user (2)
<                  Ext: 1  Cause: Invalid call reference value (81), message (e.g. parameter out of range) (5) ]
Received message for call 0x9f163f0 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931.c:6986 post_handle_q931_message: Call 1 enters state 0 (Null).  Hold state: Idle
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=74 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 d1]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local user (2)
<                  Ext: 1  Cause: Invalid call reference value (81), message (e.g. parameter out of range) (5) ]
-- Making new call for cref 1
Received message for call 0x9f16560 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
< Protocol Discriminator: Q.931 (8)  len=63
< TEI=74 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: SETUP (5)
< [04 03 80 90 a2]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: Speech (0)
<                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
<                                User information layer 1: u-Law (34)
< [18 01 88]
< Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Exclusive  Dchan: 0
<                       ChanSel: No channel selected
<                     ]
< [34 01 40]
< Signal (len=03): Signal Alerting on - pattern 0 (64)
< [3b 02 f0 80]
!! < Unknown IE 59 (cs0, len = 4)
< [6c 02 11 a3]
< Calling Number (len= 4) [ Ext: 0  TON: International Number (1)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
<                           Presentation: Presentation prohibited of network provided number (35)  '' ]
< [70 08 c1 33 32 32 34 30 38 33]
< Called Number (len=10) [ Ext: 1  TON: Subscriber Number (4)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '3224083' ]
< [95]
< Locking Shift (len=01): Requested codeset 5
< [2a 1b 80 8d 0c 4f 55 54 53 49 44 45 20 43 41 4c 4c 80 01 08 80 01 14 80 01 14 80 01 14]
!! < Unknown IE 42 (cs5, len = 29)
-- Making new call for cref 1
Received message for call 0x9f0b5c0 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 52 (cs0, Signal)
-- Processing IE 59 (cs0, Unknown Information Element)
!! Unknown IE 59 (cs0, Unknown Information Element)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
-- Processing IE 42 (cs5, Unknown Information Element)
!! Unknown IE 42 (cs5, Unknown Information Element)
q931.c:6774 post_handle_q931_message: Call 1 enters state 6 (Call Present).  Hold state: Idle
q931.c:4426 q931_call_proceeding: Call 1 enters state 9 (Incoming Call Proceeding).  Hold state: Idle
> Protocol Discriminator: Q.931 (8)  len=7
> TEI=127 Call Ref: len= 1 (reference 1/0x1) (Sent to originator)
> Message Type: CALL PROCEEDING (2)
> [18 01 8a]
> Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Exclusive  Dchan: 0
>                       ChanSel: B2 channel
>                     ]
q931.c:4454 q931_alerting: Call 1 enters state 7 (Call Received).  Hold state: Idle
> Protocol Discriminator: Q.931 (8)  len=8
> TEI=127 Call Ref: len= 1 (reference 1/0x1) (Sent to originator)
> Message Type: ALERTING (1)
> [1e 02 81 88]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Inband information or appropriate pattern now available. (8) ]
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=74 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 d1]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local user (2)
<                  Ext: 1  Cause: Invalid call reference value (81), message (e.g. parameter out of range) (5) ]
Received message for call 0x9f0b5c0 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931.c:6986 post_handle_q931_message: Call 1 enters state 0 (Null).  Hold state: Idle
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=74 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 d1]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local user (2)
<                  Ext: 1  Cause: Invalid call reference value (81), message (e.g. parameter out of range) (5) ]
-- Making new call for cref 1
Received message for call 0x9f189d8 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
< Protocol Discriminator: Q.931 (8)  len=63
< TEI=74 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: SETUP (5)
< [04 03 80 90 a2]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: Speech (0)
<                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
<                                User information layer 1: u-Law (34)
< [18 01 88]
< Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Exclusive  Dchan: 0
<                       ChanSel: No channel selected
<                     ]
< [34 01 40]
< Signal (len=03): Signal Alerting on - pattern 0 (64)
< [3b 02 f0 80]
!! < Unknown IE 59 (cs0, len = 4)
< [6c 02 11 a3]
< Calling Number (len= 4) [ Ext: 0  TON: International Number (1)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
<                           Presentation: Presentation prohibited of network provided number (35)  '' ]
< [70 08 c1 33 32 32 34 30 38 33]
< Called Number (len=10) [ Ext: 1  TON: Subscriber Number (4)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '3224083' ]
< [95]
< Locking Shift (len=01): Requested codeset 5
< [2a 1b 80 8d 0c 4f 55 54 53 49 44 45 20 43 41 4c 4c 80 01 08 80 01 14 80 01 14 80 01 14]
!! < Unknown IE 42 (cs5, len = 29)
-- Making new call for cref 1
Received message for call 0x9f189d8 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 52 (cs0, Signal)
-- Processing IE 59 (cs0, Unknown Information Element)
!! Unknown IE 59 (cs0, Unknown Information Element)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
-- Processing IE 42 (cs5, Unknown Information Element)
!! Unknown IE 42 (cs5, Unknown Information Element)
q931.c:6774 post_handle_q931_message: Call 1 enters state 6 (Call Present).  Hold state: Idle
q931.c:4426 q931_call_proceeding: Call 1 enters state 9 (Incoming Call Proceeding).  Hold state: Idle
> Protocol Discriminator: Q.931 (8)  len=7
> TEI=127 Call Ref: len= 1 (reference 1/0x1) (Sent to originator)
> Message Type: CALL PROCEEDING (2)
> [18 01 8a]
> Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Exclusive  Dchan: 0
>                       ChanSel: B2 channel
>                     ]
q931.c:4454 q931_alerting: Call 1 enters state 7 (Call Received).  Hold state: Idle
> Protocol Discriminator: Q.931 (8)  len=8
> TEI=127 Call Ref: len= 1 (reference 1/0x1) (Sent to originator)
> Message Type: ALERTING (1)
> [1e 02 81 88]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Inband information or appropriate pattern now available. (8) ]
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=74 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 d1]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local user (2)
<                  Ext: 1  Cause: Invalid call reference value (81), message (e.g. parameter out of range) (5) ]
Received message for call 0x9f189d8 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931.c:6986 post_handle_q931_message: Call 1 enters state 0 (Null).  Hold state: Idle
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=74 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 d1]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local user (2)
<                  Ext: 1  Cause: Invalid call reference value (81), message (e.g. parameter out of range) (5) ]
-- Making new call for cref 1
Received message for call 0x9f189d8 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
-- Making new call for cref 32771
Adding facility ie contents to send in SETUP message:
ASN.1 dump
  Context Specific/C [1 0x01] <A1> Len:6 <06>
    Integer(2 0x02) <02> Len:1 <01>
      <01> - "~"
    Integer(2 0x02) <02> Len:1 <01>
      <01> - "~"
ASN.1 end
INVOKE Component Context Specific/C [1 0x01]
  invokeId Integer(2 0x02) = 1 0x0001
  operationValue Integer(2 0x02) = 1 0x0001
  operationValue = ROSE_DMS100_RLT_OperationInd
> Protocol Discriminator: Q.931 (8)  len=58
> TEI=127 Call Ref: len= 1 (reference 3/0x3) (Sent from originator)
> Message Type: SETUP (5)
> [04 03 80 90 a3]
> Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: Speech (0)
>                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
>                                User information layer 1: A-Law (35)
> [18 01 81]
> Channel ID (len= 3) [ Ext: 1  IntID: Implicit  BRI  Spare: 0  Preferred  Dchan: 0
>                       ChanSel: B1 channel
>                     ]
> [1c 0a 11 be a1 06 02 01 01 02 01 01]
> Facility (len=12, codeset=0) [ 0x11, 0xBE, 0xA1, 0x06, 0x02, 0x01, 0x01, 0x02, 0x01, 0x01 ]
> [28 0e b1 54 72 75 6e 6b 5f 42 61 68 61 6d 65 73]
> Display (len=14) Charset: 31 [ Trunk_Bahames ]
> [6c 02 08 83]
> Calling Number (len= 4) [ Ext: 0  TON: Unknown Number Type (0)  NPI: National Standard Numbering Plan (8)
>                           Presentation: Presentation allowed of network provided number (3)  '' ]
> [70 0c 80 30 30 33 37 36 38 37 33 33 33 39]
> Called Number (len=14) [ Ext: 1  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)  '00376873339' ]
q931.c:4861 q931_setup: Call 32771 enters state 1 (Call Initiated).  Hold state: Idle
< Protocol Discriminator: Q.931 (8)  len=8
< TEI=74 Call Ref: len= 1 (reference 3/0x3) (Sent to originator)
< Message Type: RELEASE COMPLETE (90)
< [08 02 82 b2]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Public network serving the local user (2)
<                  Ext: 1  Cause: Facility not subscribed (50), or Option not Available (3) ]
Received message for call 0xb7d7c340 on 0x9ef14e8 TEI/SAPI 74/0, call->pri is 0x9eed938 TEI/SAPI 127/63
-- Processing IE 8 (cs0, Cause)
q931.c:6986 post_handle_q931_message: Call 32771 enters state 0 (Null).  Hold state: Idle
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
Received MDL message
Sending TEI management message 5, TEI=74
Received MDL message
Sending TEI management message 5, TEI=74
Received MDL message
Sending TEI management message 5, TEI=74
Received MDL message
Sending TEI management message 5, TEI=74


Does anybody help me ?Appreciate for your reply.

upper