Hello all,
I just hd success with announcing extensions between 2 asterisk servers via dundi…
On my primary asterisk server (lets call siteA) I created a sip trunk called poivy…
And also set outbound dialing prefix etc on it which has a dialing rule as NXXXXXX.
I wanted to do the same settings on dundi to announce a NXXXXXX extension to other asterisk, so if anybody wants to dial such number they should be forwarded to siteA.
Now i have a working dundi between both servers. And a fully working SIP trunk.
How should we configure it?
I tried a config as follows:
[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
exten => _NXXXXXX, 1, Dial(SIP/poivy${EXTEN})
exten => _NXXXXXX, 2, congestion()
exten => _NXXXXXX, 102, busy()
It announces fine.And when i dial NXXXXXX from siteB it redirects it to siteA. But i think because of my “bad” config it does not forward it to my trunk…
And also i tried this "exten => _NXXXXXX,1,Dial(SIP/poivy/${EXTEN})"
config according to the example in extension example. ";exten => _XXXXXXXXXX,1,Dial(Zap/g0/${EXTEN})"
It didnt work too.