Fast busy on inbound calls from a new trunk

We have FreePBX running in one office, an old Cisco CallManager 4 (CCM) system in another office and have just added a Cisco Unified Communications Express (CUCE)module in another office. We’ve been able to make make and receive calls between the FreePBX and CCM systems and between the CCM and CUCE systems. However, we can only make calls from the FreePBX system to the CUCE system not receive them. If we call from a phone on the CUCE system to a phone on the FreePBX system we get a fast busy. In the full log, I see the following entries when we make the call.

[notag][Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]ternal:1] NoOp("SIP/192.168.100.249-b7b31228", "Received incoming SIP connection from unknown peer to 30851") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:2] Set("SIP/192.168.100.249-b7b31228", "DID=30851") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:3] Goto("SIP/192.168.100.249-b7b31228", "s|1") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Goto (from-sip-external,s,1) [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:1] GotoIf("SIP/192.168.100.249-b7b31228", "1?from-trunk|30851|1") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Goto (from-trunk,30851,1) [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:1] NoOp("SIP/192.168.100.249-b7b31228", "Catch-All DID Match - Found 30851 - You probably want a DID for this.") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:2] Goto("SIP/192.168.100.249-b7b31228", "ext-did|s|1") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Goto (ext-did,s,1) [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:1] Set("SIP/192.168.100.249-b7b31228", "__FROM_DID=s") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:2] Gosub("SIP/192.168.100.249-b7b31228", "app-blacklist-check|s|1") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:1] LookupBlacklist("SIP/192.168.100.249-b7b31228", "") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:2] GotoIf("SIP/192.168.100.249-b7b31228", "0?blacklisted") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:3] Return("SIP/192.168.100.249-b7b31228", "") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:3] GotoIf("SIP/192.168.100.249-b7b31228", "1 ?cidok") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Goto (ext-did,s,5) [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:5] NoOp("SIP/192.168.100.249-b7b31228", "CallerID is "Ken Rider" <7201>") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:6] Set("SIP/192.168.100.249-b7b31228", "__CALLINGPRES_SV=allowed_not_screened") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:7] SetCallerPres("SIP/192.168.100.249-b7b31228", "allowed_not_screened") in new stack [Nov 21 18:26:49] VERBOSE[26104] logger.c: -- Executing [[email protected]:8] Goto("SIP/192.168.100.249-b7b31228", "") in new stack [Nov 21 18:26:49] WARNING[26104] pbx.c: Goto requires an argument (optional context|optional extension|priority) [Nov 21 18:26:49] VERBOSE[26104] logger.c: == Spawn extension (ext-did, s, 8) exited non-zero on 'SIP/192.168.100.249-b7b31228' [/notag]

It looks like the FreePBX is classifying the call as “from-sip-external” rather than “from-internal” as it does on calls from the CCM system. It also says it’s from an “unknown peer”. I’ve setup both trunks identically (as far as I can tell). The only difference in the user details is the IP address of the system. Here’s what they look like in sip_additional.conf (generated by FreePBX).

[code][notag][fromccm]
canreinvite=no
host=192.168.101.249
type=friend
context=from-internal

[fromcuce]
canreinvite=no
host=192.168.100.249
type=friend
context=from-internal
[/notag][/code]

I’ve searched through the forums for similar problems and none of the possible solutions I found seem to make a difference when I apply them. Any ideas where to go from here?

There is something wrong with the dialplan:

[Nov 21 18:26:49] VERBOSE[26104] logger.c:     -- Executing [[email protected]:8] Goto("SIP/192.168.100.249-b7b31228", "") in new stack
[Nov 21 18:26:49] WARNING[26104] pbx.c: Goto requires an argument (optional context|optional extension|priority)

When you are at [email protected]:8 you have a goto without destination.
There is something wrong with the setup and/or the dialplan generated.
Please post back the version of FreePBX you use.

The FreePBX version is 2.4.0.

Just for curiosity, could you post your [ext-did] section? Don’t forget to rename/remove ip-addresses if they are public.

Interesting (based on your comment) I don’t see any IP addresses in the [notag][ext-did][/notag] section. Here it is.

[code][notag][ext-did]
include => ext-did-custom
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => s,1,Set(__FROM_DID=${EXTEN})
exten => s,n,Gosub(app-blacklist-check,s,1)
exten => s,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => s,n,Set(CALLERID(name)=${CALLERID(num)})
exten => s,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => s,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => s,n,SetCallerPres(allowed_not_screened)
exten => s,n,Goto()
exten => 409800,1,Set(__FROM_DID=${EXTEN})
exten => 409800,n,Gosub(app-blacklist-check,s,1)
exten => 409800,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409800,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409800,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409800,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409800,n,SetCallerPres(allowed_not_screened)
exten => 409800,n,Goto(ext-group,30000,1)
exten => 409801,1,Set(__FROM_DID=${EXTEN})
exten => 409801,n,Gosub(app-blacklist-check,s,1)
exten => 409801,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409801,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409801,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409801,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409801,n,SetCallerPres(allowed_not_screened)
exten => 409801,n,Goto(ext-group,30801,1)
exten => 409802,1,Set(__FROM_DID=${EXTEN})
exten => 409802,n,Gosub(app-blacklist-check,s,1)
exten => 409802,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409802,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409802,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409802,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409802,n,SetCallerPres(allowed_not_screened)
exten => 409802,n,Goto(ext-group,30802,1)
exten => 409806,1,Set(__FROM_DID=${EXTEN})
exten => 409806,n,Gosub(app-blacklist-check,s,1)
exten => 409806,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409806,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409806,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409806,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409806,n,SetCallerPres(allowed_not_screened)
exten => 409806,n,Goto(ext-group,30806,1)
exten => 409807,1,Set(__FROM_DID=${EXTEN})
exten => 409807,n,Gosub(app-blacklist-check,s,1)
exten => 409807,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409807,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409807,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409807,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409807,n,SetCallerPres(allowed_not_screened)
exten => 409807,n,Goto(ext-group,30807,1)
exten => 409808,1,Set(__FROM_DID=${EXTEN})
exten => 409808,n,Gosub(app-blacklist-check,s,1)
exten => 409808,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409808,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409808,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409808,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409808,n,SetCallerPres(allowed_not_screened)
exten => 409808,n,Goto(ext-group,30808,1)
exten => 409810,1,Set(__FROM_DID=${EXTEN})
exten => 409810,n,Gosub(app-blacklist-check,s,1)
exten => 409810,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409810,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409810,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409810,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409810,n,SetCallerPres(allowed_not_screened)
exten => 409810,n,Goto(ext-group,30810,1)
exten => 409811,1,Set(__FROM_DID=${EXTEN})
exten => 409811,n,Gosub(app-blacklist-check,s,1)
exten => 409811,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409811,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409811,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409811,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409811,n,SetCallerPres(allowed_not_screened)
exten => 409811,n,Goto(ext-group,30811,1)
exten => 409812,1,Set(__FROM_DID=${EXTEN})
exten => 409812,n,Gosub(app-blacklist-check,s,1)
exten => 409812,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409812,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409812,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409812,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409812,n,SetCallerPres(allowed_not_screened)
exten => 409812,n,Goto(ext-group,30812,1)
exten => 409813,1,Set(__FROM_DID=${EXTEN})
exten => 409813,n,Gosub(app-blacklist-check,s,1)
exten => 409813,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409813,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409813,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409813,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409813,n,SetCallerPres(allowed_not_screened)
exten => 409813,n,Goto(ext-group,30813,1)
exten => 409814,1,Set(__FROM_DID=${EXTEN})
exten => 409814,n,Gosub(app-blacklist-check,s,1)
exten => 409814,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409814,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409814,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409814,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409814,n,SetCallerPres(allowed_not_screened)
exten => 409814,n,Goto(ext-group,30814,1)
exten => 409815,1,Set(__FROM_DID=${EXTEN})
exten => 409815,n,Gosub(app-blacklist-check,s,1)
exten => 409815,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409815,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409815,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409815,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409815,n,SetCallerPres(allowed_not_screened)
exten => 409815,n,Goto(ext-group,30815,1)
exten => 409816,1,Set(__FROM_DID=${EXTEN})
exten => 409816,n,Gosub(app-blacklist-check,s,1)
exten => 409816,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409816,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409816,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409816,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409816,n,SetCallerPres(allowed_not_screened)
exten => 409816,n,Goto(ext-group,30816,1)
exten => 409817,1,Set(__FROM_DID=${EXTEN})
exten => 409817,n,Gosub(app-blacklist-check,s,1)
exten => 409817,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409817,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409817,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409817,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409817,n,SetCallerPres(allowed_not_screened)
exten => 409817,n,Goto(ext-group,30817,1)
exten => 409819,1,Set(__FROM_DID=${EXTEN})
exten => 409819,n,Gosub(app-blacklist-check,s,1)
exten => 409819,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409819,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409819,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409819,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409819,n,SetCallerPres(allowed_not_screened)
exten => 409819,n,Goto(ext-group,30819,1)
exten => 409820,1,Set(__FROM_DID=${EXTEN})
exten => 409820,n,Gosub(app-blacklist-check,s,1)
exten => 409820,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409820,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409820,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409820,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409820,n,SetCallerPres(allowed_not_screened)
exten => 409820,n,Goto(ext-group,30820,1)
exten => 409822,1,Set(__FROM_DID=${EXTEN})
exten => 409822,n,Gosub(app-blacklist-check,s,1)
exten => 409822,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409822,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409822,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409822,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409822,n,SetCallerPres(allowed_not_screened)
exten => 409822,n,Goto(ext-group,30822,1)
exten => 409823,1,Set(__FROM_DID=${EXTEN})
exten => 409823,n,Gosub(app-blacklist-check,s,1)
exten => 409823,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409823,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409823,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409823,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409823,n,SetCallerPres(allowed_not_screened)
exten => 409823,n,Goto(ext-group,30823,1)
exten => 409825,1,Set(__FROM_DID=${EXTEN})
exten => 409825,n,Gosub(app-blacklist-check,s,1)
exten => 409825,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409825,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409825,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409825,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409825,n,SetCallerPres(allowed_not_screened)
exten => 409825,n,Goto(ext-group,30825,1)
exten => 409826,1,Set(__FROM_DID=${EXTEN})
exten => 409826,n,Gosub(app-blacklist-check,s,1)
exten => 409826,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409826,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409826,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409826,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409826,n,SetCallerPres(allowed_not_screened)
exten => 409826,n,Goto(ext-group,30826,1)
exten => 409827,1,Set(__FROM_DID=${EXTEN})
exten => 409827,n,Gosub(app-blacklist-check,s,1)
exten => 409827,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409827,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409827,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409827,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409827,n,SetCallerPres(allowed_not_screened)
exten => 409827,n,Goto(ext-group,30827,1)
exten => 409828,1,Set(__FROM_DID=${EXTEN})
exten => 409828,n,Gosub(app-blacklist-check,s,1)
exten => 409828,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409828,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409828,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409828,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409828,n,SetCallerPres(allowed_not_screened)
exten => 409828,n,Goto(ext-group,30828,1)
exten => 409829,1,Set(__FROM_DID=${EXTEN})
exten => 409829,n,Gosub(app-blacklist-check,s,1)
exten => 409829,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409829,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409829,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409829,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409829,n,SetCallerPres(allowed_not_screened)
exten => 409829,n,Goto(ext-group,30829,1)
exten => 409830,1,Set(__FROM_DID=${EXTEN})
exten => 409830,n,Gosub(app-blacklist-check,s,1)
exten => 409830,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409830,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409830,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409830,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409830,n,SetCallerPres(allowed_not_screened)
exten => 409830,n,Goto(ext-group,30830,1)
exten => 409831,1,Set(__FROM_DID=${EXTEN})
exten => 409831,n,Gosub(app-blacklist-check,s,1)
exten => 409831,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409831,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409831,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409831,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409831,n,SetCallerPres(allowed_not_screened)
exten => 409831,n,Goto(ext-group,30831,1)
exten => 409832,1,Set(__FROM_DID=${EXTEN})
exten => 409832,n,Gosub(app-blacklist-check,s,1)
exten => 409832,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409832,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409832,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409832,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409832,n,SetCallerPres(allowed_not_screened)
exten => 409832,n,Goto(ext-group,30832,1)
exten => 409833,1,Set(__FROM_DID=${EXTEN})
exten => 409833,n,Gosub(app-blacklist-check,s,1)
exten => 409833,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409833,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409833,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409833,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409833,n,SetCallerPres(allowed_not_screened)
exten => 409833,n,Goto(ext-group,30833,1)
exten => 409834,1,Set(__FROM_DID=${EXTEN})
exten => 409834,n,Gosub(app-blacklist-check,s,1)
exten => 409834,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409834,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409834,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409834,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409834,n,SetCallerPres(allowed_not_screened)
exten => 409834,n,Goto(ext-group,30834,1)
exten => 409850,1,Set(__FROM_DID=${EXTEN})
exten => 409850,n,Gosub(app-blacklist-check,s,1)
exten => 409850,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409850,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409850,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409850,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409850,n,SetCallerPres(allowed_not_screened)
exten => 409850,n,Goto(ext-group,30850,1)
exten => 409860,1,Set(__FROM_DID=${EXTEN})
exten => 409860,n,Gosub(app-blacklist-check,s,1)
exten => 409860,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409860,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409860,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409860,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409860,n,SetCallerPres(allowed_not_screened)
exten => 409860,n,Goto(ext-group,30860,1)
exten => 409862,1,Set(__FROM_DID=${EXTEN})
exten => 409862,n,Gosub(app-blacklist-check,s,1)
exten => 409862,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409862,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409862,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409862,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409862,n,SetCallerPres(allowed_not_screened)
exten => 409862,n,Goto(ext-group,30862,1)
exten => 409863,1,Set(__FROM_DID=${EXTEN})
exten => 409863,n,Gosub(app-blacklist-check,s,1)
exten => 409863,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409863,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409863,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409863,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409863,n,SetCallerPres(allowed_not_screened)
exten => 409863,n,Goto(ext-group,30863,1)
exten => 409864,1,Set(__FROM_DID=${EXTEN})
exten => 409864,n,Gosub(app-blacklist-check,s,1)
exten => 409864,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409864,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409864,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409864,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409864,n,SetCallerPres(allowed_not_screened)
exten => 409864,n,Goto(ext-group,30864,1)
exten => 409865,1,Set(__FROM_DID=${EXTEN})
exten => 409865,n,Gosub(app-blacklist-check,s,1)
exten => 409865,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409865,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409865,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409865,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409865,n,SetCallerPres(allowed_not_screened)
exten => 409865,n,Goto(ext-group,30865,1)
exten => 409866,1,Set(__FROM_DID=${EXTEN})
exten => 409866,n,Gosub(app-blacklist-check,s,1)
exten => 409866,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409866,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409866,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409866,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409866,n,SetCallerPres(allowed_not_screened)
exten => 409866,n,Goto(ext-group,30866,1)
exten => 409867,1,Set(__FROM_DID=${EXTEN})
exten => 409867,n,Gosub(app-blacklist-check,s,1)
exten => 409867,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409867,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409867,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409867,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409867,n,SetCallerPres(allowed_not_screened)
exten => 409867,n,Goto(ext-group,30867,1)
exten => 409869,1,Set(__FROM_DID=${EXTEN})
exten => 409869,n,Gosub(app-blacklist-check,s,1)
exten => 409869,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409869,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409869,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409869,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409869,n,SetCallerPres(allowed_not_screened)
exten => 409869,n,Goto(ext-group,30869,1)
exten => 409899,1,Set(__FROM_DID=${EXTEN})
exten => 409899,n,Gosub(app-blacklist-check,s,1)
exten => 409899,n,GotoIf($[ “${CALLERID(name)}” != “” ] ?cidok)
exten => 409899,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 409899,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 409899,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => 409899,n,SetCallerPres(allowed_not_screened)
exten => 409899,n,Goto(ext-meetme,29099,1)

; end of [ext-did]

[/notag][/code]

I’ve almost figured this out but need some help with the configuration of the trunk. I turned on SIP debugging and found the following additional details in the full log, "Found no matching peer or user for '192.168.100.249:61812'” and Above that in the SIP session details I see it starting with “SIP read from 192.168.100.249:61812”. It looks like the SIP session is coming from an unexpected port (not 5060 like normal). Is there any way to configure the trunk to accept from any port on a given IP address?

I added “insecure=port” to the user context ([notag][fromcuce][/notag] in this case) and calls in both directions are now working.