[asterisk-dev] Indication problem with mISDN r51979

Andreas Anderson galium123 at hotmail.com
Tue Feb 20 05:08:50 MST 2007


Hi Christian,

thanks for you answer!

Christian wrote:
>>After this change i can no longer hear the inband indication from the 
>>telco ("The number you're >>calling is out of service"), but instead i'm 
>>only getting a hangup.

>please do the following in your dialplan, add a busy extension and do a 
>wait there, something like:

>exten => _X.,1,Dial(mISDN/g:out/${EXTEN})
>exten => _X.,102,Noop(here we go when the caller is busy, no we can either 
>play a busy back to the phone, or hear inband)
>exten => _X.,103,wait(25)

>Before this patch, the busy extension was *never* reached, now it is 
>possible to decide what >happens there, so it is intentional.

I've just tried this, but asterisk allways jumps to +1 as soon als i should 
hear the inband indication.

Here's a trace what happens, first the normal 1.4 branch, after that with 
"ast_queue_control(ch->ast, AST_CONTROL_BUSY);" commented out.

exten => 123,1,Dial(mISDN/1/0799876543)
exten => 123,2,Noop(this-is-pri-2)
exten => 123,3,Wait(50)
exten => 123,102,Noop(here we go when the caller is busy, no we can either 
play a busy back to the phone, or hear inband)
exten => 123,103,wait(25)


Indication *not* working:

    -- Executing [505 at default:1] Dial("SIP/777-b7c00468", 
"mISDN/1/0799876543") in new stack
P[ 0]  --> * NEW CHANNEL dad:0799876543 oad:(null)
P[ 1] * Queuing chan 0x8916f98
P[ 1] read_config: Getting Config
P[ 1]  --> TON: Unknown
P[ 1]  --> LTON: Unknown
P[ 1]  --> CTON: Unknown
P[ 1] * CALL: 1/0799876543
P[ 1]  --> * dad:0799876543 tech:mISDN/0-u3 ctx:remote
P[ 1]  --> * adding2newbc ext 0799876543
P[ 1]  --> * adding2newbc callerid 777
P[ 1]  --> pres: -1 screen: -1
P[ 1]  --> pres: 0
P[ 1]  --> PRES: Allowed (0x0)
P[ 1]  --> SCREEN: Unscreened (0x0)
P[ 1] NO OPTS GIVEN
P[ 1] I SEND:SETUP oad:777 dad:0799876543 pid:3
P[ 1]  --> bc_state:BCHAN_CLEANED
P[ 1]  --> channel:0 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1]  --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> addr:0 l3id:30001 b_stid:0 layer_id:50010180
P[ 1]  --> facility:Fac_None out_facility:Fac_None
P[ 1] --> new_l3id 30002
P[ 1] Sending msg, prim:30580 addr:41000104 dinfo:30002
P[ 1]  --> * SEND: State Dialing pid:3
    -- Called 1/0799876543
P[ 1] MGMT: SSTATUS: L2_ESTABLISH
P[ 1] handle_frm: frm->addr:42000103 frm->prim:30282
P[ 1] set_channel: bc->channel:255 channel:1
P[ 1] I IND :NEW_CHANNEL oad:777 dad:0799876543 pid:3 state:CALLING
P[ 1]  --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1]  --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> addr:0 l3id:30002 b_stid:0 layer_id:50010180
P[ 1]  --> facility:Fac_None out_facility:Fac_None
P[ 1]  --> bc_state:BCHAN_CLEANED
P[ 1]  --> updating channel name to [mISDN/1-u4]
P[ 1] setup_bc: with dsp
P[ 1]  --> Channel is 1
P[ 1]  --> TRANSPARENT Mode
P[ 1] set_chan_in_stack: 1
P[ 1] I IND :PROCEEDING oad:777 dad:0799876543 pid:3 state:CALLING
P[ 1]  --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1]  --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> addr:50010102 l3id:30002 b_stid:10010100 layer_id:50010180
P[ 1]  --> facility:Fac_None out_facility:Fac_None
P[ 1]  --> bc_state:BCHAN_ACTIVATED
P[ 1]  --> updating channel name to [mISDN/1-u5]
    -- mISDN/1-u5 is proceeding passing it to SIP/777-b7c00468
P[ 1] BCHAN: bchan ACT Confirm pid:3
P[ 1] handle_frm: frm->addr:42000103 frm->prim:34582
P[ 1] I IND :DISCONNECT oad:777 dad:0799876543 pid:3 state:PROCEEDING
P[ 1]  --> channel:1 mode:TE cause:18 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1]  --> caps:Speech pi:8 keypad: sending_complete:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> addr:50010102 l3id:30002 b_stid:10010100 layer_id:50010180
P[ 1]  --> facility:Fac_None out_facility:Fac_None
P[ 1]  --> bc_state:BCHAN_ACTIVATED
P[ 1] $$$ find_holded: --> holded:0 channel:0
P[ 1]  --> org:1 nt:0, inbandavail:1 state:5
P[ 1]  --> Inband Info Avail, not sending RELEASE
    -- mISDN/1-u5 is busy
P[ 1] * IND : HANGUP    pid:3 ctx:remote dad:0799876543 oad:505 
State:DISCONNECTED
P[ 1]  --> l3id:30002
P[ 1]  --> cause:18
P[ 1]  --> out_cause:18
P[ 1]  --> state:DISCONNECTED
P[ 1] I SEND:RELEASE oad:777 dad:0799876543 pid:3
P[ 1]  --> bc_state:BCHAN_ACTIVATED
P[ 1]  --> channel:1 mode:TE cause:18 ocause:18 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1]  --> caps:Speech pi:8 keypad: sending_complete:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> addr:50010102 l3id:30002 b_stid:10010100 layer_id:50010180
P[ 1]  --> facility:Fac_None out_facility:Fac_None
P[ 1]  --> Channel: mISDN/1-u5 hanguped new state:CLEANING
  == Everyone is busy/congested at this time (1:1/0/0)
    -- Executing [505 at default:2] NoOp("SIP/777-b7c00468", "this-is-pri-2") 
in new stack
    -- Executing [505 at default:3] Wait("SIP/777-b7c00468", "50") in new stack
P[ 1] Sending msg, prim:34d80 addr:41000104 dinfo:30002
P[ 1] handle_frm: frm->addr:42000103 frm->prim:35a82
P[ 1] empty_chan_in_stack: 1
P[ 1] $$$ CLEANUP CALLED pid:3
P[ 1] $$$ Cleaning up bc with stid :10010100 pid:3
P[ 1]  --> ec_disable
P[ 1] Sending Control ECHOCAN_OFF
P[ 1] ph_control: c1:2319 c2:0
P[ 1] I IND :RELEASE_COMPLETE oad: dad: pid:3 state:CLEANING
P[ 1]  --> channel:0 mode:TE cause:18 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1]  --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> addr:50010102 l3id:30002 b_stid:0 layer_id:50010180
P[ 1]  --> facility:Fac_None out_facility:Fac_None
P[ 1]  --> bc_state:BCHAN_CLEANED
P[ 1] ast_hangup already called, so we have no ast ptr anymore in 
event(RELEASE_COMPLETE)
P[ 1]  --> No need to queue hangup
P[ 1] Cannot hangup chan, no ast
P[ 1] handle_frm: frm->addr:42000103 frm->prim:3f182
P[ 1]  --> lib: RELEASE_CR Ind with l3id:30002
P[ 1]  --> lib: CLEANING UP l3id: 30002
P[ 1] $$$ CLEANUP CALLED pid:3
P[ 1] BCHAN: MGR_DELLAYER|CNF pid:3


Indication working

    -- Executing [505 at default:1] Dial("SIP/777-0a02de90", 
"mISDN/1/0799876543") in new stack
P[ 0]  --> * NEW CHANNEL dad:0799876543 oad:(null)
P[ 1] * Queuing chan 0xa031df8
P[ 1] read_config: Getting Config
P[ 1]  --> TON: Unknown
P[ 1]  --> LTON: Unknown
P[ 1]  --> CTON: Unknown
P[ 1] * CALL: 1/0799876543
P[ 1]  --> * dad:0799876543 tech:mISDN/0-u0 ctx:remote
P[ 1]  --> * adding2newbc ext 0799876543
P[ 1]  --> * adding2newbc callerid 777
P[ 1]  --> pres: -1 screen: -1
P[ 1]  --> pres: 0
P[ 1]  --> PRES: Allowed (0x0)
P[ 1]  --> SCREEN: Unscreened (0x0)
P[ 1] NO OPTS GIVEN
P[ 1] I SEND:SETUP oad:777 dad:0799876543 pid:2
P[ 1]  --> bc_state:BCHAN_CLEANED
P[ 1]  --> channel:0 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1]  --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> addr:0 l3id:0 b_stid:0 layer_id:0
P[ 1]  --> facility:Fac_None out_facility:Fac_None
P[ 1] --> new_l3id 30001
P[ 1]  --> * SEND: State Dialing pid:2
    -- Called 1/0799876543
P[ 1] Sending msg, prim:30580 addr:41000104 dinfo:30001
P[ 1] MGMT: SSTATUS: L2_ESTABLISH
P[ 1] handle_frm: frm->addr:42000103 frm->prim:30282
P[ 1] set_channel: bc->channel:255 channel:1
P[ 1] I IND :NEW_CHANNEL oad:777 dad:0799876543 pid:2 state:CALLING
P[ 1]  --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1]  --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> addr:0 l3id:30001 b_stid:0 layer_id:0
P[ 1]  --> facility:Fac_None out_facility:Fac_None
P[ 1]  --> bc_state:BCHAN_CLEANED
P[ 1]  --> updating channel name to [mISDN/1-u1]
P[ 1] setup_bc: with dsp
P[ 1]  --> Channel is 1
P[ 1]  --> TRANSPARENT Mode
P[ 1] set_chan_in_stack: 1
P[ 1] I IND :PROCEEDING oad:777 dad:0799876543 pid:2 state:CALLING
P[ 1]  --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1]  --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> addr:50010102 l3id:30001 b_stid:10010100 layer_id:50010180
P[ 1]  --> facility:Fac_None out_facility:Fac_None
P[ 1]  --> bc_state:BCHAN_ACTIVATED
P[ 1]  --> updating channel name to [mISDN/1-u2]
    -- mISDN/1-u2 is proceeding passing it to SIP/777-0a02de90
P[ 1] BCHAN: bchan ACT Confirm pid:2
P[ 1] handle_frm: frm->addr:42000103 frm->prim:34582
P[ 1] I IND :DISCONNECT oad:777 dad:0799876543 pid:2 state:PROCEEDING
P[ 1]  --> channel:1 mode:TE cause:18 ocause:16 rad: cad:
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1]  --> caps:Speech pi:8 keypad: sending_complete:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> addr:50010102 l3id:30001 b_stid:10010100 layer_id:50010180
P[ 1]  --> facility:Fac_None out_facility:Fac_None
P[ 1]  --> bc_state:BCHAN_ACTIVATED
P[ 1] $$$ find_holded: --> holded:0 channel:0
P[ 1]  --> org:1 nt:0, inbandavail:1 state:5
P[ 1]  --> Inband Info Avail, not sending RELEASE

without the patch, it changes from proceeding to busy and jumps to pri +2, 
but not to +101.


Regards,


Andreas

_________________________________________________________________
Become a fitness fanatic @  http://xtramsn.co.nz/health



More information about the asterisk-dev mailing list