Spent too much time trying to get call-limit and BLF/call-pickup to work together, if at all…
Asterisk 1.2.12.1.
Setup thusly
100, 275 Ring Group 1
102, 104, 270 Ring Group 2
(100, 102 & 104 are gxp-2000’s; fw 1.1.1.14) (Other 2 phones are Aastra’s)
6 ZAP (2 tdm04b) lines, 1-3 ring RG 1, 4-6 ring RG 2
Each extension has a BLF for every other extension (so 4 BLF’s in each phone)
One possible scenario: 100 off-hook. Subsequent calls in to RG 1,
EXT 100 rings on another appearance.
NO problem.
Incoming calls to RG 2 do NOT light up BLF Lamps on EXT 100 (or any EXT for that matter).
If I:
change friend to peer, OR remove call-limit completely, subsequent calls to RG 1, DO NOT ring on 100, they only ring at 275.
In fact, contrary to what the wiki and other sources say, if I completely remove “call-limit”, multiple appearances simply DO NOT occur. I must have call-limit explicitly stated, AND type must be set to friend in order for multiple appearences to work.
Now, if I remove call-limit completely, AND set type=peer, then multiple appearences DO NOT occur, BUT BLF lamps light up properly. Call Pickup also works when the originating call is from within our own office (i.e. from one of the other EXT’s), BUT if the originating call is coming in from a ZAP channel, call pickup doesn’t work (the lamps still light though).
Any ideas, suggestions, hints, tips Greatly Apprecaited.
Thanks
[sip.conf]
[100]
username=100
type=friend
record_out=Adhoc
record_in=Adhoc
qualify=no
nat=never
mailbox=100@device
host=dynamic
dtmfmode=rfc2833
call-limit=6
context=from-internal
canreinvite=no
subscribecontext=ext-local
notifyringing=yes
callerid=Andrew <100>
[102]
username=102
type=friend
record_out=Adhoc
record_in=Adhoc
qualify=no
nat=never
mailbox=102@device
host=dynamic
dtmfmode=rfc2833
call-limit=6
context=from-internal
canreinvite=no
subscribecontext=ext-local
notifyringing=yes
callerid=Antoinette <102>
[104]
username=104
type=friend
record_out=Adhoc
record_in=Adhoc
qualify=no
nat=never
mailbox=104@device
host=dynamic
dtmfmode=rfc2833
call-limit=6
context=from-internal
canreinvite=no
subscribecontext=ext-local
notifyringing=yes
callerid=Aura <104>
[270]
username=270
type=friend
record_out=Adhoc
record_in=Adhoc
qualify=no
nat=never
mailbox=270@device
host=dynamic
dtmfmode=rfc2833
call-limit=6
context=from-internal
canreinvite=no
subscribecontext=ext-local
notifyringing=yes
callerid=Linda <270>
[275]
username=275
type=friend
record_out=Adhoc
record_in=Adhoc
qualify=no
nat=never
mailbox=275@device
host=dynamic
dtmfmode=rfc2833
call-limit=6
context=from-internal
canreinvite=no
subscribecontext=ext-local
notifyringing=yes
callerid=Richard <275>
[ext-local]
include => ext-local-custom
exten => 100,1,Macro(exten-vm,100,100)
exten => 100,hint,SIP/100
exten => ${VM_PREFIX}100,1,Macro(vm,100,DIRECTDIAL)
exten => 102,1,Macro(exten-vm,102,102)
exten => 102,hint,SIP/102
exten => ${VM_PREFIX}102,1,Macro(vm,102,DIRECTDIAL)
exten => 104,1,Macro(exten-vm,104,104)
exten => 104,hint,SIP/104
exten => ${VM_PREFIX}104,1,Macro(vm,104,DIRECTDIAL)
exten => 270,1,Macro(exten-vm,270,270)
exten => 270,hint,SIP/270
exten => ${VM_PREFIX}270,1,Macro(vm,270,DIRECTDIAL)
exten => 275,1,Macro(exten-vm,275,275)
exten => 275,hint,SIP/275
exten => ${VM_PREFIX}275,1,Macro(vm,275,DIRECTDIAL)
exten => _**.,1,Pickup(${EXTEN:2}) ; for the gxp-2000 blf pickup ringing call
Scenario 1 in action
Verbose 10
Core debug was 0 and is now 10
– Executing Macro(“SIP/100-08b67438”, “dialout-trunk|1|18005558355||”) in new stack
– Executing GotoIf(“SIP/100-08b67438”, “1?3:2”) in new stack
– Goto (macro-dialout-trunk,s,3)
– Executing Macro(“SIP/100-08b67438”, “user-callerid”) in new stack
– Executing GotoIf(“SIP/100-08b67438”, “0?report”) in new stack
– Executing GotoIf(“SIP/100-08b67438”, “0?start”) in new stack
– Executing Set(“SIP/100-08b67438”, “REALCALLERIDNUM=100”) in new stack
– Executing NoOp(“SIP/100-08b67438”, “REALCALLERIDNUM is 100”) in new stack
– Executing Set(“SIP/100-08b67438”, “AMPUSER=100”) in new stack
– Executing Set(“SIP/100-08b67438”, “AMPUSERCIDNAME=Andrew Tinucci”) in new stack
– Executing GotoIf(“SIP/100-08b67438”, “0?report”) in new stack
– Executing Set(“SIP/100-08b67438”, “CALLERID(all)=Andrew Tinucci <100>”) in new stack
– Executing NoOp(“SIP/100-08b67438”, “Using CallerID “Andrew Tinucci” <100>”) in new stack
– Executing Macro(“SIP/100-08b67438”, “record-enable|100|OUT”) in new stack
– Executing GotoIf(“SIP/100-08b67438”, “0 > 0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing AGI(“SIP/100-08b67438”, “recordingcheck|20061024-004041|1161664841.11”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20061024-004041|1161664841.11: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“SIP/100-08b67438”, “No recording needed”) in new stack
– Executing Macro(“SIP/100-08b67438”, “outbound-callerid|1”) in new stack
– Executing GotoIf(“SIP/100-08b67438”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing NoOp(“SIP/100-08b67438”, “REALCALLERIDNUM is 100”) in new stack
– Executing Set(“SIP/100-08b67438”, “USEROUTCID=”) in new stack
– Executing Set(“SIP/100-08b67438”, “EMERGENCYCID=”) in new stack
– Executing Set(“SIP/100-08b67438”, “TRUNKOUTCID=”) in new stack
– Executing GotoIf(“SIP/100-08b67438”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,11)
– Executing GotoIf(“SIP/100-08b67438”, “1?usercid”) in new stack
– Goto (macro-outbound-callerid,s,13)
– Executing GotoIf(“SIP/100-08b67438”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,15)
– Executing NoOp(“SIP/100-08b67438”, “CallerID set to “Andrew Tinucci” <100>”) in new stack
– Executing Set(“SIP/100-08b67438”, “GROUP()=OUT_1”) in new stack
– Executing GotoIf(“SIP/100-08b67438”, “0?108”) in new stack
– Executing Set(“SIP/100-08b67438”, “DIAL_NUMBER=18005558355”) in new stack
– Executing Set(“SIP/100-08b67438”, “DIAL_TRUNK=1”) in new stack
– Executing AGI(“SIP/100-08b67438”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
– AGI Script fixlocalprefix completed, returning 0
– Executing Set(“SIP/100-08b67438”, “OUTNUM=18005558355”) in new stack
– Executing Set(“SIP/100-08b67438”, “custom=ZAP/1”) in new stack
– Executing GotoIf(“SIP/100-08b67438”, “0?16”) in new stack
– Executing Dial(“SIP/100-08b67438”, “ZAP/1/18005558355|120|r”) in new stack
– Called 1/18005558355
– Zap/1-1 answered SIP/100-08b67438
– Starting simple switch on ‘Zap/5-1’
– Executing NoOp(“Zap/5-1”, "Entering from-zaptel with DID == ") in new stack
– Executing Set(“Zap/5-1”, “DID=s”) in new stack
– Executing NoOp(“Zap/5-1”, “DID is now s”) in new stack
– Executing GotoIf(“Zap/5-1”, “1?zapok:notzap”) in new stack
– Goto (from-zaptel,s,7)
– Executing NoOp(“Zap/5-1”, “Is a Zaptel Channel”) in new stack
– Executing Set(“Zap/5-1”, “CHAN=5-1”) in new stack
– Executing Set(“Zap/5-1”, “CHAN=5”) in new stack
– Executing Macro(“Zap/5-1”, “from-zaptel-5|s|1”) in new stack
– Executing NoOp(“Zap/5-1”, “Entering macro-from-zaptel-5 with DID = s”) in new stack
– Executing Set(“Zap/5-1”, “FROM_DID=s”) in new stack
– Executing Goto(“Zap/5-1”, “ext-group|2|1”) in new stack
– Goto (ext-group,2,1)
== Channel ‘Zap/5-1’ jumping out of macro ‘from-zaptel-5’
– Executing Macro(“Zap/5-1”, “user-callerid|”) in new stack
– Executing GotoIf(“Zap/5-1”, “0?report”) in new stack
– Executing GotoIf(“Zap/5-1”, “0?start”) in new stack
– Executing Set(“Zap/5-1”, “REALCALLERIDNUM=5163766848”) in new stack
– Executing NoOp(“Zap/5-1”, “REALCALLERIDNUM is 5163766848”) in new stack
– Executing Set(“Zap/5-1”, “AMPUSER=”) in new stack
– Executing Set(“Zap/5-1”, “AMPUSERCIDNAME=”) in new stack
– Executing GotoIf(“Zap/5-1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,9)
– Executing NoOp(“Zap/5-1”, “Using CallerID “PELLITTERI LIND” <8005558355>”) in new stack
– Executing GotoIf(“Zap/5-1”, “0?NEWPREFIX”) in new stack
– Executing Set(“Zap/5-1”, “CALLERID(name)=PELLITTERI LIND”) in new stack
– Executing Set(“Zap/5-1”, “RGPREFIX=”) in new stack
– Executing Set(“Zap/5-1”, “CALLERID(name)=PELLITTERI LIND”) in new stack
– Executing Set(“Zap/5-1”, “RecordMethod=Group”) in new stack
– Executing Macro(“Zap/5-1”, “record-enable|102-104-270|Group”) in new stack
– Executing GotoIf(“Zap/5-1”, “0 > 0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing AGI(“Zap/5-1”, “recordingcheck|20061024-004116|1161664875.13”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“Zap/5-1”, “No recording needed”) in new stack
– Executing Set(“Zap/5-1”, “RingGroupMethod=ringall”) in new stack
– Executing Macro(“Zap/5-1”, “dial|21|tr|102-104-270”) in new stack
– Executing AGI(“Zap/5-1”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
– dialparties.agi: priority is 1
dialparties.agi: Caller ID name is ‘LIND’ number is '5555551212’
dialparties.agi: Methodology of ring is ‘ringall’
– dialparties.agi: Added extension 102 to extension map
– dialparties.agi: Added extension 104 to extension map
– dialparties.agi: Added extension 270 to extension map
– dialparties.agi: Extension 102 cf is disabled
– dialparties.agi: Extension 104 cf is disabled
– dialparties.agi: Extension 270 cf is disabled
– dialparties.agi: Extension 102 do not disturb is disabled
– dialparties.agi: Extension 104 do not disturb is disabled
– dialparties.agi: Extension 270 do not disturb is disabled
> dialparties.agi: extnum: 102
> dialparties.agi: exthascw: 0
> dialparties.agi: exthascfb: 0
> dialparties.agi: extcfb:
> dialparties.agi: exthascfu: 0
> dialparties.agi: extcfu:
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
> dialparties.agi: ExtensionState: 0
– dialparties.agi: Checking CW and CFB status for extension 102
– dialparties.agi: DbSet CALLTRACE/102 to 5555551212
> dialparties.agi: extnum: 104
> dialparties.agi: exthascw: 0
> dialparties.agi: exthascfb: 0
> dialparties.agi: extcfb:
> dialparties.agi: exthascfu: 0
> dialparties.agi: extcfu:
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
> dialparties.agi: ExtensionState: 0
– dialparties.agi: Checking CW and CFB status for extension 104
– dialparties.agi: DbSet CALLTRACE/104 to 5555551212
> dialparties.agi: extnum: 270
> dialparties.agi: exthascw: 0
> dialparties.agi: exthascfb: 0
> dialparties.agi: extcfb:
> dialparties.agi: exthascfu: 0
> dialparties.agi: extcfu:
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
> dialparties.agi: ExtensionState: 0
– dialparties.agi: Checking CW and CFB status for extension 270
– dialparties.agi: DbSet CALLTRACE/270 to 5555551212
– AGI Script dialparties.agi completed, returning 0
– Executing Dial(“Zap/5-1”, “SIP/102&SIP/104&SIP/270|21|tr”) in new stack
– Called 102
– Called 104
– Called 270
– SIP/102-08b81278 is ringing
– SIP/104-08b86ef0 is ringing
– SIP/270-08b8cb68 is ringing
– Hungup ‘Zap/5-1’