Dundi Not invoking Followme

We have Dundi working for calling extensions on remote offices and allowing customers to call into their local office and get any extension at all offices. However, if the person is not at their extension the follow me function does not kick in. It works fine if a customer calls the office that the extension is part of but not when calling from a remote office.

I’m sure it has something to do with where the call gets placed in the dial plan.

When a call comes in over an IAX trunk via a dundi lookup where does it get placed in the dial plan. Or without rewriting my entire dundi stuff where could I place an include to have it jump to Followme if there is no answer at the extension.

THanks

Rob

Can you post the configs as it is hard to guess without seeing your setup. Sanitize and post your dundi.conf, iax_custom.conf, extensions_custom.conf. Also the extension ranges for each office.

Here are the conf files

=====> iax_custom.conf

[priv]
type=user
dbsecret=dundi/secret
context=dundi-priv-local

[services]
type=user
dbsecret=dundi/secret
context=dundi-services-local

[extensions]
type=user
dbsecret=dundi/secret
context=dundi-extensions-local

[parking]
type=user
dbsecret=dundi/secret
context=dundi-parking-local

======> dundi.conf

[mappings]

priv => dundi-priv-via-pstn,0,IAX,priv:${SECRET}@10.10.10.10/${NUMBER},nopartial
services => dundi-services,0,IAX,services:${SECRET}@10.10.10.10/${NUMBER},nopartial
extensions => dundi-extensions,0,IAX,extensions:${SECRET}@10.10.10.10/${NUMBER},nopartial
parking => dundi-parking,0,IAX,parking:${SECRET}@10.10.10.10/${NUMBER},nopartial

=======> extension_custom.conf

; This file contains example extensions_custom.conf entries.
; extensions_custom.conf should be used to include customizations
; to AMP’s Asterisk dialplan.

; All custom context should contain the string ‘custom’ in it’s name

; Extensions in AMP have access to the ‘from-internal’ context.
; The context ‘from-internal-custom’ is included in ‘from-internal’ by default

#include extensions_trixbox.conf
#include extensions_hud.conf

[outrt-002-Long_Distance-custom]
exten => _1NXXNXXXXXX,1,Macro(dundi-priv,${EXTEN:1})
exten => _1NXXNXXXXXX,2,Macro(dialout-trunk,1,${EXTEN},)
exten => _1NXXNXXXXXX,n,Macro(outisbusy,)

[from-internal-custom]

exten => 674,1,Answer ; dial MSG on any extension to manage your TeleYapper system
exten => 674,2,Wait(1)
exten => 674,3,Authenticate(8996)
exten => 674,4,Goto(yapper,s,1)

include => from-internal-trixbox

; This is the dundi information to link office dial plans.

[ext-local-custom]
include => trydundi-extensions

[dundi-priv-local]
include => dundi-priv-via-pstn

[dundi-services]
include => ext-queues

[dundi-services-local]
include => dundi-services

[dundi-services-switch]
switch => DUNDi/services

[dundi-services-lookup]
;include => dundi-services-local
include => dundi-services-switch

[macro-dundi-services]
exten => s,1,Goto(${ARG1},1)
include => dundi-services-lookup

[trydundi-services]
; Currently no remote services

[dundi-extensions]
include => ext-local

[dundi-extensions-local]
include => dundi-extensions

[dundi-extensions-switch]
switch => DUNDi/extensions

[dundi-extensions-lookup]
include => dundi-extensions-switch

[macro-dundi-extensions]
exten => s,1,Goto(${ARG1},1)
include => dundi-extensions-lookup

[trydundi-extensions]
exten => _[23]XXX,1,Macro(user-callerid,SKIPTTL)
exten => _[23]XXX,n,Macro(record-enable,${CALLERID(number)},OUT)
exten => _[23]XXX,n,Macro(dundi-extensions,${EXTEN})
exten => _[23]XXX,n,Congestion(5)
exten => _[23]XXX,n,Hangup

[dundi-priv-via-pstn]
exten => _55575XXXXX,1,Dial(ZAP/g0/${EXTEN})
exten => _55542[06789]XXXX,1,Dial(ZAP/g0/${EXTEN})
exten => _55544[235689]XXXX,1,Dial(ZAP/g0/${EXTEN})
exten => _555458XXXX,1,Dial(ZAP/g0/${EXTEN})

[dundi-parking]
exten => _7X,1,Goto(parkedcalls,${EXTEN},1)

[dundi-parking-local]
include => dundi-parking

[dundi-parking-switch]
switch => DUNDi/parking

[dundi-parking-lookup]
include => dundi-parking
include => dundi-parking-switch

[macro-dundi-parking]
exten => s,1,Goto(${ARG1},1)
include => dundi-parking-lookup

[dundi-priv-switch]
; Just a wrapper for the switch
switch => DUNDi/priv

[dundi-priv-lookup]
include => dundi-priv-local
include => dundi-priv-switch

[macro-dundi-priv]
exten => s,1,Goto(${ARG1},1)
include => dundi-priv-lookup

[trydundi-parking]
; no remote parking

Thanks for any help…

Sorry,
I don’t have time to look over your setup. However take a look at the from-did-direct context:

[from-did-direct]
include => ext-findmefollow                                                                                                                            
include => ext-local

in extensions.conf - that is the order that an extensions should be called. If you look in from-internal-additional you will see ext-findmefollow comes before ext-local so it has the same effect, to take the call if defined vs. ext-local taking it.

Philippe Lindheimer - FreePBX Project Lead
http//freepbx.org - IRC #freepbx

Excellent, adding that one line in my extension_custom.conf just above the include => ext-local solved the problem.

Thanks

B.T.W.

Keep up the great work. I am not a telephone person only the IT guy and given this project to investigate to see what advantages we would gain by switching our legacy phone system over to an IP - Voip system . I started with Asterisk, then moved to asteriskNow, then I found freePbx. Started my testing just before you launched your beta for 2.3. I have upgraded with each release on two systems at remote locations. It is working very well. I have the basic phone system going and now will start on the IVR, paging and other stuff.

I’m very impressed. Thank you.

hi R_Henry,

I have the same issue as you had. Can you tell me where did you put the line in the extension_custom.conf. I don’t see [from-DID-direct] in my file. and also do you add it in the box that has the followme or the remote box that try to call the followme extension?
thank you in advance.
David

here is my extension_custom.conf in case you need the info:

; This file contains example extensions_custom.conf entries.
; extensions_custom.conf should be used to include customizations
; to AMP’s Asterisk dialplan.

; All custom context should contain the string ‘custom’ in it’s name

; Extensions in AMP have access to the ‘from-internal’ context.
; The context ‘from-internal-custom’ is included in ‘from-internal’ by default

#include extensions_hud.conf

[from-internal-custom]

;1234,1,Playback(demo-congrats) ; extensions can dial 1234
;1234,2,Hangup()
;h,1,Hangup()
;include => custom-recordme ; extensions can also dial 5678

; custom-count2four,s,1 can be used as a custom target for
; a Digital Receptionist menu or a Call Group
;[custom-count2four]
;s,1,SayDigits(1234)
;s,2,Hangup

; custom-recordme,5678,1 can be used as a custom target for
; a Digital Receptionist menu or a Call Group
;[custom-recordme]
;exten => 5678,1,Wait(2)
;exten => 5678,2,Record(/tmp/asterisk-recording:gsm)
;exten => 5678,3,Wait(2)
;exten => 5678,4,Playback(/tmp/asterisk-recording)
;exten => 5678,5,Wait(2)
;exten => 5678,6,Hangup

[custom-meetme3]
exten => s,1,Answer
exten => s,n,Wait(3)
exten => s,n,CBMysql()
exten => s,n,Hangup

; Private DUNDi network

[dundi-priv-canonical]
; Direct numbers

[dundi-priv-customers]
; If you are an ITSP or Reseller, list your customers here.
exten => _3XX,1,Goto(ext-local,${EXTEN},1)

[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
;exten => _1847XXXXXXX,1,Dial(ZAP/g2/${EXTEN})

[dundi-priv-local]
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn

[dundi-priv-switch]
; Just a wrapper for the switch
switch => DUNDi/priv

[dundi-priv-lookup]
include => dundi-priv-local
include => dundi-priv-switch

[macro-dundi-priv]
exten => s,1,Goto(${ARG1},1)
include => dundi-priv-lookup

[trydundi]
exten => _.,1,Macro(dundi-priv,${EXTEN})
exten => _.,2,Congestion

Can someone please help me with the follow me on Dundi .my previous post did not attract any response.
Thanks

I actually found out where to put the follow-me:

in my file I put it as follow:

[dundi-priv-local]
include => ext-findmefollow
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn