YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
Proxy Auth Required
AcworthEd
#1 Posted : Monday, July 26, 2010 4:34:49 AM
Rank: Newbie

Medals:

Groups: Member
Joined: 7/26/2010
Posts: 4
Points: 12

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi,

Great software! Thanks for your hard work.

I've been looking at your demo apps. They work just fine. I have a couple of questions, though.

1) When I call from registered extension to registered extension the call goes through OK. But, when I dial 18003733411@sipbroker.com (that's Free 411), I get a Proxy Auth Required back from SipBroker. That doesn't happen when I dial directly (not thru the SIP_Proxy_Demo) from my x-lite client to SipBroker. And it doesn't happen via Asterisk, Freeswitch or any other proxy I've tried. SipBroker is an open proxy and there are no credentials to use. Any idea why this would happen? And what I can do to avoid it?

2) I don't seem to get the Sip_Proxy.Registrar.AorRegistered, Sip_Proxy.Registrar.AorUnregistered, Sip_Proxy.Registrar.AorUpdated events although I've added handlers for them. Any ideas on this? I do get the Sip_Proxy.Registrar.CanRegister from the same module.

Thanks for the software and any ideas you might have on my troubles.

Ed
ivx
#2 Posted : Monday, July 26, 2010 9:13:30 AM
Rank: Administration

Medals:

Groups: Administration
Joined: 9/15/2006
Posts: 1,278
Points: 3,707

Thanks: 0 times
Was thanked: 13 time(s) in 13 post(s)
Hi,

>I get a Proxy Auth Required back from SipBroker.
This is because both servers need authentication, some SIP clients allow to put multiple auth entries based on realm(domain),then both server will be authenticated.

>2) I don't seem to get the Sip_Proxy.Registrar.AorRegistered, Sip_Proxy.Registrar.AorUnregistered, Sip_Proxy.Registrar.AorUpdated events although I've added handlers for them. Any ideas on this? I do get the >Sip_Proxy.Registrar.CanRegister from the same module.
Does proxy UI shows any registrations ?
AcworthEd
#3 Posted : Monday, July 26, 2010 7:48:02 PM
Rank: Newbie

Medals:

Groups: Member
Joined: 7/26/2010
Posts: 4
Points: 12

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi,

Thanks for your reply.

1) I understand the idea, but, I don't have any userid/password for SipBroker. I never have. I watched x-lite send the request directly to SipBroker.com and it is never asked for an auth. If I did know what credentials to use, when would I get the opportunity to supply them? I watch the SIP_Authenticate event and never see anything with the SipBroker.com realm.

2) C# is not my best language so I built a similar app in VB.net to play with. That's where I first ran into this. But, I tried it again in your demo app and I still don't get the events. And, yes, the users do show up in the UI. It is possible I coded it wrong. This is my code just after creation of the proxy object:

Code:

            m_pSipProxy.Registrar.AorRegistered += new EventHandler<SIP_RegistrationEventArgs>(onAORRegistered);
            m_pSipProxy.Registrar.AorUnregistered += new EventHandler<SIP_RegistrationEventArgs>(onAORUnRegistered);
            m_pSipProxy.Registrar.AorUpdated += new EventHandler<SIP_RegistrationEventArgs>(onAORUpdated);


And these are the handlers:

Code:

        private void onAORRegistered(object sender, SIP_RegistrationEventArgs x)
        {
        }
        private void onAORUnRegistered(object sender, SIP_RegistrationEventArgs x)
        {
        }
        private void onAORUpdated(object sender, SIP_RegistrationEventArgs x)
        {
        }


Thanks again,
Ed
ivx
#4 Posted : Tuesday, July 27, 2010 12:00:35 PM
Rank: Administration

Medals:

Groups: Administration
Joined: 9/15/2006
Posts: 1,278
Points: 3,707

Thanks: 0 times
Was thanked: 13 time(s) in 13 post(s)
>1) I understand the idea, but, I don't have any userid/password for SipBroker. I never have. I watched x-lite send the request directly to SipBroker.com and it is never asked for an auth. If I did know what credentials to >use, when would I get the opportunity to supply them? I watch the SIP_Authenticate event and never see anything with the SipBroker.com realm.
I doubt any server allows communication without authentication.

>2) C# is not my best language so I built a similar app in VB.net to play with. That's where I first ran into this. But, I tried it again in your demo app and I still don't get the events. And, yes, the users do show up in the UI. >It is possible I coded it wrong. This is my code just after creation of the proxy object:
All seems ok. Does proxy UI shows any reggistered users ?
ivx
#5 Posted : Tuesday, July 27, 2010 12:00:36 PM
Rank: Administration

Medals:

Groups: Administration
Joined: 9/15/2006
Posts: 1,278
Points: 3,707

Thanks: 0 times
Was thanked: 13 time(s) in 13 post(s)
>1) I understand the idea, but, I don't have any userid/password for SipBroker. I never have. I watched x-lite send the request directly to SipBroker.com and it is never asked for an auth. If I did know what credentials to >use, when would I get the opportunity to supply them? I watch the SIP_Authenticate event and never see anything with the SipBroker.com realm.
I doubt any server allows communication without authentication.

>2) C# is not my best language so I built a similar app in VB.net to play with. That's where I first ran into this. But, I tried it again in your demo app and I still don't get the events. And, yes, the users do show up in the UI. >It is possible I coded it wrong. This is my code just after creation of the proxy object:
All seems ok. Does proxy UI shows any reggistered users ?
AcworthEd
#6 Posted : Wednesday, July 28, 2010 7:41:31 PM
Rank: Newbie

Medals:

Groups: Member
Joined: 7/26/2010
Posts: 4
Points: 12

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi,

1) Then SipBroker must come as a surprise. Try it out. The number is a voice-automated attendent for phone number information. I use x-lite to dial directly and SipBroker doesn't ask for authentication. It seems that something about the request from SIP_Proxy_demo causes SipBroker to ask for auth info, and, as I said, I don't have any. If I were to enter auth info, what event would I do that in? I never see a request from the SipBroker.com realm in the SIP_Authenticate event. Where is the correct place to look?

2) As I said, registered users do show up in UI. The UI seems to pull them out of Registrar.Registrations and does not rely on these events firing.

Thanks,
Ed
ivx
#7 Posted : Saturday, July 31, 2010 11:03:11 AM
Rank: Administration

Medals:

Groups: Administration
Joined: 9/15/2006
Posts: 1,278
Points: 3,707

Thanks: 0 times
Was thanked: 13 time(s) in 13 post(s)

What you fill for SipBroker in phone setting ?
AcworthEd
#8 Posted : Saturday, July 31, 2010 6:15:20 PM
Rank: Newbie

Medals:

Groups: Member
Joined: 7/26/2010
Posts: 4
Points: 12

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I really don't think it matters what you use. I am using, in x-lite, the User Name "outsider". I chose that name just to make it different than my internal extension numbers. No quotes, of course. And no password entry at all. No Authorization User Name. And the domain is my external IP address. Again, the number I dialed is: 18003733411@sipbroker.com . That's Free 411. Everything is open. Anyone can use them.

Good luck & thanks for checking into this.

Ed
ivx
#9 Posted : Sunday, August 01, 2010 12:10:11 PM
Rank: Administration

Medals:

Groups: Administration
Joined: 9/15/2006
Posts: 1,278
Points: 3,707

Thanks: 0 times
Was thanked: 13 time(s) in 13 post(s)

AOR stuff fixed in:
http://www.lumisoft.ee/l...d/downloads/MailServer/

Or in SVN.

About authentication required, i suspect if your caller domain isn't "sipbroker.com", it requests authentication.
Users browsing this topic
Guest
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

SoClean Theme By Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 RC1 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.073 seconds.