You need to use relay request in your SBC instead of forward.
From: [email protected] [mailto:[email protected]] On Behalf Of Pezhman Lali Sent: Tuesday, February 15, 2011 5:42 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] unregistered trunks and registered phones coming from the same IP please send your sip.conf, is any NAT procedure implemented in your network? On Mon, Feb 14, 2011 at 10:16 PM, Ricardo Carvalho <[email protected]> wrote: Hi, I manage an SBC which stands between my company server farm and some SIP telco trunks. The system works fine, for inbound and outbound calls. Now I've configured the SBC to also act as a registration proxy, forwarding SIP registrations coming from the Internet to my asterisk servers. It all seems fine, but it doesn't work well, because by the time at least one phone registers through the SBC to some asterisk server (lets say, server_A), future incoming calls coming from my SIP telco trunks to my server_A got refused by the asterisk running on that server, with "401 Unauthorized" messages back to the SBC. Seems like that since the moment asterisk binds some contact to the IP of the SBC, because it registered through it, from that moment, asterisk only accepts calls from that IP if those INVITEs carry correct registration to my server (even if those calls came from my SBC, a trusted trunk, not registered in asterisk). My phones are configured with type=friend. I've also tried type=peer and type=user, but it doesn't solve the problem. Any ideas to fix this? Best regards, Ricardo. -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
