Call Deflection mit midsn

KingKub

Neuer User
Mitglied seit
4 Sep 2006
Beiträge
3
Punkte für Reaktionen
0
Punkte
0
Hallo,

ich habe ein kleine Problem mit der Rumumleitung. Ich versuch eine Rufumleitung mit dem Feature
;exten => s-DIALEXT,5,misdn_facility(calldeflect,${toCall})
einzurichten. Leider hat das nicht so ganz funktioniert:

-- Executing GotoIf("mISDN/6-1", "1?5") in new stack
-- Goto (macro-dispatch,s-DIALEXT,5)
-- Executing misdn_facility("mISDN/6-1", "calldeflect|016099999999") in new stack
P[ 0] TYPE: mISDN
P[ 6] I SEND:FACILITY oad:07315500133 dad:5500121
== Auto fallthrough, channel 'mISDN/6-1' status is 'UNKNOWN'
-- Executing Hangup("mISDN/6-1", "") in new stack
== Spawn extension (from-extern, h, 1) exited non-zero on 'mISDN/6-1'
P[ 6] * IND : HANGUP pid:623 ctx:from-extern dad:h oad:007315500133 State:DIALING
P[ 6] --> cause:16
P[ 6] --> out_cause:16
P[ 6] I SEND:RELEASE_COMPLETE oad:07315500133 dad:5500121
P[ 6] Channel: mISDN/6-1 hanguped
P[ 6] CC_RELEASE_COMPLETE|CONFIRM [TE]
P[ 6] I IND :RELEASE_COMPLETE oad:07315500133 dad:5500121
P[ 6] Trying to Release bc with l3id: 40374
P[ 6] I IND :CLEAN_UP oad: dad:
P[ 6] I IND :CLEAN_UP oad: dad:
P[ 5] I IND :pROCEEDING oad:33 dad:5500121
-- mISDN/5-u3067 is proceeding passing it to SIP/33-9282
P[ 5] I IND :DISCONNECT oad:33 dad:5500121
P[ 5] --> Inband Info Avail, not sending RELEASE
P[ 5] * IND : HANGUP pid:622 ctx:from-extern dad:5500121 oad:05500121 State:(null)
P[ 5] --> cause:16
P[ 5] --> out_cause:16
P[ 5] I SEND:RELEASE oad:33 dad:5500121
P[ 5] Channel: mISDN/5-u3067 hanguped


Vielleicht weiß von euch einer Rat.

Danke

Tobi
 
Der Call muss im State Alerting sein, also versuch mal vorher (bevor misdn_facility im dialplan kommt) ein Ringing auszuführen.

also etwa:

exten => s,1,Ringing
exten => s,2,misdn_facility(..)
 
Hallo crich!

Habe ähnlich gelagertes Problem und versucht, mittels Ringing den ALERT-State zu initiieren. Trotzdem folgender output bei misdn set debug 4:

P[ 2] handle_frm: frm->addr:42000203 frm->prim:3f082
P[ 2] handle_frm: frm->addr:42000203 frm->prim:30582
P[ 2] set_channel: bc->channel:0 channel:1
P[ 2] set_chan_in_stack: 1
P[ 2] I IND :SETUP oad:[Nummer] dad:771 pid:124 state:none
P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:2 dnumplan:0 rnumplan: cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 2] --> screen:0 --> pres:0
P[ 2] --> addr:0 l3id:4001d b_stid:0 layer_id:50010280
P[ 2] --> facility:FAC_NONE out_facility:FAC_NONE
P[ 2] --> bc_state:BCHAN_CLEANED
P[ 2] --> Bearer: Speech
P[ 2] --> Codec: Alaw
P[ 0] --> * NEW CHANNEL dad:771 oad:[Nummer]
P[ 2] --> CTON: Unknown
P[ 2] EXPORT_PID: pid:124
P[ 2] --> PRES: Restricted (0)
P[ 2] --> SCREEN: Unscreened (0)
P[ 2] * Queuing chan 0xb793fb68
P[ 2] I SEND:pROCEEDING oad:[Nummer] dad:771 pid:124
P[ 2] --> bc_state:BCHAN_CLEANED
P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:2 dnumplan:0 rnumplan: cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 2] --> screen:0 --> pres:0
P[ 2] --> addr:0 l3id:4001d b_stid:0 layer_id:50010280
P[ 2] --> facility:FAC_NONE out_facility:FAC_NONE
P[ 2] setup_bc: with dsp
P[ 2] --> Channel is 1
P[ 2] --> TRANSPARENT Mode
P[ 2] bchan: DL_ESTABLISH|CNF
P[ 2] After SETUP BC
P[ 2] GOT SETUP OK
P[ 2] Sending msg, prim:30280 addr:41000204 dinfo:4001d
-- Executing Ringing("mISDN/2-1", "") in new stack
P[ 2] * IND : Indication [3] from 771
P[ 2] --> * IND : ringing pid:124
P[ 2] I SEND:ALERTING oad:[Nummer] dad:771 pid:124
P[ 2] --> bc_state:BCHAN_ACTIVATED
P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:2 dnumplan:0 rnumplan: cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 2] --> screen:0 --> pres:0
P[ 2] --> addr:50010202 l3id:4001d b_stid:10010200 layer_id:50010280
P[ 2] --> facility:FAC_NONE out_facility:FAC_NONE
P[ 2] $$$ bc already upsetted stid :10010200 (state:BCHAN_ACTIVATED)
P[ 2] After SETUP BC
P[ 2] --> * SEND: State Ring pid:124
P[ 2] --> incoming_early_audio off
-- Executing misdn_facility("mISDN/2-1", "calldeflect|[andereNummer]") in new stack
P[ 0] TYPE: mISDN
P[ 2] I SEND:FACILITY oad:[Nummer] dad:771 pid:124
P[ 2] --> bc_state:BCHAN_ACTIVATED
P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:2 dnumplan:0 rnumplan: cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 2] --> screen:0 --> pres:0
P[ 2] --> addr:50010202 l3id:4001d b_stid:10010200 layer_id:50010280
P[ 2] --> facility:FAC_NONE out_facility:FAC_CALLDEFLECT
== Auto fallthrough, channel 'mISDN/2-1' status is 'UNKNOWN'
P[ 2] Sending msg, prim:30180 addr:41000204 dinfo:4001d
P[ 2] Sending msg, prim:36280 addr:41000204 dinfo:4001d
P[ 2] * IND : HANGUP pid:124 ctx:internal dad:771 oad:[Nummer] State:ALERTING
P[ 2] --> l3id:4001d
P[ 2] --> cause:16
P[ 2] --> out_cause:16
P[ 2] --> state:ALERTING
P[ 2] ph_control: c1:2310 c2:12
P[ 2] I SEND:DISCONNECT oad:[Nummer] dad:771 pid:124
P[ 2] --> bc_state:BCHAN_ACTIVATED
P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:2 dnumplan:0 rnumplan: cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 2] --> screen:0 --> pres:0
P[ 2] --> addr:50010202 l3id:4001d b_stid:10010200 layer_id:50010280
P[ 2] --> facility:FAC_NONE out_facility:FAC_CALLDEFLECT
P[ 2] Channel: mISDN/2-1 hanguped new state:CLEANING
P[ 2] Sending msg, prim:34580 addr:41000204 dinfo:4001d
P[ 2] handle_frm: frm->addr:42000203 frm->prim:36282
P[ 2] I IND :FACILITY oad:06766195484 dad:771 pid:124 state:CLEANING
P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:2 dnumplan:0 rnumplan: cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 2] --> screen:0 --> pres:0
P[ 2] --> addr:50010202 l3id:4001d b_stid:10010200 layer_id:50010280
P[ 2] --> facility:FAC_NONE out_facility:FAC_CALLDEFLECT
P[ 2] --> bc_state:BCHAN_ACTIVATED
Sep 18 17:22:37 NOTICE[393]: chan_misdn.c:3234 cb_events: No Ast or No private Pointer in Event (29:FACILITY)
P[ 2] handle_frm: frm->addr:42000203 frm->prim:37d82
P[ 2] I IND :STATUS oad:[Nummer] dad:771 pid:124 state:CLEANING
P[ 2] --> channel:1 mode:TE cause:96 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:2 dnumplan:0 rnumplan: cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 2] --> screen:0 --> pres:0
P[ 2] --> addr:50010202 l3id:4001d b_stid:10010200 layer_id:50010280
P[ 2] --> facility:FAC_NONE out_facility:FAC_CALLDEFLECT
P[ 2] --> bc_state:BCHAN_ACTIVATED
Sep 18 17:22:37 NOTICE[393]: chan_misdn.c:3234 cb_events: No Ast or No private Pointer in Event (33:STATUS)
P[ 2] handle_frm: frm->addr:42000203 frm->prim:34d82
P[ 2] empty_chan_in_stack: 1
P[ 2] $$$ CLEANUP CALLED pid:124
P[ 2] $$$ Cleaning up bc with stid :10010200 pid:124
P[ 2] ec_disable
P[ 2] I IND :RELEASE oad: dad: pid:124 state:CLEANING
P[ 2] --> channel:0 mode:TE cause:-1 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 2] --> screen:0 --> pres:0
P[ 2] --> addr:50010202 l3id:4001d b_stid:0 layer_id:50010280
P[ 2] --> facility:FAC_NONE out_facility:FAC_NONE
P[ 2] --> bc_state:BCHAN_CLEANED
P[ 2] ast_hangup already called, so we have no ast ptr anymore in event(RELEASE)
P[ 2] hangup_chan
P[ 2] No need to queue hangup
P[ 2] Cannot hangup chan, no ast
P[ 2] release_chan: bc with l3id: 4001d
P[ 2] I SEND:RELEASE_COMPLETE oad: dad: pid:124
P[ 2] --> bc_state:BCHAN_CLEANED
P[ 2] --> channel:0 mode:TE cause:-1 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 2] --> screen:0 --> pres:0
P[ 2] --> addr:50010202 l3id:4001d b_stid:0 layer_id:50010280
P[ 2] --> facility:FAC_NONE out_facility:FAC_NONE
P[ 2] Sending msg, prim:35a80 addr:41000204 dinfo:4001d
P[ 2] BCHAN: DeACT Conf pid:124
P[ 2] BCHAN: MGR_DELLAYER|CNF pid:124

Danach bricht der Anruf ab.

Zusatzinfo:

misdn-mqueue via bernoet-install-skript am 18.9. upgedatet.
asterisk SVN-branch-1.2-r43072
chan_misdn 0.3.1-rc23
HW: beronet BN8S0

TIA

Jürgen
 
mach mal noch ein Wait(5) nach dem calldeflect.
 
Leider, funktioniert nicht. Ich höre zwar am anrufenden Telefon das Klingelzeichen (klar, wenn man im Dialplan ein Ringing() ausführt), am Telefon, das der CD-Endpunkt ist, passiert aber gar nix.

Mit Debug-Level 1 erhalte ich folgende Meldungen:

P[ 2] I IND :SETUP oad:[Caller-ID des Anrufers] dad:771 pid:6 state:none
P[ 2] EXPORT_PID: pid:6
P[ 2] I SEND:pROCEEDING oad:[Caller-ID des Anrufers] dad:771 pid:6
P[ 2] --> bc_state:BCHAN_CLEANED
P[ 2] After SETUP BC
-- Executing Ringing("mISDN/2-1", "") in new stack
P[ 2] * IND : Indication [3] from 771
P[ 2] --> * IND : ringing pid:6
P[ 2] I SEND:ALERTING oad:[Caller-ID des Anrufers] dad:771 pid:6
P[ 2] --> bc_state:BCHAN_ACTIVATED
P[ 2] After SETUP BC
P[ 2] --> * SEND: State Ring pid:6
P[ 2] --> incoming_early_audio off
-- Executing misdn_facility("mISDN/2-1", "calldeflect|[Nummer]") in new stack
P[ 0] TYPE: mISDN
P[ 2] I SEND:FACILITY oad:[Caller-ID des Anrufers] dad:771 pid:6
P[ 2] --> bc_state:BCHAN_ACTIVATED
-- Executing Wait("mISDN/2-1", "5") in new stack
P[ 2] I IND :FACILITY oad:[Caller-ID des Anrufers] dad:771 pid:6 state:ALERTING
P[ 2] --> not yet handled
P[ 2] I IND :STATUS oad:[Caller-ID des Anrufers] dad:771 pid:6 state:ALERTING
== Auto fallthrough, channel 'mISDN/2-1' status is 'UNKNOWN'
P[ 2] * IND : HANGUP pid:6 ctx:internal dad:771 oad:[Caller-ID des Anrufers] State:ALERTING
P[ 2] --> cause:96
P[ 2] --> out_cause:16
P[ 2] --> state:ALERTING
P[ 2] I SEND:DISCONNECT oad:[Caller-ID des Anrufers] dad:771 pid:6
P[ 2] --> bc_state:BCHAN_ACTIVATED
P[ 2] Channel: mISDN/2-1 hanguped new state:CLEANING
P[ 2] ec_disable
P[ 2] I IND :RELEASE oad: dad: pid:6 state:CLEANING
P[ 2] hangup_chan
P[ 2] No need to queue hangup
P[ 2] Cannot hangup chan, no ast
P[ 2] release_chan: bc with l3id: 40002
P[ 2] I SEND:RELEASE_COMPLETE oad: dad: pid:6
P[ 2] --> bc_state:BCHAN_CLEANED
 
Ich hatte ein ähnliches Problem. Nach einem reload im asterisk CLI bekomme ich immer ein sofortiges besetzt am SIP Telefon. Über Handy passiert beim 1.Anruf gar nix und im LOG vom CLI kommt auch NIX an.

Beim 2. Anruf funktioniert es dann.
Im Handy sehe ich dann Umgeleiteter Anruf. Oder wenn die Nummer übermittelt wird entsprechende Nummer. Je nachdem von wo nach wo ich jeweils anrufe.

Das Wait ist bei mir nicht nötig.


Gruss,

Jörg

P.S.: Irgendwas in Planung für Rufumleitung im Amt ?
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.