Greetings!

I have yxa-0.91 running on my OSX 14.x,  and am having troubles  
getting some basic calls to succeed.   While this email may seem  
long, I presume the problem is simple and basic.

First a couple quick questions:

1) Is there some config where I can turn of authentication so INVITE/ 
REGISTER are not challenged with 401/407?
2) Is there some way I can make incomingproxy use a port other than  
5060?

So, here is what I am doing.

I am running incomingproxy AND 2 SIP clients on the same OSX laptop.   
Currently I have the incomingproxy on 5060, one client on 5070, and  
the other on 5080.  (I'm currently using UDP, but once this works, I  
will also play with TCP and TLS.)

My config is similar to the "quick start" config on the YXA web- 
site.  (More details below.)

FIrst, note I added the following to my "/etc/hosts" so that the  
following domain names map to 127.0.0.1.  (The last 3 aren't really  
used, but I added them for kicks.)

127.0.0.1       siptest.com
127.0.0.1       incomingproxy.siptest.com
127.0.0.1       alice.siptest.com
127.0.0.1       bob.siptest.com


Now, my incomingproxy.config looks like:

[{incomingproxy, [{sipauth_realm, "siptest.com"},
                   {sipauth_password, "password"},
                   {logger_logbasename, "/var/log/yxa/incomingproxy"},
                   {userdb_modules, [sipuserdb_file]},
                   {sipuserdb_file_filename, "/var/yxa/userdb"},
                   {myhostnames, ["siptest.com"]}
                 ]}].


And my userdb text file looks like:

[
{user, [
          {name, "[EMAIL PROTECTED]"},
          {password, "password"},
          {classes, [internal,national,mobile]}
         ]},
{user, [
          {name, "bob"},
          {password, "password"},
          {classes, [internal]}
         ]},

{address, [
             {user, "[EMAIL PROTECTED]"},
             {address, "sip:[EMAIL PROTECTED]:5070"}
            ]},
{address, [
             {user, "bob"},
             {address, "sip:[EMAIL PROTECTED]:5080"}
            ]}
].


Below are two problems:

1) I tried to have Alice invite Bob (via the incomingproxy), and got  
a "403 Forbidden" response.  (Proxy-auth succeeded, so it wasn't an  
auth problem.)  In the error log I saw the following:

2006-11-03 11:54:57.002 error<0.296.0>:Authenticated user  
"[EMAIL PROTECTED]" may NOT use address "sip:[EMAIL PROTECTED]:5070"

It seems to not like the port number I put in the userdb to explain  
how to get to Alice.

The complete message exchange is below.

(Note I tried a ton of different permutations to have alice send to  
bob.... and I got a few other different errors.  When alice did not  
have the same domain-name, I'd get a loop error.  I guess this was  
because both domains were defined in my etc/hosts as 127.0.0.1, and  
hence incomingproxy forwarded to the other domain at port 5060....  
which was itself!   That seems legitamate)

2) I also tried to have Alice REGISTER with incoming proxy, and got a  
"404 Not Found" error.   Again, authentication succeeded, but  
something else wasn't liked.  The log entry for that one looked like:

2006-11-03 11:57:04.247 normal<0.303.0>:z9hG4bK-yxa- 
eARzNjKux31dikpQ2TrMoQ: incomingproxy: SipUser "[EMAIL PROTECTED]"  
tried to REGISTER invalid address sip:[EMAIL PROTECTED]

Perhaps it expected the From: header to indicate port 5070, since  
that is what was in the userdb for Alice?   I hope not, as the From:  
header is suppose to be the Address-of-Record.... and the address of  
record is actually port 5060 (since it is suppose to go to the  
incomingproxy first).


Again the complete message exchange is below (after the INVITE  
exchange).

Any help appreciated!!!

Regards,
-Russ

================================================================
INVITE test
------------------

     binding to if 'lo0'
     binding to local port 5070
--- [io.net.udp prefix @ !request] ---
--- [io.net.udp postfix @ !request] ---
     >>> Sending 591 bytes to 127.0.0.1:5060

INVITE sip:[EMAIL PROTECTED]:5060 SIP/2.0..
Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK4707103..
From: Alice <sip:[EMAIL PROTECTED]:5070>;tag=fromhackblah..
To: Bob <sip:[EMAIL PROTECTED]:5060>..
CSeq: 1 INVITE..
Call-ID: [EMAIL PROTECTED]
Contact: <sip:[EMAIL PROTECTED]:5070>;transport=UDP..
Max-Forwards: 70..
Content-Type: application/sdp..
Content-Length: 195....
v=0..
o=- 817933771 817933775 IN IP4 127.0.0.1..
s=darkness..
c=IN IP4 127.0.0.1..
t=0 0..
m=audio 5000 RTP/AVP 0 4 97..
a=rtpmap:0 PCMU/8000..
a=rtpmap:4 G723/8000/1..
a=rtpmap:97 telephone-event/8000..

--- [io.net.udp prefix @ !response] ---
     <<< Received 273 bytes from 127.0.0.1:5060

SIP/2.0 100 Trying..
Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK4707103..
From: Alice <sip:[EMAIL PROTECTED]:5070>;tag=fromhackblah..
To: Bob <sip:[EMAIL PROTECTED]:5060>..
CSeq: 1 INVITE..
Call-ID: [EMAIL PROTECTED]
Content-Length: 0...


--- [io.net.udp reset @ <#030be944>] ---
--- [io.net.udp prefix @ !response] ---
     <<< Received 425 bytes from 127.0.0.1:5060


SIP/2.0 407 Proxy Authentication Required..
Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK4707103..
From: Alice <sip:[EMAIL PROTECTED]:5070>;tag=fromhackblah..
To: "Bob" <sip:[EMAIL PROTECTED]:5060>;tag=yxa-wn_gyzn5s..
CSeq: 1 INVITE..
Call-ID: [EMAIL PROTECTED]
Proxy-Authenticate: Digest realm="siptest.com",  
nonce="94e0c1279cb260b7ec7ac50bc2d05c39", opaque="454b9e90"..
Content-Length: 0....


--- [io.net.udp postfix @ !response] ---
--- [io.net.udp prefix @ !request] ---
--- [io.net.udp postfix @ !request] ---
     >>> Sending 305 bytes to 127.0.0.1:5060


ACK sip:[EMAIL PROTECTED]:5060 SIP/2.0..
Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK4707103..
From: Alice <sip:[EMAIL PROTECTED]:5070>;tag=fromhackblah..
To: Bob <sip:[EMAIL PROTECTED]:5060>;tag=yxa-wn_gyzn5s..
CSeq: 1 ACK..
Call-ID: [EMAIL PROTECTED]
Max-Forwards: 70....


--- [io.net.udp prefix @ !request] ---
--- [io.net.udp postfix @ !request] ---
     >>> Sending 802 bytes to 127.0.0.1:5060


INVITE sip:[EMAIL PROTECTED]:5060
SIP/2.0..Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK930527..
From: Alice <sip:[EMAIL PROTECTED]:5070>;tag=fromhackblah..
To: Bob <sip:[EMAIL PROTECTED]:5060>..
CSeq: 2 INVITE..
Call-ID: [EMAIL PROTECTED]
Contact: <sip:[EMAIL PROTECTED]:5070>;transport=UDP..
Max-Forwards: 70..
Content-Type: application/sdp..
Content-Length: 195..
Proxy-Authorization: Digest  
username="[EMAIL PROTECTED]",nonce="94e0c1279cb260b7ec7ac50bc2d05c39",re 
alm="siptest.com",uri="sip:[EMAIL PROTECTED]: 
5060",response="5fc7a8f60f361d57ce5401cb84da4544",opaque="454b9e90"....
From: Alice <sip:[EMAIL PROTECTED]:5070>;tag=fromhackblah..
To: Bob <sip:[EMAIL PROTECTED]:5060>..
CSeq: 2 INVITE..
Call-ID: [EMAIL PROTECTED]
Content-Length: 0....


--- [io.net.udp reset @ <#030e6544>] ---
--- [io.net.udp prefix @ !response] ---
     <<< Received 295 bytes from 127.0.0.1:5060


SIP/2.0 403 Forbidden..
Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK930527..
From: Alice <sip:[EMAIL PROTECTED]:5070>;tag=fromhackblah..
To: "Bob" <sip:[EMAIL PROTECTED]:5060>;tag=yxa-f9hotpeco..
CSeq: 2 INVITE..
Call-ID: [EMAIL PROTECTED]
Content-Length: 0....


--- [io.net.udp reset @ <#030e6544>] ---
--- [io.net.udp] ---
     Finalizing for grammar 0x30aba8c
sip-forbidden


=====================================================================
REGISTER test
----------------------

     initializing socket
     binding to if 'lo0'
     binding to local port 5070
--- [io.net.udp prefix @ !request] ---
--- [io.net.udp postfix @ !request] ---
     >>> Sending 350 bytes to 127.0.0.1:5060

REGISTER sip:siptest.com:5060 SIP/2.0..
Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK30677..
From: Alice <sip:[EMAIL PROTECTED]>;tag=fromhackbla..
To: Alice <sip:[EMAIL PROTECTED]>..
CSeq: 1 REGISTER..
Call-ID: [EMAIL PROTECTED]
Contact: <sip:[EMAIL PROTECTED]:5070>;expires=86400;transport=UDP..
Max-Forwards: 70....


--- [io.net.udp prefix @ !response] ---
     <<< Received 427 bytes from 127.0.0.1:5060

SIP/2.0 401 Authentication Required..
Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK30677..
From: Alice <sip:[EMAIL PROTECTED]>;tag=fromhackblah..
To: "Alice" <sip:[EMAIL PROTECTED]>;tag=yxa-z1wjlhn8u..
CSeq: 1 REGISTER..
Call-ID: [EMAIL PROTECTED]
WWW-Authenticate: Digest realm="siptest.com",  
nonce="a92b2fd7e461862e04bf26b11c245f93", opaque="454b9f10"..
Retry-After: 3..
Content-Length: 0....


--- [io.net.udp postfix @ !response] ---
--- [io.net.udp prefix @ !request] ---
--- [io.net.udp postfix @ !request] ---
     >>> Sending 549 bytes to 127.0.0.1:5060


REGISTER sip:siptest.com:5060 SIP/2.0..
Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK41..
From: Alice <sip:[EMAIL PROTECTED]>;tag=fromhackblah..
To: Alice <sip:[EMAIL PROTECTED]>..
CSeq: 2 REGISTER..
Call-ID: [EMAIL PROTECTED]
Contact: <sip:[EMAIL PROTECTED]:5070>;expires=86400;transport=UDP..
Max-Forwards: 70..
Authorization: Digest  
username="[EMAIL PROTECTED]",nonce="a92b2fd7e461862e04bf26b11c245f93",re 
alm="siptest.com",uri="sip:siptest.com: 
5060",response="d74b07c20813d8b1cb9988b72cc6afac",opaque="454b9f10"....


--- [io.net.udp prefix @ !response] ---
     <<< Received 287 bytes from 127.0.0.1:5060

SIP/2.0 404 Not Found..
Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK41..
From: Alice <sip:[EMAIL PROTECTED]>;tag=fromhackblah..
To: "Alice" <sip:[EMAIL PROTECTED]>;tag=yxa-xky71ywmg..
CSeq: 2 REGISTER..
Call-ID: [EMAIL PROTECTED]
Content-Length: 0....

--- [io.net.udp reset @ <#030cd544>] ---
--- [io.net.udp] ---


_______________________________________________
Yxa-devel mailing list
Yxa-devel@lists.su.se
https://lists.su.se/mailman/listinfo/yxa-devel

Reply via email to