Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] DUNDi with SIP Mapping


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
rswagoner at gmail.com
Guest





PostPosted: Wed Apr 16, 2014 7:12 am    Post subject: [asterisk-users] DUNDi with SIP Mapping Reply with quote

From the reading and testing I have done it doesn't look like SIP supports a username and password in the Dial string. I currently have the following mapping.

priv => dundi-extens,0,SIP,[url=http://dundi:pass@1.1.1.1/${NUMBER},nounsolicited,nocomunsolicit,nopartial]dundi:pass@1.1.1.1/${NUMBER},nounsolicited,nocomunsolicit,nopartial[/url]


On the sending side I see

NOTICE[31598] chan_sip.c: Conflicting extension values given. Using 'dundi' and not '1001'


On the receiving side it will not match the SIP dundi user and tries to call dundi instead of 1001.

-- Executing [dundi@from-sip-external:1] NoOp("SIP/1.1.1.2-00000000", "Received incoming SIP connection from unknown peer to dundi") in new stack



Is there a way to configure DUNDi to use SIP or does it only work with IAX?

Thanks,
Ryan
Back to top
kevin.larsen at pionee...
Guest





PostPosted: Wed Apr 16, 2014 8:06 am    Post subject: [asterisk-users] DUNDi with SIP Mapping Reply with quote

Quote:
From the reading and testing I have done it doesn't look like SIP
supports a username and password in the Dial string. I currently
have the following mapping.

priv => dundi-extens,0,SIP,dundi:pass@1.1.1.1/$
{NUMBER},nounsolicited,nocomunsolicit,nopartial

Quote:
On the sending side I see

NOTICE[31598] chan_sip.c: Conflicting extension values given. Using
'dundi' and not '1001'

Quote:
On the receiving side it will not match the SIP dundi user and tries
to call dundi instead of 1001.

-- Executing [dundi@from-sip-external:1] NoOp("SIP/1.1.1.
2-00000000", "Received incoming SIP connection from unknown peer to
dundi") in new stack


Quote:
Is there a way to configure DUNDi to use SIP or does it only work with IAX?

I am using DUNDi with SIP to do some least cost routing amongst my various locations. My mapping is close to what you have:

priv => dundi-extens,0,SIP,<trunk_name>/<number_to_dial>

Where <trunk_name> is replaced with the actual name of my trunk as defined in sip.conf and <number_to_dial> is the number they should dial on that trunk. I have not tried to define the SIP username/password in the DUNDi config itself, so I don't know if what you are trying to do is possible or not.
Back to top
rswagoner at gmail.com
Guest





PostPosted: Wed Apr 16, 2014 9:07 am    Post subject: [asterisk-users] DUNDi with SIP Mapping Reply with quote

On Wed, Apr 16, 2014 at 9:06 AM, Kevin Larsen <kevin.larsen@pioneerballoon.com (kevin.larsen@pioneerballoon.com)> wrote:
Quote:



I am using DUNDi with SIP to do some least cost routing amongst my various locations. My mapping is close to what you have:

priv => dundi-extens,0,SIP,<trunk_name>/<number_to_dial>

Where <trunk_name> is replaced with the actual name of my trunk as defined in sip.conf and <number_to_dial> is the number they should dial on that trunk. I have not tried to define the SIP username/password in the DUNDi config itself, so I don't know if what you are trying to do is possible or not.


I was trying to avoid having to define the SIP trunks on all systems. I currently have three FreePBX systems connected by SIP trunks with 800 DIDs. Each system has SIP trunks defined to both other systems and routes defining the extensions / DIDs. As I add more DID blocks and FreePBX systems maintaining the trunks and routes is going to become cumbersome.


I wanted to move to DUNDi to simplify the setup. It looks like I need to switch to IAX trunks to be able to do this.



Thanks,
Ryan
Back to top
kevin.larsen at pionee...
Guest





PostPosted: Wed Apr 16, 2014 9:21 am    Post subject: [asterisk-users] DUNDi with SIP Mapping Reply with quote

Quote:
I wanted to move to DUNDi to simplify the setup. It looks like I
need to switch to IAX trunks to be able to do this.

You are a bit outside of what I have done, but this looks like it might be what you want to do with SIP:
http://www.voip-info.org/wiki/view/DUNDi+Enterprise+Configuration+SIP
Back to top
rswagoner at gmail.com
Guest





PostPosted: Thu Apr 17, 2014 8:34 am    Post subject: [asterisk-users] DUNDi with SIP Mapping Reply with quote

On Wed, Apr 16, 2014 at 10:20 AM, Kevin Larsen <kevin.larsen@pioneerballoon.com (kevin.larsen@pioneerballoon.com)> wrote:
Quote:


You are a bit outside of what I have done, but this looks like it might be what you want to do with SIP:
http://www.voip-info.org/wiki/view/DUNDi+Enterprise+Configuration+SIP



I had looked at that guide before, but couldn't get it working. I could do SIP without authentication. This would have worked if I only wanted to terminate calls to extensions. For future purposes I wanted to include PSTN routes. In the end I went with IAX and have it up and running. It was actually simple to integrate with FreePBX. The important piece was setting ttl to 1 to prevent DUNDi lookup loops, which would cause the box to sometimes see its own DUNDi extensions.


The one FreePBX box with the PRI will try 10 digits numbers on DUNDi private then go out the PRI. The other FreePBX boxes try to dial 10 digit numbers on DUNDi private then use DUNDi to reach the PSTN. This allows me to add additionally FreePBX boxes with PSTN connections and use weights. Additionally providing a separate mapping for the PSTN allows toll free to first try DUNDi private, then a VoIP provider, then the DUNDi PSTN.


cd /var/lib/asterisk/keys
    astgenkey -n `hostname -f`
    chown asterisk:asterisk *
   
    share .pub keys between all servers

vim /etc/asterisk/dundi.conf
    cachetime=60
    ttl=1
   
    priv => dundi-extens,0,IAX2,dundi:${[url=http://SECRET}@1.1.1.1/${NUMBER},nounsolicited,nocomunsolicit,nopartial]SECRET}@1.1.1.1/${NUMBER},nounsolicited,nocomunsolicit,nopartial[/url]
    priv => dundi-dids,100,IAX2,dundi:${[url=http://SECRET}@1.1.1.1/${NUMBER},nounsolicited,nocomunsolicit,nopartial]SECRET}@1.1.1.1/${NUMBER},nounsolicited,nocomunsolicit,nopartial[/url]
    pstn => dundi-via-pstn,400,IAX2,dundi:${[url=http://SECRET}@1.1.1.1/${NUMBER},nounsolicited,nocomunsolicit,nopartial]SECRET}@1.1.1.1/${NUMBER},nounsolicited,nocomunsolicit,nopartial[/url]
   
    ;[<EID of remote DUNDi peer>]
    ;model = symmetric
    ;host = <IP or FQDN of remote DUNDi peer>
    ;inkey = <public key of remote DUNDi peer, without ".pub">
    ;outkey = <private key of local PBX, without ".key">
    ;include = all
    ;permit = all
    ;qualify = yes

vim /etc/asterisk/extensions_custom.conf
    [dundi-local]
    include => dundi-extens
    include => dundi-dids
    include => dundi-via-pstn

    [dundi-local-keepcid]
    exten => _X.,1,Set(KEEPCID=TRUE)
    exten => _X.,n,Goto(dundi-local,${EXTEN},1)

    [dundi-extens]
    include => ext-queues
    include => ext-findmefollow
    include => ext-group
    include => ext-local

    [dundi-dids]
    include => ext-did-0002

    [dundi-via-pstn]
    include => outbound-allroutes

FreePBX Trunks
    Type: DUNDi
    Trunk Name: DUNDi Private
    DUNDi Mapping: priv

    Type: DUNDi
    Trunk Name: DUNDi Pstn
    DUNDi Mapping: pstn
   
    Type: IAX
    Trunk Name: DUNDi
    Outgoing Settings:
        Trunk Name: dundi
        PEER Details:
        type=friend
        dbsecret=dundi/secret
        disallow=all
        context=dundi-local-keepcid
        allow=ulaw&g729

FreePBX Outbound Routes
    Route Name: dundi
    Route Type: Intra-Company
    Dial Pattern: NXXX
    Trunk: DUNDi Private

    Route Name: outbound
    Dial Pattern: 1NXXNXXXXXX
    Dial Pattern: NXXNXXXXXX
    Trunk: DUNDi Private
    Trunk: PRI or DUNDi Pstn
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services