[asterisk-users] Re: DUNDi with SIP

Steve Totaro stotaro at asteriskhelpdesk.com
Fri Aug 4 07:51:29 MST 2006


Works fine for me.

Douglas Garstang wrote:
> Didn't work Brad. I changed fromuser to dundisip1 from dundisip2. The 
> first Asterisk box sends dundisip1.
>  
> [dundisip1]
> type=friend
> secret=password
> insecure=very
> context=global_dundi_local
> host=labpbx1.ipt.oneeighty.com
> qualify=no
> username=dundisip1
> fromuser=dundisip1
>  
> [dundisip2]
> type=friend
> secret=password
> insecure=very
> context=global_dundi_local
> host=labpbx2.ipt.oneeighty.com
> qualify=no
> username=dundisip2
> fromuser=dundisip1
>  
>  
> My sip.conf now has:
>  
> but at the other end, I get:
>  
> Aug  4 08:33:25 NOTICE[20569]: chan_sip.c:10469 handle_request_invite: 
> Failed to authenticate user "Chocolate Chip" 
> <sip:dundisip1 at xxx.yyy.142.162>;tag=as1345d31c
>  
> I assume because the call is coming in from [dundisip2]. It then looks 
> for a username of 'dundisip2' but it's receiving dundisip1.
>  
> No wonder the sip.conf and iax.conf files drive me nuts! You spend all 
> your time going in circles!
>  
> Doug.
>  
>  
>
>     -----Original Message-----
>     *From:* Watkins, Bradley [mailto:Bradley.Watkins at compuware.com]
>     *Sent:* Friday, August 04, 2006 4:20 AM
>     *To:* Asterisk Users Mailing List - Non-Commercial Discussion
>     *Subject:* RE: [asterisk-users] Re: DUNDi with SIP
>
>     Easy, you change the fromuser=dundisip2 line to
>     fromuser=dundisip1.  You're just matching the destination peer
>     (dunsip2, labpbx2.ipt.oneeighty.com) and sending the configured
>     fromuser.
>      
>     - Brad
>
>     ------------------------------------------------------------------------
>     *From:* asterisk-users-bounces at lists.digium.com
>     [mailto:asterisk-users-bounces at lists.digium.com] *On Behalf Of
>     *Douglas Garstang
>     *Sent:* Thursday, August 03, 2006 4:18 PM
>     *To:* Asterisk Users Mailing List - Non-Commercial Discussion
>     *Subject:* RE: [asterisk-users] Re: DUNDi with SIP
>
>     *scream* I just got it to work with this...
>      
>     180netsip => global_dundi_local,0,SIP,dundisip1/${NUMBER},nopartial
>     180netsip => global_dundi_local,0,SIP,dundisip2/${NUMBER},nopartial
>      
>     [dundisip1]
>     type=friend
>     secret=password
>     insecure=very
>     context=global_dundi_local
>     host=labpbx1.ipt.oneeighty.com
>     qualify=no
>     username=dundisip1
>     fromuser=dundisip1
>      
>     [dundisip2]
>     type=friend
>     secret=password
>     insecure=very
>     context=global_dundi_local
>     host=labpbx2.ipt.oneeighty.com
>     qualify=no
>     username=dundisip2
>     fromuser=dundisip2
>     It works... but the first system sends dundisip2 as the authid,
>     not dundisip1. I assume that's because it matches the host
>     labpbx2. Well, it should be sending dundisip1.... how can I get it
>     to do that?
>      
>     Doug.
>
>         -----Original Message-----
>         *From:* Watkins, Bradley [mailto:Bradley.Watkins at compuware.com]
>         *Sent:* Thursday, August 03, 2006 2:06 PM
>         *To:* Asterisk Users Mailing List - Non-Commercial Discussion
>         *Subject:* RE: [asterisk-users] Re: DUNDi with SIP
>
>         I forget if this does what you want, but try adding a fromuser
>         setting to yoyr peer entries.
>
>         - Brad
>
>          -----Original Message-----
>         From:   Douglas Garstang [mailto:dgarstang at oneeighty.com]
>         Sent:   Thu Aug 03 15:58:50 2006
>         To:     Asterisk Users Mailing List - Non-Commercial Discussion
>         Subject:        RE: [asterisk-users] Re: DUNDi with SIP
>
>         Brad...
>
>         Here's the INVITE that the second asterisk box receives from
>         the first Asterisk box, after the second asterisk box sends a
>         Proxy auth message to the first. The first sends the dundisip
>         userid, but for some reason the second asterisk box is
>         matching it against the From: 3254101 address. Do I need more
>         than just the two sip.conf entries, dundisip, and dundisip2
>         as type=peer?
>
>         Anyone?
>
>         Doug.
>
>         >
>         > <-- SIP read from xxx.yyy.142.162:5060:
>         > INVITE sip:9220370 at labpbx2.ipt.twoeighty.com SIP/2.0
>         > Via: SIP/2.0/UDP
>         xxx.yyy.142.162:5060;branch=z9hG4bK047028fa;rport
>         > From: "Chocolate Chip"
>         <sip:3254101 at xxx.yyy.142.162>;tag=as34445cb0
>         > To: <sip:9220370 at labpbx2.ipt.twoeighty.com>
>         > Contact: <sip:3254101 at xxx.yyy.142.162>
>         > Call-ID: 7ca53bec20139d6a305b54936921b0ab at xxx.yyy.142.162
>         > CSeq: 103 INVITE
>         > User-Agent: Asterisk PBX
>         > Max-Forwards: 70
>         > Remote-Party-ID: "Chocolate Chip"
>         > <sip:3254101 at xxx.yyy.142.162>;privacy=off;screen=no
>         > Proxy-Authorization: Digest username="dundisip2",
>         > realm="ipt.twoeighty.com", algorithm=MD5,
>         > uri="sip:9220370 at labpbx2.ipt.twoeighty.com",
>         > nonce="012b66e9",
>         > response="bd5b3881afd0bdb827915a9eeb97dcd8", opaque=""
>         > Date: Thu, 03 Aug 2006 19:52:26 GMT
>         > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,
>         NOTIFY
>         > Content-Type: application/sdp
>         > Content-Length: 269
>         >
>         > v=0
>         > o=root 16558 16559 IN IP4 xxx.yyy.142.162
>         > s=session
>         > c=IN IP4 xxx.yyy.142.162
>         > t=0 0
>         > m=audio 28454 RTP/AVP 0 18 101
>         > a=rtpmap:0 PCMU/8000
>         > a=rtpmap:18 G729/8000
>         > a=fmtp:18 annexb=no
>         > a=rtpmap:101 telephone-event/8000
>         > a=fmtp:101 0-16
>         > a=silenceSupp:off - - - -
>         _______________________________________________
>         --Bandwidth and Colocation provided by Easynews.com --
>
>         asterisk-users mailing list
>         To UNSUBSCRIBE or update options visit:
>            http://lists.digium.com/mailman/listinfo/asterisk-users
>
>         The contents of this e-mail are intended for the named
>         addressee only. It contains information that may be
>         confidential. Unless you are the named addressee or an
>         authorized designee, you may not copy or use it, or disclose
>         it to anyone else. If you received it in error please notify
>         us immediately and then destroy it. 
>
>     The contents of this e-mail are intended for the named addressee
>     only. It contains information that may be confidential. Unless you
>     are the named addressee or an authorized designee, you may not
>     copy or use it, or disclose it to anyone else. If you received it
>     in error please notify us immediately and then destroy it. 
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>   




More information about the asterisk-users mailing list