A few warnings in my logs, need some advise

I have a few warnings that are comming up in my asterist logs.

WARNING[13915] app_macro.c: No such context ‘macro-from-zaptel-1’ for macro ‘from-zaptel-1’

WARNING[14191] func_db.c: DB requires an argument, DB(/)

WARNING[13642] chan_sip.c: Remote host can’t match request BYE to call ‘480314974e5a6bdc058a75e531449e05@10.223.151.3’. Giving up.

im running asterisk 1.4.22-3 on centos5(trixbox ce 2.6.2)
I searched these forums as well as the trixbox forums and google with no luck.

Thanks for any help in advance.

(1) and (2) are errors in your dialplan.

(3) indicates that someone is trying to end a call that Asterisk doesn’t think exists. That can happen in error recovery.

Thanks for the quick help! Can you see what my issue is?(for the dialplan issue)

Outbound route "911"
Dial Patterns:
911
trunk:
ZAP/g0

Outbound route "to_site2"
Dial Patterns:
ZX
ZXX
ZXXX
ZXXXX
Trunk:
site2IAXtrunk

Outbound route "outside"
Dial Patterns:
.
9|.
Trunk:
ZAP/g0

This is in FreePBX.

I do a dedicated 911 dialplan as I have a scheme to reach other sites by direct extention dialing with a XXYY X=store# Y=ext# and I need 911 to be matched before that.

I put the . and the 9|. in for the outside aka default dialplan as I replaced a key system that had to dial 9 to get outside lines.

do you see a specific issue here? do I need to post the contents of another file?

As far as #3, the 10.223.151.3 is the local host. I do have some network issue that I think is cable related (or maybe a faulty switch) that I have ordered replacement parts for. Do you think that a network hickup that briefly disconnects a phone that was in a call could cause this error? My logs show all of the phones on 1 switch re-registering at the same time which tells me network issue.

Thanks again for the help.

For (1) and (2) you need to post etensions.conf, or rather you need to check its use of macros and AsteriskDB functions.

A temporary disconnection might well be a factor in (3).

I have searched through all of the extension* files add trixbox has a few includes in the extensions.conf but have zero instances of 'from-zaptel-1’
I suppose that is really the issue but I dont know how to fix it. Where is asterisk getting the ‘from-zaptel-1’ if it is not in extensions.conf? I even did a:
cat /etc/asterisk/*conf|grep “from-zaptel-1” and got zero results so it doesnt look like that is anywhere in the asterisk config directory. think this is some freepbx bug?

I have switched out the ethernet cable from the pbx to the switch and havent seen a disconnect/reconnect yet but also havent had any kind of load on the system yet. hopefull it was just a funky cable.

in the extensions_additional.conf file ( which is on an include to extensions.conf) I do have this:

[from-zaptel]
include => from-zaptel-custom
exten => _X.,1,Set(DID=${EXTEN})
exten => _X.,n,Goto(s,1)
exten => s,1,Noop(Entering from-zaptel with DID == ${DID})
exten => s,n,Ringing()
exten => s,n,Set(DID=${IF($["${DID}"= “”]?s:${DID})})
exten => s,n,Noop(DID is now ${DID})
exten => s,n,GotoIf($["${CHANNEL:0:3}"=“Zap”]?zapok:notzap)
exten => s,n(notzap),Goto(from-pstn,${DID},1)
exten => s,n,Macro(Hangupcall,dummy)
exten => s,n(zapok),Noop(Is a Zaptel Channel)
exten => s,n,Set(CHAN=${CHANNEL:4})
exten => s,n,Set(CHAN=${CUT(CHAN,-,1)})
exten => s,n,Macro(from-zaptel-${CHAN},${DID},1)
exten => s,n,Noop(Returned from Macro from-zaptel-${CHAN})
exten => s,n,Goto(from-pstn,${DID},1)
exten => fax,1,Goto(ext-fax,in_fax,1)

; end of [from-zaptel]

which im guessing that from-zaptel-${CHAN} is resolved to from-zaptel-1

I dont see any instance of micro-from-zaptel* anything here. do you see an error here? should that be listed in this macro?

Thanks


The above implicitly accesses teh context macro-from-zaptel-${CHAN}

The above implicitly accesses teh context macro-from-zaptel-${CHAN}

sorry to be so dumb, but what do I do about it? is this line actually functional? should I comment it out or should I try to build that macro? (fyi, I have no idea how to build the macro if that is your answer)

I havent altered anything on this setup, I wonder if this is a messed up config out-of-the-box on the trixbox ce 2.6.2 setup?

It’s a trixbox proble, but I couldn’t say whether it is a bug or a failure to follow the documentation. You need to use trixbox support channels.