1

Topic: Getting "Unauthorize user" from ststrunk

I installd sistosis and stsproxy and its working fine except when i changed the ip address of stsproxy from 127.0.0.1 to a real ip and get "Unauthorize user" from ststrunk  when call get though to sts trunk.

i set outbound_proxy= to real ip in ststrunk1.cfg
but still get "Unauthorize user"
Also getting "Changed remote cotact Header to use message source address" from both ststrunk and stsproxy.

So which are the keys setting i have to look for to be a authorize user.

Thanks

Last edited by munir21@hotmail.com (2011-03-13 10:14:14)

2

Re: Getting "Unauthorize user" from ststrunk

What is a real ip in your terminology? What does outbound_proxy have to do with authorization? - nothing.

username,passwd,realm are the name "keys" as you put it.

Unauthorized user sounds like a 404 - you probably don't have the correct context setup in the PBX. I also don't know if you have anything setup correctly since you posted no logs.

It also depends on how stsproxy is configured and pbx.
Reading the comments in the files will help a lot. For example in stsproxy.cfg:
#set to yes to use stsProxy credentials for 401/407 authentication (Channel password must match stsProxy password)
useProxyCredentials=no
Again, no info on PBX config was posted either.

3

Re: Getting "Unauthorize user" from ststrunk

hI,
i mean Real ip  Public ip
My setup like this
ststrunk resister with stsproxy and stsproxy resister with my pbx. all resistration are ok. when i send the call to stsproxy and it send the call to ststrunk then i get the message and call fail . i got this message from ststrunk log


2011-03-13 16:18:40,681 [org.zoolu.net.UdpProvider.T1] INFO  local.ua.SSCallChannel.#C0 - incoming sip call from "iaxUser" <sip:403852XXXX@64.XXX.XXX.133> callee=<sip:+12814947582@64.XXX.XXX.127:5065> ReqLineUser=stsTrunk_01
2011-03-13 16:18:40,682 [org.zoolu.net.UdpProvider.T1] INFO  local.ua.AuthMap - UnAuthorized Caller
2011-03-13 16:18:40,682 [org.zoolu.net.UdpProvider.T1] INFO  local.ua.SSCallChannel.#C0 - handleSipCall - rejected call (no auth/destination)

in stsTrunk_01.cfg

outbound_proxy=64.XXX.XXX.127:5065
via_addr=127.0.0.1
#host_ifaddr=64.XXX.XXX.127
publicIP=64.XXX.XXX.127
stunTestInterval=30
enableNatTranslate=yes
enableNatTranslateVia=yes
host_port=5071
from_url="stsTrunk_01" <sip:stsTrunk_01@64.XXX.XXX.127:5065>

64.XXX.XXX.127:5065 is my stsproxy ip


Thanks

Last edited by munir21@hotmail.com (2011-03-13 16:57:28)

4

Re: Getting "Unauthorize user" from ststrunk

I always use a private network for everything. I don't expose anything to external internet that isn't needed.

Your UnAuthorized Caller - no auth/destination
Your SkypeToSipAuth.props is not setup correctly.

5

Re: Getting "Unauthorize user" from ststrunk

Hello,

Will i look for SkypeToSipAuth.props or SipToSkypeAuth.props. my calls are sip to skypeout. asterisk sending calls to skypeout. may be im wrong

Thanks

6

Re: Getting "Unauthorize user" from ststrunk

Sorry, I missed it said sip caller. It's SipToSkypeAuth.props that is wrong. Needs the calling ip in there to authorize it.

7

Re: Getting "Unauthorize user" from ststrunk

In case you don't understand it:

*,*,localnet,calleeid
Add an additional line like this:
*,*,64.XXX.XXX.127,calleeid

8

Re: Getting "Unauthorize user" from ststrunk

Hi,

Authetication problem is fixed.
now, i have one way voice and having this message from stsproxy

2011-03-13 19:30:41,133 [org.zoolu.net.UdpProvider.T1] INFO  org.zoolu.sip.provider.SipProvider - Changed remote Contact Header to use message source address

In ststrunk
SkypeAudioSender stats - packets:0 maxLatency :0ms

Thanks

Last edited by munir21@hotmail.com (2011-03-14 03:42:02)

9

Re: Getting "Unauthorize user" from ststrunk

Troubleshooting page - first section.