[asterisk-users] unregistered trunks and registered phones coming from the same IP

Ricardo Carvalho rjcarvalho.lists at gmail.com
Tue Feb 15 09:10:35 CST 2011


At the SBC, I delegate the registration to my asterisk server forwarding the
REGISTER requests to it and resetting the contact to itself. This should
allow my asterisk server to forward subsequent messages to the SBC rather
than to the phone client directly. When the SBC receives a 200 OK from the
asterisk registrar for the delegated REGISTER request, it saves the binding
into its location database.

I am almost sure that the configuration at the SBC is right, the problem
seems to be related with the asterisk behaviour, as it refuses with "407
Proxy Authentication Required" replay (if I use asterisk 1.4, or with "401
Unauthorized" if I use asterisk 1.8) those calls coming from the SBC as a
trusted trunk for which I don't require authentication. Asterisk seems to
"think" that those calls came from the phone whose registration has proxied
at the SBC, and only accepts inbound calls from the SBC if its INVITEs carry
that phone correct authentication.

Any ideas?

Thanks,
Ricardo.




On Tue, Feb 15, 2011 at 12:50 PM, Faisal Hanif <faisal at vopium.com> wrote:

> You need to use relay request in your SBC instead of forward.
>
>
>
> *From:* asterisk-users-bounces at lists.digium.com [mailto:
> asterisk-users-bounces at lists.digium.com] *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 <
> 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
>
>
>
> --
> _____________________________________________________________________
> -- 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/f78cfba8/attachment.htm>


More information about the asterisk-users mailing list