Ricardo Carvalho
2011-Feb-14 18:46 UTC
[asterisk-users] unregistered trunks and registered phones coming from the same IP
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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110214/038d24dc/attachment.htm>
Pezhman Lali
2011-Feb-15 12:41 UTC
[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 < rjcarvalho.lists at gmail.com> 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110215/b75a70f1/attachment.htm>