Hi there,
I've had this problem before and was never able to resolve it, however it went away when I installed new versions. Now this problem has come up again on another client machine running sail-2.6.1-11 with Asterix 1.4.42.
What happens is that when you ring an extension you get put straight through to voicemail with the unavailable message. Now oddly if you ring that same extension using the three number alias it works fine.
Here is the AGI debug dump:
-- Executing [5101@internal:1] AGI("SIP/5202-00000001", "selintra|OutCluster|5101") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: SIP/5202-00000001
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1365563767.1
AGI Tx >> agi_callerid: 5202
AGI Tx >> agi_calleridname: Louise
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 5101
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: internal
AGI Tx >> agi_extension: 5101
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 (4)
AGI Rx << GET VARIABLE ABSTIMEOUT
AGI Tx >> 200 result=0
AGI Rx << EXEC Set CDR(accountcode)=Macropet
-- AGI Script Executing Application: (Set) Options: (CDR(accountcode)=Macropet)
AGI Tx >> 200 result=0
AGI Rx << SET PRIORITY 1
AGI Tx >> 200 result=0
AGI Rx << SET EXTENSION 5101
AGI Tx >> 200 result=0
AGI Rx << SET CONTEXT Macropet
AGI Tx >> 200 result=0
-- AGI Script selintra completed, returning 0
-- Executing [5101@Macropet:1] AGI("SIP/5202-00000001", "selintra|InCall|") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: SIP/5202-00000001
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1365563767.1
AGI Tx >> agi_callerid: 5202
AGI Tx >> agi_calleridname: Louise
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 5101
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: Macropet
AGI Tx >> agi_extension: 5101
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode: Macropet
AGI Tx >>
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 (4)
AGI Rx << GET VARIABLE ABSTIMEOUT
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 (4)
AGI Rx << GET VARIABLE BLINDTRANSFER
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE VOICEINSTR
AGI Tx >> 200 result=1 (NO)
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE MTIME
AGI Tx >> 200 result=1 (disabled)
AGI Rx << DATABASE GET "cfimopen" "5101"
AGI Tx >> 200 result=0
AGI Rx << DATABASE GET "cfim" "5101"
---> AGI Tx >> 200 result=1 (5101)
AGI Rx << EXEC Playback silence/1
-- AGI Script Executing Application: (Playback) Options: (silence/1)
-- <SIP/5202-00000001> Playing 'silence/1' (language 'en')
AGI Tx >> 200 result=0
AGI Rx << EXEC Voicemail 5101|su
-- AGI Script Executing Application: (Voicemail) Options: (5101|su)
-- <SIP/5202-00000001> Playing '/var/spool/asterisk/voicemail/default/5101/unavail' (language 'en')
[Apr 10 11:16:08] NOTICE[13127]: chan_sip.c:14021 handle_response_peerpoke: Peer '5205' is now Reachable. (86ms / 3000ms)
-- <SIP/5202-00000001> Playing 'beep' (language 'en')
-- Recording the message
-- x=0, open writing: /var/spool/asterisk/voicemail/default/5101/tmp/RetmK0 format: wav49, 0x8a94c68
-- User hung up
-- Recording was 0 seconds long but needs to be at least 2 - abandoning
AGI Tx >> 200 result=-1
== Spawn extension (Macropet, 5101, 1) exited non-zero on 'SIP/5202-00000001'
-- Executing [h@Macropet:1] Hangup("SIP/5202-00000001", "") in new stack
== Spawn extension (Macropet, h, 1) exited non-zero on 'SIP/5202-00000001'
Following is a similar AGI debug dump from a successful call:
-- Executing [5103@internal:1] AGI("SIP/5202-00000002", "selintra|OutCluster|5103") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: SIP/5202-00000002
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1365564059.2
AGI Tx >> agi_callerid: 5202
AGI Tx >> agi_calleridname: Louise
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 5103
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: internal
AGI Tx >> agi_extension: 5103
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 (4)
AGI Rx << GET VARIABLE ABSTIMEOUT
AGI Tx >> 200 result=0
AGI Rx << EXEC Set CDR(accountcode)=Macropet
-- AGI Script Executing Application: (Set) Options: (CDR(accountcode)=Macropet)
AGI Tx >> 200 result=0
AGI Rx << SET PRIORITY 1
AGI Tx >> 200 result=0
AGI Rx << SET EXTENSION 5103
AGI Tx >> 200 result=0
AGI Rx << SET CONTEXT Macropet
AGI Tx >> 200 result=0
-- AGI Script selintra completed, returning 0
-- Executing [5103@Macropet:1] AGI("SIP/5202-00000002", "selintra|InCall|") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: SIP/5202-00000002
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1365564059.2
AGI Tx >> agi_callerid: 5202
AGI Tx >> agi_calleridname: Louise
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 5103
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: Macropet
AGI Tx >> agi_extension: 5103
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode: Macropet
AGI Tx >>
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 (4)
AGI Rx << GET VARIABLE ABSTIMEOUT
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 (4)
AGI Rx << GET VARIABLE BLINDTRANSFER
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE VOICEINSTR
AGI Tx >> 200 result=1 (NO)
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE MTIME
AGI Tx >> 200 result=1 (disabled)
AGI Rx << DATABASE GET "cfimopen" "5103"
AGI Tx >> 200 result=0
AGI Rx << DATABASE GET "cfim" "5103"
--->AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 (4)
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE MTIME
AGI Tx >> 200 result=1 (disabled)
AGI Rx << GET VARIABLE VOICEINSTR
AGI Tx >> 200 result=1 (NO)
AGI Rx << DATABASE GET "cfimopen" "5103"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 (4)
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE MTIME
AGI Tx >> 200 result=1 (disabled)
AGI Rx << GET VARIABLE VOICEINSTR
AGI Tx >> 200 result=1 (NO)
AGI Rx << DATABASE GET "cfim" "5103"
AGI Tx >> 200 result=0
AGI Rx << SET VARIABLE __PICKUPMARK "5103"
AGI Tx >> 200 result=1
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 (4)
AGI Rx << DATABASE GET "ringdelay" "5103"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE INTRINGDELAY
AGI Tx >> 200 result=1 (30)
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 (4)
AGI Rx << GET VARIABLE CALLRECORD1
AGI Tx >> 200 result=1 (OTR)
AGI Rx << GET VARIABLE MOH
AGI Tx >> 200 result=0
AGI Rx << EXEC Dial SIP/5103|30|ktTw
-- AGI Script Executing Application: (Dial) Options: (SIP/5103|30|ktTw)
-- Called 5103
-- SIP/5103-00000003 is ringing
-- SIP/5103-00000003 is ringing
-- SIP/5103-00000003 is ringing
AGI Tx >> 200 result=-1
== Spawn extension (Macropet, 5103, 1) exited non-zero on 'SIP/5202-00000002'
-- Executing [h@Macropet:1] Hangup("SIP/5202-00000002", "") in new stack
== Spawn extension (Macropet, h, 1) exited non-zero on 'SIP/5202-00000002'
I've prefixed the lines with "--->" where it begins differ.
I'm hoping this is enough for the Selintra guys to point me in the direction of what may be causing the problem.
Cheers,
Adam