|
Thank you for your help!
OK, Attached the Log...
---
Received (536 bytes): 192.168.0.20:5060 <- 192.168.0.30:53610
REGISTER sip:192.168.0.20 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.30:53610;branch=z9hG4bK-d87543-be745a46a73d585a-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:user@192.168.0.30:53610;rinstance=287a63342bc41fa1>
To: "user"<sip:user@192.168.0.20>
From: "user"<sip:user@192.168.0.20>;tag=c6654706
Call-ID: NTUyYmM2NDVkMjZmZTk1NjRlM2ZkYWM4YTFjNDQ4ZTM.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1011s stamp 41150
Content-Length: 0
Transaction(id='z9hG4bK-d87543-be745a46a73d585a-1--d87543-' method=REGISTER server=true) created.
Transaction(id='z9hG4bK-d87543-be745a46a73d585a-1--d87543-' method=REGISTER server=true) Transaction timeout Timer started, will triger after 90000.
Transaction(id='z9hG4bK-d87543-be745a46a73d585a-1--d87543-' method=REGISTER server=true) got response response='407'.
Sending (487 bytes): 192.168.0.20:5060 -> 192.168.0.30:53610
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.0.30:53610;branch=z9hG4bK-d87543-be745a46a73d585a-1--d87543-;rport=53610
From: "user" <sip:user@192.168.0.20>;tag=c6654706
To: "user" <sip:user@192.168.0.20>
Call-ID: NTUyYmM2NDVkMjZmZTk1NjRlM2ZkYWM4YTFjNDQ4ZTM.
CSeq: 1 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="e3788128dd234572ac3b503800013711",opaque="f46fb53c1b9f4a20b5208e20a48f0d36"
Content-Length: 0
<end>
---
|
|
|
|
|
Is it a full log ? As you see X-lite dont try to authenticate.
What you filled in X Acciunt settings ?
|
|
|
|
|
the full log is:
--------
Received (536 bytes): 192.168.0.20:5060 <- 192.168.0.30:32302
REGISTER sip:192.168.0.20 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.30:32302;branch=z9hG4bK-d87543-382ab12e48250d20-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:user@192.168.0.30:32302;rinstance=6496fc6c177b0798>
To: "user"<sip:user@192.168.0.20>
From: "user"<sip:user@192.168.0.20>;tag=a0327d3b
Call-ID: MTFkNDk2YWFhZDJmYjZmMjk3NTNjMTZhNjVkYzA5MDk.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1011s stamp 41150
Content-Length: 0
Transaction(id='z9hG4bK-d87543-382ab12e48250d20-1--d87543-' method=REGISTER server=true) created.
Transaction(id='z9hG4bK-d87543-382ab12e48250d20-1--d87543-' method=REGISTER server=true) Transaction timeout Timer started, will triger after 90000.
Transaction(id='z9hG4bK-d87543-382ab12e48250d20-1--d87543-' method=REGISTER server=true) got response response='407'.
Sending (487 bytes): 192.168.0.20:5060 -> 192.168.0.30:32302
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.0.30:32302;branch=z9hG4bK-d87543-382ab12e48250d20-1--d87543-;rport=32302
From: "user" <sip:user@192.168.0.20>;tag=a0327d3b
To: "user" <sip:user@192.168.0.20>
Call-ID: MTFkNDk2YWFhZDJmYjZmMjk3NTNjMTZhNjVkYzA5MDk.
CSeq: 1 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="859c31810e47414c8c7fed0daac9d49c",opaque="54fb6cfc1317492fb7bd997a92718e37"
Content-Length: 0
<end>
Transaction(id='z9hG4bK-d87543-382ab12e48250d20-1--d87543-' method=REGISTER server=true) Timer J(wait time for retransmissions of non-INVITE requests) started, will triger after 32000.
Received (767 bytes): 192.168.0.20:5060 <- 192.168.0.30:32302
REGISTER sip:192.168.0.20 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.30:32302;branch=z9hG4bK-d87543-74633b764a069e7d-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:user@192.168.0.30:32302;rinstance=6496fc6c177b0798>
To: "user"<sip:user@192.168.0.20>
From: "user"<sip:user@192.168.0.20>;tag=a0327d3b
Call-ID: MTFkNDk2YWFhZDJmYjZmMjk3NTNjMTZhNjVkYzA5MDk.
CSeq: 2 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="user@192.168.0.20",realm="",nonce="859c31810e47414c8c7fed0daac9d49c",uri="sip:192.168.0.20",response="cc4a0f6e036aa0b60b16deda85b2186e",algorithm=MD5,opaque="54fb6cfc1317492fb7bd997a92718e37"
User-Agent: X-Lite release 1011s stamp 41150
Content-Length: 0
Transaction(id='z9hG4bK-d87543-74633b764a069e7d-1--d87543-' method=REGISTER server=true) created.
Transaction(id='z9hG4bK-d87543-74633b764a069e7d-1--d87543-' method=REGISTER server=true) Transaction timeout Timer started, will triger after 90000.
Transaction(id='z9hG4bK-d87543-74633b764a069e7d-1--d87543-' method=REGISTER server=true) got response response='407'.
Sending (487 bytes): 192.168.0.20:5060 -> 192.168.0.30:32302
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.0.30:32302;branch=z9hG4bK-d87543-74633b764a069e7d-1--d87543-;rport=32302
From: "user" <sip:user@192.168.0.20>;tag=a0327d3b
To: "user" <sip:user@192.168.0.20>
Call-ID: MTFkNDk2YWFhZDJmYjZmMjk3NTNjMTZhNjVkYzA5MDk.
CSeq: 2 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="332331f2067f4ae4b33d52fe11a7ac85",opaque="54fb6cfc1317492fb7bd997a92718e37"
Content-Length: 0
<end>
Transaction(id='z9hG4bK-d87543-74633b764a069e7d-1--d87543-' method=REGISTER server=true) Timer J(wait time for retransmissions of non-INVITE requests) started, will triger after 32000.
Received (767 bytes): 192.168.0.20:5060 <- 192.168.0.30:32302
REGISTER sip:192.168.0.20 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.30:32302;branch=z9hG4bK-d87543-3e525e748b54252e-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:user@192.168.0.30:32302;rinstance=6496fc6c177b0798>
To: "user"<sip:user@192.168.0.20>
From: "user"<sip:user@192.168.0.20>;tag=a0327d3b
Call-ID: MTFkNDk2YWFhZDJmYjZmMjk3NTNjMTZhNjVkYzA5MDk.
CSeq: 3 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="user@192.168.0.20",realm="",nonce="332331f2067f4ae4b33d52fe11a7ac85",uri="sip:192.168.0.20",response="0f9e9adf2578fa52b8eb02e8453fe95f",algorithm=MD5,opaque="54fb6cfc1317492fb7bd997a92718e37"
User-Agent: X-Lite release 1011s stamp 41150
Content-Length: 0
Transaction(id='z9hG4bK-d87543-3e525e748b54252e-1--d87543-' method=REGISTER server=true) created.
Transaction(id='z9hG4bK-d87543-3e525e748b54252e-1--d87543-' method=REGISTER server=true) Transaction timeout Timer started, will triger after 90000.
Transaction(id='z9hG4bK-d87543-3e525e748b54252e-1--d87543-' method=REGISTER server=true) got response response='407'.
Sending (487 bytes): 192.168.0.20:5060 -> 192.168.0.30:32302
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.0.30:32302;branch=z9hG4bK-d87543-3e525e748b54252e-1--d87543-;rport=32302
From: "user" <sip:user@192.168.0.20>;tag=a0327d3b
To: "user" <sip:user@192.168.0.20>
Call-ID: MTFkNDk2YWFhZDJmYjZmMjk3NTNjMTZhNjVkYzA5MDk.
CSeq: 3 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="739c8d42ec44429eb5df359dbef6603d",opaque="54fb6cfc1317492fb7bd997a92718e37"
Content-Length: 0
<end>
Transaction(id='z9hG4bK-d87543-3e525e748b54252e-1--d87543-' method=REGISTER server=true) Timer J(wait time for retransmissions of non-INVITE requests) started, will triger after 32000.
Received (570 bytes): 192.168.0.20:5060 <- 192.168.0.30:32302
SUBSCRIBE sip:user@192.168.0.20 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.30:32302;branch=z9hG4bK-d87543-c47b5c733330301c-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:user@192.168.0.30:32302>
To: <sip:user@192.168.0.20>
From: "user"<sip:user@192.168.0.20>;tag=c537fc05
Call-ID: YjY3N2ZiNjY4OTQwNjA2MGE2OWU3YmI5MzhhMjRmMzQ.
CSeq: 1 SUBSCRIBE
Expires: 3600
Accept: application/watcherinfo+xml
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1011s stamp 41150
Event: presence.winfo
Content-Length: 0
Transaction(id='z9hG4bK-d87543-c47b5c733330301c-1--d87543-' method=SUBSCRIBE server=true) created.
Transaction(id='z9hG4bK-d87543-c47b5c733330301c-1--d87543-' method=SUBSCRIBE server=true) Transaction timeout Timer started, will triger after 90000.
Transaction(id='z9hG4bK-d87543-c47b5c733330301c-1--d87543-' method=SUBSCRIBE server=true) got response response='480'.
Sending (355 bytes): 192.168.0.20:5060 -> 192.168.0.30:32302
<begin>
SIP/2.0 480 Temporarily Unavailable
Via: SIP/2.0/UDP 192.168.0.30:32302;branch=z9hG4bK-d87543-c47b5c733330301c-1--d87543-;rport=32302
From: "user" <sip:user@192.168.0.20>;tag=c537fc05
To: <sip:user@192.168.0.20>
Call-ID: YjY3N2ZiNjY4OTQwNjA2MGE2OWU3YmI5MzhhMjRmMzQ.
CSeq: 1 SUBSCRIBE
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Content-Length: 0
<end>
Transaction(id='z9hG4bK-d87543-c47b5c733330301c-1--d87543-' method=SUBSCRIBE server=true) Timer J(wait time for retransmissions of non-INVITE requests) started, will triger after 32000.
------
And the X-Lite's SIP Settings Are:
----
1. Account Tab Setting
1.1 User Details
Display Name -> user
User name -> user
Password -> user
Authorization user name -> user@192.168.0.20
Domain -> 192.168.0.20
1.2 Domain Proxy
Register with domain and receive incoming calls -> Checked the Check box.
Send outbound via:
O domain
O proxy Address -> 192.168.0.20 <-- checked the radio button
O target domain
2. Topology Tab Setting
2.1 Firewall Traversal
IP address:
O Discover global address
O Use local IP address <-- checked the radio button
Actually, try to checked the first and the second one.
STUN server
O Discover server <-- checked the radio button
O Use specified server: stun.counter.net
Enable ICE <-- checked the check box
2.2 Port used on local conputer
Manually specified range <-- unchecked the check box
2.3 XTunnels
Use CTunnels --> Never
3. Presence Tab Setting
Mode --> Presence Agent
Poll time --> 300
Refresh interval --> 3600
4. Advanced Tab Setting
4.1 Register Setting <-- use this as default
4.2 Advanced Options
Send SIP keep-alives <-- checked the check box
Use rport <-- checked the check box
------------------------------------------
Again, I've to say sorry for bothering you.
Thank you.
|
|
|
|
|
are you sure that passwods will match, in the log i see server rejects your password.
>="user@192.168.0.20"
probably you specify wrong user name, you put address of record as user name, you need to use username you specifeid for user, not AOR.
|
|
|
|
|
Hi,
You right the point of password.
In the code dubugging, every request to REGISTER I can not find the password which sended by client at the m_pAuth.
means, I entered exactly in X-Lite Client like (username=user, password="password", aor="user@192.168.0.20") but I cannot see the value "password" in Password of m_pAuth object.
I'm trying to find out the reason.
Beside on my way, if you know the reason, teach me plese.
Best regards.
|
|
|
|
|
In X:
user = user (no @domain);
password = password;
auth name = user (no @domain);
domain = @domain og AOR
register checkbox checked
use proxy checked, proxy = serverIP
Thats what you need to fill.
|
|
|
|
|
Hi, I got the same problem, how did you solve it?
Thanks
|
|
|
|
|
Hi,
B2BUA Register
How make SIPproxy register in other SIPproxy ?
Thanks,
|
|
|
|
|
Hi,
I dont see any "point" about that ... ?
Do you mean server user(s) will register to another servers, so all calls come to 1 server ?
|
|
|
|
|
Hi,
I need send call to other sipproxy.
For exemple:
[user1]----register--->[SipProxyLumi]-----register----->[SipProxyProvider]---->[SendCalltoPSTN]
It's is B2BUA correct ?
Send-me what is the class and code for register in other sipproxy.
Thanks,
|
|
|
|
|
Nope, b2bua is just transperant proxy, it hides acutal end point to which it's connected.
Like:
userA -> b2bua -> prox1 - proxy2 -> user2
then userA just sees thats its connected "b2bua", it doesnt know path after it.
|
|
|
|
|
Hi,
How read and modify URI ?
How create route external for GWs ?
Example rote to:
User Registred in proxy, send Call to GW: 200.200.200.1
Example modify URI:
uri received in SipProxy= sip: 100@200.200.200.200
uri modify for= sip: 300@200.200.200.200
(I need use Translator, Prefix...)
Thanks.
-- modified at 12:08 Friday 7th September, 2007
|
|
|
|
|
Hi,
It's not currently supported but it will be.
It will be regex URI match and optional replace.
|
|
|
|
|
Hi,
The licence is free ?
Can I sell (SIPProxy or source code) ?
Thanks,
|
|
|
|
|
Hi,
Nope, probably this will be almost only limitation.
General idea is:
*) you can use binary without restrictions
*) you can links source code parts to your product(when product isnt same as i provide) when not changing namespaces and class names.
*) all possible, then special agreement
|
|
|
|
|
Hi,
Good work!
I need your help.
Your have exemple PBX in .NET ?
or RTP in any codec ?
Thanks,
Luciano - From Brasil
Luciano - From Brasil
|
|
|
|
|
Hi,
I have no PBX example and RTP is under construction at moment (will be available near future).
|
|
|
|
|
-Display-Name doesn't support spaces
-Nat Support, Alway insert Via recieved & rport, would be better if it's optional.
|
|
|
|
|
Hi,
>Display-Name doesn't support spaces
Parsing or composing ?
>-Nat Support, Alway insert Via recieved & rport, would be better if it's optional.
Must check if that wont conflict with something.
|
|
|
|
|
hi ivar :
i am a student name karthieyan form india
i am into the stage of developing a sip client like x-lite .,
i need some basic things to do .,
i dont know where to start
please help me
thanks
Karthikeyan
India
|
|
|
|
|
What about reading rfc 3550.
|
|
|
|
|
when use rtp,how to through nat ? 8:30 6 Jul '07
i haved finished c# version sip and rtp,can you tell me how to through nat using your stun
the following is my code example:
private void ConnectStun()
{
try
{
socket = new System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Dgram, System.Net.Sockets.ProtocolType.Udp);
socket.Bind(new System.Net.IPEndPoint(System.Net.IPAddress.Any, SystemConfig.SipPort));
LumiSoft.Net.STUN.Client.STUN_Result result = LumiSoft.Net.STUN.Client.STUN_Client.Query(SystemConfig.StunServer, SystemConfig.StunPort, socket);
if (result.NetType != LumiSoft.Net.STUN.Client.STUN_NetType.UdpBlocked)
{
MySipClient.Bind((System.Net.IPEndPoint)socket.LocalEndPoint, socket);
}
MySipClient.NatAddress = result.PublicEndPoint;
StartStun();
}
catch (Exception x)
{
MessageBox.Show(this, "Error: " + x.ToString(), "Error:", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
is right?
how to refresh stun's socket,also is sip socket
chenghua.li
|
|
|
|
|
To accpet calls and if you are behind NAT, stun wont help, you need to use SIP proxy.
STUN just gives your external IP:port, in SIP this is only usefull for creating SDP.
>how to refresh stun's socket,also is sip socket
Why you need to update it, normally you send keep-alives which keep these sockets live.
|
|
|
|
|
if as you said,After one sip or rtp session finished,i can't get sip response message or rtp packet from server endpoint,because of route map relation had deleted.
sip may refresh it by continuos register every 200 sec
chenghua li
|
|
|
|
|
SIP establishes dialog, dialog keeps end point, so during dialog SIP endpoint may change with re-INVITE or UPDATE commnad. But that doesnt affect SIP binds, because as said, that value keeped in dialog.
For RTP too, re-INVITE or UPDATE may change it, but then you need to create new RTP session, not to update old one !!!
|
|
|
|
|