[asterisk-users] DUNDi questions

unserossi at aol.com unserossi at aol.com
Sat Jul 31 09:50:15 CDT 2010


> Hi all,



>

> I have two questions regarding DUNDi and Asterisk Realtime. I have 

successfully set up DUNDi on my two Asterisk boxes, which means

> "dundi show peers" on each box shows the other box as known and "dialplan show 

dundiextens" shows the extensions on each box configured in sip.conf.

>

> 1. But when i switch my config to use sip in realtime, my extensions are only 

visible to DUNDi if i set rtcachefriends in sip.conf to yes.

> Am I forced to set rtcachefriends to use DUNDi with realtime or do I miss 

something, maybe an additional column in my database table?

>

> 2. How can I use DUNDi within my dialplan to determine if an extension is 

reachable and then establish a call to it and if not, pass the call to my PSTN 

device?



This sounds like you need to enable regcontext and regexten in sip.conf 

and for your peers. This will cause a line of dialplan to be added to 

the regcontext upon registration of your peer, which you can then use as 

the lookup context for your DUNDi mapping.



The dialplan is dynamically created and will add and remove the 

information assigned to regexten for the peer upon (de)registration.



Leif Madsen.



-- 

I've set regcontext in the general section in sip.conf but not explicitly for the peers. 
Also I did not set regexten yet, I guess this could be causing my problems.
Will research what regexten is used for and try it again.

So DUNDi will only advertise extensions that are actually registered?
Is that correct? As soon as an extension is unregistered (will say offline) it is not advertised by DUNDi 
anymore to route a call to e.g. the extensions voicemail?

Oh, i thought i could do something like a DUNDILOOKUP inside of my dialplan to see if the 
extension is known and if not pass it to my PSTN gateway.

Thanks so far.

Oliver

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100731/8d96d372/attachment.htm 


More information about the asterisk-users mailing list