jmullinix
Guru
- Joined
- Oct 21, 2007
- Messages
- 1,263
- Reaction score
- 7
I apologize for my delay. I have been out of town since last Thursday on a family visit to DC.
I need to re-write the how-to. Since FreePBX put in a Dundi trunk, outbound Dundi calls are easy.
First, Set up an outbound trunk in FreePBX for Dundi and make the context priv.
Then in iax_custom.conf you will need the following:
[dundi]
type=user
dbsecret=dundi/secret
context=dundi-e164-local
allow=all
trunk=yes
Now in extensions_custom.conf you need:
[dundi-e164-local] ;This must match the context in iax_custom.conf
; this context is used to group the 3 below and reference in iax.conf for the incoming calls referred by dundi
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn
[dundi-priv-canonical]
; List canonical entries here
exten => 18008656920,1,goto(from-trunk,${EXTEN:1},1)
[dundi-priv-customers]
; If you are an ITSP or Reseller, list your internal extensions here.
exten => _22xx,1,goto(from-internal,${EXTEN},1)
[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
exten => _1706251XXXX,1,macro(call_dundi,${EXTEN:1})
exten => _1706258XXXX,1,macro(call_dundi,${EXTEN:1})
[macro-call_dundi]
exten => s,1,goto(from-internal,${ARG1},1)
Set up all of your credentials in dundi.conf according to my how-to. Your mapping lines need to look like this:
priv => dundi-priv-canonical,1,IAX2,dundi:${SECRET}@${dundiipaddress}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
priv => dundi-priv-customers,101,IAX2,dundi:${SECRET}@${dundiipaddress}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
priv => dundi-priv-via-pstn,401,IAX2,dundi:${SECRET}@${dundiipaddress}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
Finally. in globals_custom.conf add this line
dundiipaddress=your.ip.address or your.domain.name
Let me know how this works.
Merry Christmas,
John
I need to re-write the how-to. Since FreePBX put in a Dundi trunk, outbound Dundi calls are easy.
First, Set up an outbound trunk in FreePBX for Dundi and make the context priv.
Then in iax_custom.conf you will need the following:
[dundi]
type=user
dbsecret=dundi/secret
context=dundi-e164-local
allow=all
trunk=yes
Now in extensions_custom.conf you need:
[dundi-e164-local] ;This must match the context in iax_custom.conf
; this context is used to group the 3 below and reference in iax.conf for the incoming calls referred by dundi
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn
[dundi-priv-canonical]
; List canonical entries here
exten => 18008656920,1,goto(from-trunk,${EXTEN:1},1)
[dundi-priv-customers]
; If you are an ITSP or Reseller, list your internal extensions here.
exten => _22xx,1,goto(from-internal,${EXTEN},1)
[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
exten => _1706251XXXX,1,macro(call_dundi,${EXTEN:1})
exten => _1706258XXXX,1,macro(call_dundi,${EXTEN:1})
[macro-call_dundi]
exten => s,1,goto(from-internal,${ARG1},1)
Set up all of your credentials in dundi.conf according to my how-to. Your mapping lines need to look like this:
priv => dundi-priv-canonical,1,IAX2,dundi:${SECRET}@${dundiipaddress}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
priv => dundi-priv-customers,101,IAX2,dundi:${SECRET}@${dundiipaddress}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
priv => dundi-priv-via-pstn,401,IAX2,dundi:${SECRET}@${dundiipaddress}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
Finally. in globals_custom.conf add this line
dundiipaddress=your.ip.address or your.domain.name
Let me know how this works.
Merry Christmas,
John
