Hallo,
ich verwende Asterisk 1.4.4 mit mISDN 1.1.3 und habe ein Problem beim Weiterleiten von Anrufen - Asterisk stürzt einfach mit einem Segmentation Fault ab.
extensions.conf
misdn.conf
Asterisk Output:
Weiss jemand warum Asterisk da crashed und wie ich das Problem weiter analysieren kann?
Ich habe an dem Asterisk an der Karte im NT-Mode eine Agfeo AC-Phonie 14 TK-Anlage mit 4 analogen Phones und ein normales ISDN-Telefon, sowie ein SIP-Phone.
Der Crash ist reproduzierbar, und tritt anscheinend immer dann auf, wenn ein Call der bereits an der Agfeo geringt hat, umgeleitet werden soll.
Weiss jemand weiter?
ich verwende Asterisk 1.4.4 mit mISDN 1.1.3 und habe ein Problem beim Weiterleiten von Anrufen - Asterisk stürzt einfach mit einem Segmentation Fault ab.
extensions.conf
Code:
exten => XXXXXX0,1,Ringing();
exten => XXXXXX0,2,Dial(${NT}/201&${SIPmrjack}/600,30,Ttr);
exten => XXXXXX0,3,set(CALLERID(all)=XXXXXX0);
exten => XXXXXX0,4,Playback(de/transfer);
exten => XXXXXX0,5,Dial(${TE}/0XXXXXXXXXXX,60,Ttr);
exten => XXXXXX0,6,Hangup();
misdn.conf
Code:
[general]
debug=3
method=standard
append_digits2exten=yes
bridging=no
jitterbuffer=4000
jitterbuffer_upper_threshold=0
stop_tone_after_first_digit=yes
[default]
language=de
nationalprefix=0
internationalprefix=00
l1watcher_timeout=4
localdialplan=2
presentation=0
screening=0
rxgain=0
txgain=-1
echotraining=yes
echocancel=64
[NTports]
context=nt
ports=1
msns=*
[TEports]
context=te
ports=2ptp,3ptp
Asterisk Output:
Code:
Asterisk Ready.
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] MGMT: SSTATUS: L2_RELEASED
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] MGMT: SSTATUS: L2_RELEASED
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] MGMT: SSTATUS: L2_RELEASED
P[ 2] set_channel: bc->channel:0 channel:1
P[ 2] I IND :NEW_CHANNEL oad:170XXXXXXX dad:XXXXXX0 pid:2 state:none
P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:2 dnumplan:4 rnumplan: cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 2] Chan not existing at the moment bc->l3id:20002 bc:0x81a7598 event:NEW_CHANNEL port:2 channel:1
P[ 2] NO USERUESRINFO
P[ 2] I IND :SETUP oad:170XXXXXXX dad:XXXXXX0 pid:2 state:none
P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:2 dnumplan:4 rnumplan: cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 2] --> Bearer: Speech
P[ 2] --> Codec: Alaw
P[ 0] --> * NEW CHANNEL dad:XXXXXX0 oad:170XXXXXXX
P[ 2] read_config: Getting Config
P[ 2] --> CTON: Unknown
P[ 2] --> EXPORT_PID: pid:2
P[ 2] --> PRES: Restricted (0)
P[ 2] --> SCREEN: Unscreened (0)
P[ 2] I SEND:PROCEEDING oad:0170XXXXXXX dad:XXXXXX0 pid:2
P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:2 dnumplan:4 rnumplan: cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 2] --> TRANSPARENT Mode
P[ 2] BCHAN: bchan ACT Confirm pid:2
-- Executing [XXXXXX0@te:1] Ringing("mISDN/3-u0", "") in new stack
P[ 2] * IND : ringing pid:2
P[ 2] --> * IND : ringing pid:2
P[ 2] I SEND:ALERTING oad:0170XXXXXXX dad:XXXXXX0 pid:2
P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 2] --> info_dad: onumplan:2 dnumplan:4 rnumplan: cpnnumplan:0
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 2] --> * SEND: State Ring pid:2
P[ 2] --> incoming_early_audio off
-- Executing [XXXXXX0@te:2] Dial("mISDN/3-u0", "misdn/1/201&SIP/600|30|Ttr") in new stack
P[ 0] --> * NEW CHANNEL dad:201 oad:(null)
P[ 1] read_config: Getting Config
P[ 1] --> TON: Unknown
P[ 1] --> LTON: National
P[ 1] --> CTON: Unknown
P[ 1] * CALL: 1/201
P[ 1] --> * dad:201 tech:mISDN/0-u1 ctx:nt
P[ 1] --> * adding2newbc ext 201
P[ 1] --> * adding2newbc callerid 0170XXXXXXX
P[ 1] --> pres: 0 screen: -1
P[ 1] --> pres: 0
P[ 1] --> PRES: Allowed (0x0)
P[ 1] --> SCREEN: Unscreened (0x0)
P[ 1] --> IMPORT_PID: importing pid:2
P[ 1] NO OPTS GIVEN
P[ 1] I SEND:SETUP oad:0170XXXXXXX dad:201 pid:3
P[ 1] --> channel:0 mode:NT cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:2 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1] --> found chan: 1
P[ 1] --> new_l3id ff00
P[ 1] NO USERUESRINFO ENCODED
P[ 1] --> * SEND: State Dialing pid:3
P[ 1] I IND :CC_SETUP|CONFIRM: old l3id:ff00 new l3id:8001ff00
-- Called 1/201
-- Called 600
P[ 2] * IND : ringing pid:2
P[ 1] I IND :NEW_L3ID oad:0170XXXXXXX dad:201 pid:3 state:CALLING
P[ 2] --> * IND : ringing pid:2 but I was Ringing before, so ignoreing it
P[ 1] --> channel:1 mode:NT cause:16 ocause:16 rad: cad:
-- SIP/600-081fb330 is ringing
P[ 1] --> info_dad: onumplan:2 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1] % GOT L2 Activate Info.
P[ 1] % GOT L2 Activate Info.
P[ 1] set_channel: bc->channel:1 channel:-1
P[ 1] I IND :PROCEEDING oad:0170XXXXXXX dad:201 pid:3 state:CALLING
P[ 1] --> channel:1 mode:NT cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:2 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1] --> updating channel name to [mISDN/1-u2]
-- mISDN/1-u2 is proceeding passing it to mISDN/3-u0
P[ 1] I IND :ALERTING oad:0170XXXXXXX dad:201 pid:3 state:PROCEEDING
P[ 1] --> channel:1 mode:NT cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:2 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1] --> updating channel name to [mISDN/1-u3]
-- SIP/600-081fb330 is ringing
P[ 1] --> We have no inband Data, the other end must create ringing
-- mISDN/1-u3 is ringing
-- SIP/600-081fb330 is ringing
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] MGMT: SSTATUS: L2_RELEASED
-- SIP/600-081fb330 is ringing
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] MGMT: SSTATUS: L2_RELEASED
-- SIP/600-081fb330 is ringing
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] MGMT: SSTATUS: L2_RELEASED
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] MGMT: SSTATUS: L2_RELEASED
P[ 1] % GOT L2 DeActivate Info.
-- SIP/600-081fb330 is ringing
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] MGMT: SSTATUS: L2_RELEASED
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] MGMT: SSTATUS: L2_RELEASED
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] MGMT: SSTATUS: L2_RELEASED
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] $$$ CLEANUP CALLED pid:0
P[ 3] MGMT: SSTATUS: L2_RELEASED
-- SIP/600-081fb330 is ringing
-- Nobody picked up in 30000 ms
P[ 2] --> * IND : -1! (stop indication) pid:2
P[ 2] --> None
P[ 1] * IND : HANGUP pid:3 ctx:nt dad:201 oad:XXXXXX0 State:ALERTING
P[ 1] --> l3id:8001ff00
P[ 1] --> cause:16
P[ 1] --> out_cause:16
P[ 1] --> state:ALERTING
P[ 1] I SEND:DISCONNECT oad:0170XXXXXXX dad:201 pid:3
P[ 1] --> channel:1 mode:NT cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:2 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1] --> Channel: mISDN/1-u3 hanguped new state:CLEANING
P[ 1] $$$ CLEANUP CALLED pid:3
-- Executing [XXXXXX0@te:3] Set("mISDN/3-u0", "CALLERID(all)=XXXXXX0") in new stack
-- Executing [XXXXXX0@te:4] Playback("mISDN/3-u0", "de/transfer") in new stack
P[ 2] * ANSWER:
P[ 1] $$$ CLEANUP CALLED pid:0
P[ 1] I IND :RELEASE_COMPLETE oad: dad: pid:0 state:none
P[ 1] I IND :RELEASE oad: dad: pid:3 state:CLEANING
P[ 1] --> channel:0 mode:NT cause:0 ocause:16 rad: cad:
P[ 2] --> Connection is without BF encryption
P[ 1] --> channel:0 mode:NT cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2] --> None
P[ 1] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 2] --> empty cad using dad
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1] --> no Ch, so we've already released.
P[ 2] I SEND:CONNECT oad:0170XXXXXXX dad:XXXXXX0 pid:2
P[ 1] ast_hangup already called, so we have no ast ptr anymore in event(RELEASE)
P[ 0] Cannot hangup chan, no ch
P[ 2] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:XXXXXX0
P[ 1] --> No need to queue hangup
P[ 1] release_chan: Ch not found!
P[ 2] --> info_dad: onumplan:2 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] Cannot hangup chan, no ast
P[ 1] $$$ CLEANUP CALLED pid:3
P[ 2] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 1] ast_hangup already called, so we have no ast ptr anymore in event(CLEAN_UP)
P[ 1] $$$ CLEANUP CALLED pid:3
P[ 1] --> No need to queue hangup
P[ 2] Sending Control ECHOCAN_ON taps:64
P[ 1] Cannot hangup chan, no ast
-- <mISDN/3-u0> Playing 'de/transfer' (language 'de')
P[ 1] release_chan: Ch not found!
Segmentation fault
Weiss jemand warum Asterisk da crashed und wie ich das Problem weiter analysieren kann?
Ich habe an dem Asterisk an der Karte im NT-Mode eine Agfeo AC-Phonie 14 TK-Anlage mit 4 analogen Phones und ein normales ISDN-Telefon, sowie ein SIP-Phone.
Der Crash ist reproduzierbar, und tritt anscheinend immer dann auf, wenn ein Call der bereits an der Agfeo geringt hat, umgeleitet werden soll.
Weiss jemand weiter?