Hi, thanks for the reply, here are the requested details:
- Extension 198: android with sipdroid connected to asterisk box
- Extension 199: test ipphone
1. Registering the phone:
pbx1-uk*CLI> [2009-09-21 12:18:01] NOTICE[2140] chan_sip.c: Peer '198' is now UNREACHABLE! Last qualify: 0
-- Registered SIP '198' at 85.14.193.197 port 5060 expires 3600
-- Saved useragent "Sipdroid/1.0.7 beta" for peer 198
2. Making a call from ext 199 to ext 198:
-- Executing [198@from-internal:1] Macro("SIP/199-08406d40", "exten-vm|novm|198") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/199-08406d40", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/199-08406d40", "AMPUSER=199") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/199-08406d40", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/199-08406d40", "1|Set|REALCALLERIDNUM=199") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/199-08406d40", "AMPUSER=199") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/199-08406d40", "AMPUSERCIDNAME=TEST") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/199-08406d40", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/199-08406d40", "AMPUSERCID=199") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/199-08406d40", "CALLERID(all)="TEST" <199>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/199-08406d40", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/199-08406d40", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/199-08406d40", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/199-08406d40", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/199-08406d40", "Using CallerID "TEST" <199>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/199-08406d40", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/199-08406d40", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/199-08406d40", "EXTTOCALL=198") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/199-08406d40", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/199-08406d40", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/199-08406d40", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/199-08406d40", "record-enable|198|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/199-08406d40", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/199-08406d40", "recordingcheck|20090921-121836|1253531916.50") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20090921-121836|1253531916.50: Inbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/199-08406d40", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/199-08406d40", "dial||tr|198") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/199-08406d40", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("SIP/199-08406d40", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is 'TEST' number is '199'
dialparties.agi: USE_CONFIRMATION: 'FALSE'
dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 198 to extension map
-- dialparties.agi: Extension 198 cf is disabled
-- dialparties.agi: Extension 198 do not disturb is disabled
> dialparties.agi: extnum 198 has: cw: 1; hascfb: 0 [] hascfu: 0 []
dialparties.agi: ExtensionState: 4
-- dialparties.agi: dbset CALLTRACE/198 to 199
-- dialparties.agi: Filtered ARG3: 198
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("SIP/199-08406d40", "SIP/198||tr") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dial:8] Set("SIP/199-08406d40", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-dial:9] GosubIf("SIP/199-08406d40", "0?CHANUNAVAIL|1") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("SIP/199-08406d40", "0?exit|return") in new stack
-- Executing [s@macro-exten-vm:11] Set("SIP/199-08406d40", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("SIP/199-08406d40", "0?docfu|1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/199-08406d40", "0?docfb|1") in new stack
-- Executing [s@macro-exten-vm:14] Set("SIP/199-08406d40", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("SIP/199-08406d40", "Voicemail is novm") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("SIP/199-08406d40", "1?s-CHANUNAVAIL|1") in new stack
-- Goto (macro-exten-vm,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-exten-vm:1] NoOp("SIP/199-08406d40", "IVR_RETVM: IVR_CONTEXT: ") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:2] GotoIf("SIP/199-08406d40", "0?exit|1") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:3] PlayTones("SIP/199-08406d40", "congestion") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:4] Congestion("SIP/199-08406d40", "10") in new stack
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 4) exited non-zero on 'SIP/199-08406d40' in macro 'exten-vm'
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 4) exited non-zero on 'SIP/199-08406d40'
pbx1-uk*CLI> [2009-09-21 12:18:36] VERBOSE[24762] logger.c: -- Executing [s@macro-dial:8] Set("SIP/199-08406d40", "DIALSTATUS=CHANUNAVAIL") in new stack
[2009-09-21 12:18:36] VERBOSE[24762] logger.c: -- Executing [s@macro-dial:9] GosubIf("SIP/199-08406d40", "0?CHANUNAVAIL|1") in new stack
[2009-09-21 12:18:36] VERBOSE[24762] logger.c: -- Executing [s@macro-exten-vm:11] Set("SIP/199-08406d40", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
[2009-09-21 12:18:36] VERBOSE[24762] logger.c: -- Executing [s@macro-exten-vm:14] Set("SIP/199-08406d40", "DIALSTATUS=CHANUNAVAIL") in new stack
[2009-09-21 12:18:36] VERBOSE[24762] logger.c: -- Executing [s@macro-exten-vm:16] GotoIf("SIP/199-08406d40", "1?s-CHANUNAVAIL|1") in new stack
[2009-09-21 12:18:37] VERBOSE[24762] logger.c: -- Goto (macro-exten-vm,s-CHANUNAVAIL,1)
[2009-09-21 12:18:37] VERBOSE[24762] logger.c: -- Executing [s-CHANUNAVAIL@macro-exten-vm:1] NoOp("SIP/199-08406d40", "IVR_RETVM: IVR_CONTEXT: ") in new stack
[2009-09-21 12:18:37] VERBOSE[24762] logger.c: -- Executing [s-CHANUNAVAIL@macro-exten-vm:2] GotoIf("SIP/199-08406d40", "0?exit|1") in new stack
[2009-09-21 12:18:37] VERBOSE[24762] logger.c: -- Executing [s-CHANUNAVAIL@macro-exten-vm:3] PlayTones("SIP/199-08406d40", "congestion") in new stack
[2009-09-21 12:18:37] VERBOSE[24762] logger.c: -- Executing [s-CHANUNAVAIL@macro-exten-vm:4] Congestion("SIP/199-08406d40", "10") in new stack
[2009-09-21 12:18:37] VERBOSE[24762] logger.c: == Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 4) exited non-zero on 'SIP/199-08406d40' in macro 'exten-vm'
[2009-09-21 12:18:37] VERBOSE[24762] logger.c: == Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 4) exited non-zero on 'SIP/199-08406d40'
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89:





by: denisdsr20Posted on 2009-09-21 at 03:20:16ID: 25381492
Hi, could you give us a trace of the sip messages received on asterisk ?
At asterisk CLI prompt enter : "sip debug on" then issue a call from sipdroid and when the call is abnormally cleared "sip debug off"
Insert the SIP messages you got at asterisk CLI in your question it will be easier to give you an accurate answer.
Regards
Denis DIDIER
SR20 Service / FRANCE