Ticket #4212 (closed Bugs: fixed)

Opened 3 years ago

Last modified 3 years ago

Multiple devices with one user in 2.8 doesn't work

Reported by: Socs28 Assigned to: p_lindheimer
Priority: major Milestone: 2.8
Component: Core - Users/Devices Version: 2.8-branch
Keywords: multiple devices to one user Cc: jeff@computerworks.biz
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: 1.6.1 and 1.6.2 SVN Revision (if applicable):

Description

I have 2 systems now that have upgraded to 2.8. When I add a second device to use a single user, it doesn't work. When I call the user's extension, on the calling end it goes straight to voice mail, while on the called end it just rings.

Change History

04/13/10 20:30:49 changed by p_lindheimer

can you please provide a CLI trace of the attempted call. Also include the output of "database show AMPUSER/exten_num"

04/13/10 20:52:27 changed by Socs28

  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [2105@from-internal:1] Macro("SIP/2104-00000003", "exten-vm,2105,2105") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("SIP/2104-00000003", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/2104-00000003", "AMPUSER=2104") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/2104-00000003", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/2104-00000003", "1?Set(REALCALLERIDNUM=2104)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/2104-00000003", "AMPUSER=2104") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/2104-00000003", "AMPUSERCIDNAME=Test") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/2104-00000003", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/2104-00000003", "AMPUSERCID=2104") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/2104-00000003", "CALLERID(all)="Test" <2104>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/2104-00000003", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/2104-00000003", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/2104-00000003", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/2104-00000003", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/2104-00000003", "Using CallerID "Test" <2104>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("SIP/2104-00000003", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("SIP/2104-00000003", "VMBOX=2105") in new stack
    -- Executing [s@macro-exten-vm:4] Set("SIP/2104-00000003", "__EXTTOCALL=2105") in new stack
    -- Executing [s@macro-exten-vm:5] Set("SIP/2104-00000003", "CFUEXT=") in new stack
   -- Executing [s@macro-exten-vm:6] Set("SIP/2104-00000003", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("SIP/2104-00000003", "RT=15") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("SIP/2104-00000003", "record-enable,2105,IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/2104-00000003", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/2104-00000003", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/2104-00000003", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/2104-00000003", "1?IN") in new stack
    -- Goto (macro-record-enable,s,20)
    -- Executing [s@macro-record-enable:20] ExecIf("SIP/2104-00000003", "1?MacroExit()") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("SIP/2104-00000003", "dial-one,15,tr,2105") in new stack
    -- Executing [s@macro-dial-one:1] Set("SIP/2104-00000003", "DEXTEN=2105") in new stack
    -- Executing [s@macro-dial-one:2] Set("SIP/2104-00000003", "DIALSTATUS_CW=") in new stack
    -- Executing [s@macro-dial-one:3] GosubIf("SIP/2104-00000003", "0?screen,1") in new stack
    -- Executing [s@macro-dial-one:4] GosubIf("SIP/2104-00000003", "0?cf,1") in new stack
    -- Executing [s@macro-dial-one:5] GotoIf("SIP/2104-00000003", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,8)
    -- Executing [s@macro-dial-one:8] GotoIf("SIP/2104-00000003", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:9] GotoIf("SIP/2104-00000003", "0?continue") in new stack
    -- Executing [s@macro-dial-one:10] Set("SIP/2104-00000003", "EXTHASCW=ENABLED") in new stack
    -- Executing [s@macro-dial-one:11] GotoIf("SIP/2104-00000003", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,23)
    -- Executing [s@macro-dial-one:23] GotoIf("SIP/2104-00000003", "1?next3:continue") in new stack
    -- Goto (macro-dial-one,s,24)
    -- Executing [s@macro-dial-one:24] ExecIf("SIP/2104-00000003", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
    -- Executing [s@macro-dial-one:25] GotoIf("SIP/2104-00000003", "0?nodial") in new stack
   -- Executing [s@macro-dial-one:26] GosubIf("SIP/2104-00000003", "1?dstring,1:dlocal,1") in new stack
    -- Executing [dstring@macro-dial-one:1] Set("SIP/2104-00000003", "DSTRING=") in new stack
    -- Executing [dstring@macro-dial-one:2] Set("SIP/2104-00000003", "DEVICES=2105&2115") in new stack
    -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/2104-00000003", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:4] Set("SIP/2104-00000003", "LOOPCNT=2") in new stack
    -- Executing [dstring@macro-dial-one:5] Set("SIP/2104-00000003", "ITER=1") in new stack
    -- Executing [dstring@macro-dial-one:6] Set("SIP/2104-00000003", "THISDIAL=SIP/2105") in new stack
    -- Executing [dstring@macro-dial-one:7] GosubIf("SIP/2104-00000003", "1?zap2dahdi,1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/2104-00000003", "0?Return()") in new stack
    -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/2104-00000003", "NEWDIAL=") in new stack
    -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/2104-00000003", "LOOPCNT2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/2104-00000003", "ITER2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/2104-00000003", "THISPART2=SIP/2105") in new stack
    -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/2104-00000003", "0?Set(THISPART2=DAHDI/2105)") in new stack
    -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/2104-00000003", "NEWDIAL=SIP/2105&") in new stack
    -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/2104-00000003", "ITER2=2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/2104-00000003", "0?begin2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/2104-00000003", "THISDIAL=SIP/2105") in new stack
    -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/2104-00000003", "") in new stack
    -- Executing [dstring@macro-dial-one:8] Set("SIP/2104-00000003", "DSTRING=SIP/2105&") in new stack
    -- Executing [dstring@macro-dial-one:9] Set("SIP/2104-00000003", "ITER=2") in new stack
    -- Executing [dstring@macro-dial-one:10] GotoIf("SIP/2104-00000003", "1?begin") in new stack
    -- Goto (macro-dial-one,dstring,6)
    -- Executing [dstring@macro-dial-one:6] Set("SIP/2104-00000003", "THISDIAL=SIP/2115") in new stack
    -- Executing [dstring@macro-dial-one:7] GosubIf("SIP/2104-00000003", "1?zap2dahdi,1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/2104-00000003", "0?Return()") in new stack
    -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/2104-00000003", "NEWDIAL=") in new stack
    -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/2104-00000003", "LOOPCNT2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/2104-00000003", "ITER2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/2104-00000003", "THISPART2=") in new stack
    -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/2104-00000003", "0?Set(THISPART2=DAHDI)") in new stack
    -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/2104-00000003", "NEWDIAL=&") in new stack
    -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/2104-00000003", "ITER2=2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/2104-00000003", "0?begin2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/2104-00000003", "THISDIAL=") in new stack
    -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/2104-00000003", "") in new stack
    -- Executing [dstring@macro-dial-one:8] Set("SIP/2104-00000003", "DSTRING=SIP/2105&&") in new stack
    -- Executing [dstring@macro-dial-one:9] Set("SIP/2104-00000003", "ITER=3") in new stack
    -- Executing [dstring@macro-dial-one:10] GotoIf("SIP/2104-00000003", "0?begin") in new stack
   -- Executing [dstring@macro-dial-one:11] Set("SIP/2104-00000003", "DSTRING=SIP/2105&") in new stack
    -- Executing [dstring@macro-dial-one:12] Return("SIP/2104-00000003", "") in new stack
    -- Executing [s@macro-dial-one:27] GotoIf("SIP/2104-00000003", "1?skiptrace") in new stack
    -- Goto (macro-dial-one,s,29)
    -- Executing [s@macro-dial-one:29] Set("SIP/2104-00000003", "D_OPTIONS=tr") in new stack
    -- Executing [s@macro-dial-one:30] ExecIf("SIP/2104-00000003", "0?SIPAddHeader(Alert-Info: )") in new stack
    -- Executing [s@macro-dial-one:31] ExecIf("SIP/2104-00000003", "0?SIPAddHeader()") in new stack
    -- Executing [s@macro-dial-one:32] ExecIf("SIP/2104-00000003", "0?SetMusicOnHold()") in new stack
    -- Executing [s@macro-dial-one:33] GosubIf("SIP/2104-00000003", "0?qwait,1") in new stack
    -- Executing [s@macro-dial-one:34] Set("SIP/2104-00000003", "__CWIGNORE=") in new stack
    -- Executing [s@macro-dial-one:35] Set("SIP/2104-00000003", "__KEEPCID=TRUE") in new stack
    -- Executing [s@macro-dial-one:36] Dial("SIP/2104-00000003", "SIP/2105&,15,tr") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called 2105
    -- Executing [s@macro-dial-one:37] ExecIf("SIP/2104-00000003", "0?Set(DIALSTATUS=)") in new stack
    -- Executing [s@macro-dial-one:38] GosubIf("SIP/2104-00000003", "0?s-INVALIDARGS,1") in new stack
    -- Executing [s@macro-dial-one:39] MacroExit("SIP/2104-00000003", "") in new stack
    -- Executing [s@macro-exten-vm:10] GotoIf("SIP/2104-00000003", "0?exit,return") in new stack
    -- Executing [s@macro-exten-vm:11] Set("SIP/2104-00000003", "SV_DIALSTATUS=INVALIDARGS") in new stack
    -- Executing [s@macro-exten-vm:12] GosubIf("SIP/2104-00000003", "0?docfu,1") in new stack
    -- Executing [s@macro-exten-vm:13] GosubIf("SIP/2104-00000003", "0?docfb,1") in new stack
    -- Executing [s@macro-exten-vm:14] Set("SIP/2104-00000003", "DIALSTATUS=INVALIDARGS") in new stack
    -- Executing [s@macro-exten-vm:15] NoOp("SIP/2104-00000003", "Voicemail is '2105'") in new stack
    -- Executing [s@macro-exten-vm:16] GotoIf("SIP/2104-00000003", "0?s-INVALIDARGS,1") in new stack
    -- Executing [s@macro-exten-vm:17] NoOp("SIP/2104-00000003", "Sending to Voicemail box 2105") in new stack
    -- Executing [s@macro-exten-vm:18] Macro("SIP/2104-00000003", "vm,2105,INVALIDARGS,") in new stack
    -- Executing [s@macro-vm:1] Macro("SIP/2104-00000003", "user-callerid,SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/2104-00000003", "AMPUSER=2104") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/2104-00000003", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/2104-00000003", "0?Set(REALCALLERIDNUM=2104)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/2104-00000003", "AMPUSER=2104") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/2104-00000003", "AMPUSERCIDNAME=Test") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/2104-00000003", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/2104-00000003", "AMPUSERCID=2104") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/2104-00000003", "CALLERID(all)="Test" <2104>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/2104-00000003", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/2104-00000003", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/2104-00000003", "Using CallerID "Test" <2104>") in new stack
    -- Executing [s@macro-vm:2] Set("SIP/2104-00000003", "VMGAIN=""") in new stack
    -- Executing [s@macro-vm:3] GotoIf("SIP/2104-00000003", "1?vmx,1") in new stack
    -- Goto (macro-vm,vmx,1)
    -- Executing [vmx@macro-vm:1] Set("SIP/2104-00000003", "MEXTEN=2105") in new stack
    -- Executing [vmx@macro-vm:2] Set("SIP/2104-00000003", "MMODE=INVALIDARGS") in new stack
    -- Executing [vmx@macro-vm:3] Set("SIP/2104-00000003", "RETVM=") in new stack
    -- Executing [vmx@macro-vm:4] Set("SIP/2104-00000003", "MODE=unavail") in new stack
    -- Executing [vmx@macro-vm:5] GotoIf("SIP/2104-00000003", "1?chknomsg") in new stack
    -- Goto (macro-vm,vmx,7)
    -- Executing [vmx@macro-vm:7] GotoIf("SIP/2104-00000003", "0?s-INVALIDARGS,1") in new stack
    -- Executing [vmx@macro-vm:8] GotoIf("SIP/2104-00000003", "1?notdirect") in new stack
    -- Goto (macro-vm,vmx,10)
    -- Executing [vmx@macro-vm:10] NoOp("SIP/2104-00000003", "Checking if ext 2105 is enabled: ") in new stack
    -- Executing [vmx@macro-vm:11] GotoIf("SIP/2104-00000003", "1?s-INVALIDARGS,1") in new stack
    -- Goto (macro-vm,s-INVALIDARGS,1)
    -- Executing [s-INVALIDARGS@macro-vm:1] Macro("SIP/2104-00000003", "get-vmcontext,2105") in new stack
    -- Executing [s@macro-get-vmcontext:1] Set("SIP/2104-00000003", "VMCONTEXT=default") in new stack
    -- Executing [s@macro-get-vmcontext:2] GotoIf("SIP/2104-00000003", "0?200:300") in new stack
    -- Goto (macro-get-vmcontext,s,300)
    -- Executing [s@macro-get-vmcontext:300] NoOp("SIP/2104-00000003", "") in new stack
    -- Executing [s-INVALIDARGS@macro-vm:2] VoiceMail("SIP/2104-00000003", "2105@default,u""") in new stack
    -- <SIP/2104-00000003> Playing 'vm-theperson.ulaw' (language 'en')
    -- <SIP/2104-00000003> Playing 'digits/2.ulaw' (language 'en')
    -- <SIP/2104-00000003> Playing 'digits/1.ulaw' (language 'en')
    -- <SIP/2104-00000003> Playing 'digits/0.ulaw' (language 'en')
  == Spawn extension (macro-vm, s-INVALIDARGS, 2) exited non-zero on 'SIP/2104-00000003' in macro 'vm'
  == Spawn extension (macro-exten-vm, s, 18) exited non-zero on 'SIP/2104-00000003' in macro 'exten-vm'
  == Spawn extension (from-internal, 2105, 1) exited non-zero on 'SIP/2104-00000003'
    -- Executing [h@from-internal:1] Macro("SIP/2104-00000003", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/2104-00000003", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,4)
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/2104-00000003", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/2104-00000003", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] Hangup("SIP/2104-00000003", "") in new stack
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/2104-00000003' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/2104-00000003'
database show AMPUSER/2105
/AMPUSER/2105/cidname                             : Brenda
/AMPUSER/2105/cidnum                              : 2105
/AMPUSER/2105/device                              : 2105&2115
/AMPUSER/2105/language                            :
/AMPUSER/2105/noanswer                            :
/AMPUSER/2105/outboundcid                         :
/AMPUSER/2105/password                            : ****
/AMPUSER/2105/recording                           : out=Adhoc|in=Adhoc
/AMPUSER/2105/ringtimer                           : 0
/AMPUSER/2105/voicemail                           : default
10 results found.
home*CLI> database show AMPUSER/2104
/AMPUSER/2104/cidname                             : Test
/AMPUSER/2104/cidnum                              : 2104
/AMPUSER/2104/device                              : 2104
/AMPUSER/2104/language                            :
/AMPUSER/2104/noanswer                            :
/AMPUSER/2104/outboundcid                         :
/AMPUSER/2104/password                            : ****
/AMPUSER/2104/recording                           : out=Adhoc|in=Adhoc
/AMPUSER/2104/ringtimer                           : 0
/AMPUSER/2104/voicemail                           : default
10 results found.

The passwords aren't really *'s And as soon as I remove the extra device (2115) calling works normal.

04/13/10 22:57:25 changed by p_lindheimer

(In [9501]) I think this is the issue, can you please test and give feedback, re #4212 and re #4155

04/13/10 23:14:45 changed by Socs28

That appears to have fixed it on both systems, just had to redo the second device. I went ahead and added a third device to the one user on one of the systems and that worked as well.

04/14/10 17:04:42 changed by drmessano

Didn't know I was having a problem until I found this ticket. I was able to reproduce and found [9501] fixed it as well.

04/14/10 20:17:42 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

thanks for the feedback, closing as fixed :)

05/15/10 13:02:58 changed by p_lindheimer

(In [9641]) merged back experimental dial-one macro fixes from trunk revisions: 9489,9508,8914,9501,9393,9290 http://svn.freepbx.org/modules/branches/2.8

........

r9393 | p_lindheimer | 2010-03-25 19:43:07 -0700 (Thu, 25 Mar 2010) | 1 line

fixes #4155 THISPART variable in zap2dahdi clobbering same variable in dstring routine

........

r9489 | p_lindheimer | 2010-04-12 10:52:35 -0700 (Mon, 12 Apr 2010) | 1 line

missing closing } re #4205, still need to look at flp-sup issue

........

r9501 | p_lindheimer | 2010-04-13 19:57:25 -0700 (Tue, 13 Apr 2010) | 1 line

I think this is the issue, can you please test and give feedback, re #4212 and re #4155

........

r9508 | p_lindheimer | 2010-04-15 12:27:59 -0700 (Thu, 15 Apr 2010) | 1 line

fixes failed call to user with no device logged in, please test and confirm if this fixes the issue re #4155

........