News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

SIP registration problems - please help!

Started by ichigo, March 14, 2012, 06:35:54 PM

Previous topic - Next topic

ichigo

#20
Okay... that's quite messed up...

To go over your suggestions one by one: I had initially set up ASAHI as SP1, so the X_UserAgentPort = 5060 has already been tried. Nevertheless, I tried what ever you suggested, just in case SP2 magically opens up the connection... but no luck :(

I tried setting up the PPoE on the Mac, which was quite easy. But I had trouble getting the TC to connect to the network created by the Mac. My iPhone connected happily and used the internet connection, but TC refused - not sure what I did wrong.

I could try out the PBXes option, but I am not sure which settings I have to change... unless you "guide" me.

I will try using a FON router (I realized I had one, given to me by SoftBank when I got the iPhone) tonight and see if that helps.

Finally, you mentioned at the beginning that the rport parameter is ignored by the OBi... Is there a way to let the developers know...maybe they can fix that with an update?

Thank you for your patience with this so far!

============
Tested with the new router: modem>router>OBi (ethernet);
Mac connected via WiFi
Still getting the 401 error, when I checked on the Mac. Added port forwarding for 5060-5061, but it still gives the 401.

Stewart

Sorry for the long delay in replying.

I tried having PBXes register to a local device.  Unfortunately, it sends rport, so that won't work for you.

There are still lots of missing pieces to this puzzle.  In a "classic" SIP request, the Via header tells the server the IP address and port to which the response should be sent.  Obviously, that won't work if the client is behind a NAT.  There are three ways of dealing with that problem.  One is for the server to reply to whatever IP/port from which the request came, which is Callcentric's approach and works fine on your system. A second method is a SIP ALG in the router, which substitutes the proper address and port in various headers.  Finally, the client device can act as if it is on a public IP, learning (by STUN or received/port parameters) the proper IP and port to send.

In the present failing situation, the OBi learns its public address, but not the correct public port number.  It then sends an incorrect Via header with the public IP but port 5061.  When you have no forwarding in place, the response gets discarded, resulting in the "Waiting for server response" status.  With forwarding, you get the response, but it's another 401.  I don't know whether that's because the server sees an inconsistency between the Via header and the actual source, or it's for some unrelated reason.  We could find out, if you have a way for you (or someone else) to test OBi with ASAHI on a public IP.

I don't know how we are getting a response to the initial REGISTER request, which has the private address in Via.  Also, X-Lite is presenting only the private address, and is working fine.  Either when Via shows a private address, the server responds to the source address/port, or the AE is doing some sort of ALG.  We could find out, by testing X-Lite through a router known to have no SIP ALG, or have one that can be disabled.

If the OBi does work with ASAHI, behind a NAT that doesn't translate the source port number, a different router would be the easiest solution.  Perhaps port forwarding on the FON router would help, or alternate firmware could be loaded in, e.g. DD-WRT.  Does the AE have latest firmware?  Can your modem be configured to do the PPPoE internally?  Any chance of getting the TC to associate with the Mac Wi-Fi?

Otherwise, perhaps Obihai could fix it to ignore the received tag when rport is off, or you could insert some kind of SIP PBX or proxy in the path, running on your Mac, in the cloud, or a commercial service.

ichigo

Hi Stewart! Good to see you back!

I did try forwarding the ports on the FON router, but still got a 401. Loading alternate firmware to the type of FON router I have is too much of a hassle, and I don't think I have the technical expertise for that:
http://sites.google.com/site/hottunalabs/home/fonera-simpl-hacking
I will try and get a different router from one of my friends – the only reason I have been holding it off is due to the UI for these routers (usually) being in Japanese – but I can try.

The AE firmware version is 7.6.1, which is the latest for my model. The NTT ADSL modem is just that – a modem – it needs a computer or router to configure the PPPoE – although considering its size, I would have expected it to have that functionality. The issue with getting the TC to associate with the Mac Wi-Fi is that the Mac Wi-Fi has a very simple setup, which does not allow the network to be extended (I think – you can correct me if I am wrong). For instance, the options that I have on the TC for setting up the wireless are: a) Create a wireless network, b) Participate in a WDS network and c) Extend a wireless network. Option a) is ruled out. For b), the Mac has to be set up as a WDS main, but I don't see any way of doing that and for c), the TC reports that "the selected network cannot be extended". :/

I don't think I am desperate enough to "insert some kind of SIP PBX or proxy in the path, running on the Mac, in the cloud, or a commercial service" :)
Will let you know how I get along with an alternate router (will take some time though) and also see if I can get OBihai to come up with a fix.

ichigo

I finally got around to testing the OBi with a router (NEC's Aterm WR8500N) that is "tested" to be compatible with IP phones from NTT West, Asahi, etc. The PPPoE was done by this router and I connected the OBi to it directly, using ethernet. Still kept getting the 401s. Here are the logs from this setup (as earlier, starting from the initial REGISTER request, reply to the REGISTER, etc.):


REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: a253a417@192.168.0.3
Content-Length: 0
CSeq: 14732 REGISTER
From: <sip:050XXXXXXXX@asahi-net.or.jp>;tag=SP130c9d33a77dbdd44
Max-Forwards: 70
To: <sip:050XXXXXXXX@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-622dcc19
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050XXXXXXXX@192.168.0.3:5060>;expires=60;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

========

SIP/2.0 401 Unauthorized
Call-ID: a253a417@192.168.0.3
l: 0
CSeq: 14732 REGISTER
From: <sip:050XXXXXXXX@asahi-net.or.jp>;tag=SP130c9d33a77dbdd44
To: <sip:050XXXXXXXX@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-622dcc19
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Sat, 24 Mar 2012 17:59:37 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1332608824", opaque="", stale=FALSE, algorithm=MD5

=============

REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: a253a417@192.168.0.3
Content-Length: 0
CSeq: 14733 REGISTER
From: <sip:050XXXXXXXX@asahi-net.or.jp>;tag=SP130c9d33a77dbdd44
Max-Forwards: 70
To: <sip:050XXXXXXXX@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-7c725f12
Authorization: DIGEST algorithm=MD5,nonce="1332608824",opaque="",realm="ocn.ne.jp",response="5aab2584f7ebc78b94337030683ec13b",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGX"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050XXXXXXXX@118.xx.xx.xx:5060>;expires=60;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

=====================

SIP/2.0 401 Unauthorized
Call-ID: a253a417@192.168.0.3
l: 0
CSeq: 14733 REGISTER
From: <sip:050XXXXXXXX@asahi-net.or.jp>;tag=SP130c9d33a77dbdd44
To: <sip:050XXXXXXXX@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-7c725f12
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Sat, 24 Mar 2012 17:59:38 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1332608824", opaque="", stale=FALSE, algorithm=MD5

=================

REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: a253a417@192.168.0.3
Content-Length: 0
CSeq: 14734 REGISTER
From: <sip:050XXXXXXXX@asahi-net.or.jp>;tag=SP130c9d33a77dbdd44
Max-Forwards: 70
To: <sip:050XXXXXXXX@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-49226648
Authorization: DIGEST algorithm=MD5,nonce="1332608824",opaque="",realm="ocn.ne.jp",response="5aab2584f7ebc78b94337030683ec13b",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGX"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050XXXXXXXX@118.xx.xx.xx:5060>;expires=60;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

Stewart

Assuming that the stale=FALSE in the second 401 can be taken at face value, perhaps the OBi is for some reason not calculating the response= correctly.

Run this perl script to test.  Put it in a file and edit the values of $authid and $pass, and edit $nonce to match an Authorization header that you have captured.  Run it by typing
perl filename
in a terminal window, with the current path pointing to the folder where you put the file.  It should display a string that matches the corresponding response parameter.
#!/usr/bin/perl -w
use Digest::MD5 qw(md5_hex);

$authid = 'ABCDEFGX';
$pass = 'putyourpasswordhere';
$realm = 'ocn.ne.jp';
$method = 'REGISTER';
$uri = 'sip:asahi-net.or.jp:5060';
$nonce = '1332608824';

$a1 = md5_hex("$authid:$realm:$pass");
$a2 = md5_hex("$method:$uri");
print md5_hex("$a1:$nonce:$a2"), "\n";


ichigo

Sorry if I did not get you correctly, but I wasn't sure if I should use a different $nonce from the one that you already put in your script - 1332608824. If I keep that and put in the actual userid and password in the file, then running your perl script in Terminal gives me 5aab2584f7ebc78b94337030683ec13b and it matches what I sent in the earlier post. Is that what you were looking for?

Stewart

I assume that X-Lite works correctly with the new router.

Your test was as I requested, so there must be some other reason why the REGISTER with Authorization is still being rejected.

1. I see expires=60 in the Contact header and don't know why the OBi would be sending that.  Did you change the default value of RegisterExpires in the OBi?  If so, see whether resetting it to the default (3600) helps.

2. Conceivably, ASAHI will only accept certain User-Agent values.  Try setting X_UserAgentName to
X-Lite 4 release 4.1 stamp 63215

If neither helps, I'll post a perl script that will force the Contact header to look like X-Lite's.

RonR

Quote from: Stewart on March 25, 2012, 05:14:48 AM
1. I see expires=60 in the Contact header and don't know why the OBi would be sending that.  Did you change the default value of RegisterExpires in the OBi?  If so, see whether resetting it to the default (3600) helps.

The OBi sends the value of RegistrationPeriod for expires= in the Contact header, not the value of RegisterExpires.  The default value of RegistrationPeriod in the OBi is 60.

I just confirmed this with WireShark.

Stewart

Quote from: RonR on March 25, 2012, 06:22:11 AMThe OBi sends the value of RegistrationPeriod for expires= in the Contact header, not the value of RegisterExpires.  The default value of RegistrationPeriod in the OBi is 60.
Thanks for catching that.  The OP should try setting RegistrationPeriod to 3600.  If no luck, we'll try tweaking the Contact header next.

ichigo

X-Lite does manage to register with the new router.
I changed RegistrationPeriod to 3600.
RegisterExpires was already 3600.
I hadn't touched these settings earlier.

Results:
No change from previous outcome.

Logs:

A) Obi masquerading as X-Lite:

REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: e8349bcb@192.168.0.3
Content-Length: 0
CSeq: 4143 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP17e1d28d65c47b151
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-350c1561
User-Agent: X-Lite 4 release 4.1 stamp 63215
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

SIP/2.0 401 Unauthorized
Call-ID: e8349bcb@192.168.0.3
l: 0
CSeq: 4143 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP17e1d28d65c47b151
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-350c1561
User-Agent: X-Lite 4 release 4.1 stamp 63215
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Mon, 26 Mar 2012 16:11:10 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1332778071", opaque="", stale=FALSE, algorithm=MD5

REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: e8349bcb@192.168.0.3
Content-Length: 0
CSeq: 4144 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP17e1d28d65c47b151
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-4276ab87
Authorization: DIGEST algorithm=MD5,nonce="1332778071",opaque="",realm="ocn.ne.jp",response="862cbfd068e9d548a6af50d50f5c2bda",uri="sip:asahi-net.or.jp:5060",username="XXXXXXXX"
User-Agent: X-Lite 4 release 4.1 stamp 63215
Contact: <sip:050xxxxxxxx@118.xx.xx.xx:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

SIP/2.0 401 Unauthorized
Call-ID: e8349bcb@192.168.0.3
l: 0
CSeq: 4144 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP17e1d28d65c47b151
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-4276ab87
User-Agent: X-Lite 4 release 4.1 stamp 63215
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Mon, 26 Mar 2012 16:11:11 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1332778071", opaque="", stale=FALSE, algorithm=MD5

REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: e8349bcb@192.168.0.3
Content-Length: 0
CSeq: 4145 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP17e1d28d65c47b151
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-4a59f0aa
Authorization: DIGEST algorithm=MD5,nonce="1332778071",opaque="",realm="ocn.ne.jp",response="862cbfd068e9d548a6af50d50f5c2bda",uri="sip:asahi-net.or.jp:5060",username="XXXXXXXX"
User-Agent: X-Lite 4 release 4.1 stamp 63215
Contact: <sip:050xxxxxxxx@118.xx.xx.xx:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

*****************************
B) The real X-lite:

REGISTER sip:asahi-net.or.jp SIP/2.0
Via: SIP/2.0/UDP 192.168.0.4:5060;branch=z9hG4bK-d8754z-5f44145cc126604c-1---d8754z-
Max-Forwards: 70
Contact: <sip:050xxxxxxxx@192.168.0.4:5060;rinstance=98c1394d3a1d0472;transport=udp>
To: <sip:050xxxxxxxx@asahi-net.or.jp>
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=206f6044
Call-ID: ZmJkMTgxZjY2MzU1OGUxMDZjN2ZkMjk0ZmVjYWE1YzI.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.1 stamp 63215
Content-Length: 0

SIP/2.0 401 Unauthorized
v: SIP/2.0/UDP 192.168.0.4:5060;received=118.xx.xx.xx;branch=z9hG4bK-d8754z-5f44145cc126604c-1---d8754z-
To: <sip:050xxxxxxxx@asahi-net.or.jp>
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=206f6044
Call-ID: ZmJkMTgxZjY2MzU1OGUxMDZjN2ZkMjk0ZmVjYWE1YzI.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.1 stamp 63215
l: 0
Date: Mon, 26 Mar 2012 15:53:29 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1332774470", opaque="", stale=FALSE, algorithm=MD5

REGISTER sip:asahi-net.or.jp SIP/2.0
Via: SIP/2.0/UDP 192.168.0.4:5060;branch=z9hG4bK-d8754z-a5508568d1e8bc1d-1---d8754z-
Max-Forwards: 70
Contact: <sip:050xxxxxxxx@192.168.0.4:5060;rinstance=98c1394d3a1d0472;transport=udp>
To: <sip:050xxxxxxxx@asahi-net.or.jp>
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=206f6044
Call-ID: ZmJkMTgxZjY2MzU1OGUxMDZjN2ZkMjk0ZmVjYWE1YzI.
CSeq: 2 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.1 stamp 63215
Authorization: Digest username="XXXXXXXX",realm="ocn.ne.jp",nonce="1332774470",uri="sip:asahi-net.or.jp",response="2de5d19ea8105380f6f8d6c05f01f424",algorithm=MD5
Content-Length: 0

SIP/2.0 200 OK
v: SIP/2.0/UDP 192.168.0.4:5060;received=118.xx.xx.xx;branch=z9hG4bK-d8754z-a5508568d1e8bc1d-1---d8754z-
m: <sip:050xxxxxxxx@192.168.0.4:5060>;expires=3600
To: <sip:050xxxxxxxx@asahi-net.or.jp>
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=206f6044
Call-ID: ZmJkMTgxZjY2MzU1OGUxMDZjN2ZkMjk0ZmVjYWE1YzI.
CSeq: 2 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.1 stamp 63215
Content-Length: 0
Date: Mon, 26 Mar 2012 15:53:29 GMT

*****************

Over to you.

Stewart

Try this script:
#!/usr/bin/perl -w
use IO::Socket;

$obiip = '192.168.0.3';         # OBi IP
$obiport = 5060;                # X_UserAgentPort on OBi
$server = '210.227.109.205';    # ASAHI proxy
$sport = 5060;                  # server port

$lport = 5060;                  # port to listen on
$dgs = new IO::Socket::INET(LocalPort => $lport, Proto => 'udp') or die "Socket: $!\n";
while (1) {
    $rcv = $dgs->recv($ibuf, 2000, 0);
    next unless $rcv && length($rcv) >= 8; # ignore errors
    $raddr = inet_ntoa((sockaddr_in($rcv))[1]); # get source addr
    print "pkt from $raddr\n";
    if ($raddr eq $obiip) {     # packet from OBi
#        $ibuf =~ s/;\+sip\.instance=[\"\-<>:\w]+//; # remove sip.instance parameter
        $dpaddr = sockaddr_in($sport, inet_aton($server));
        $dgs->send($ibuf, 0, $dpaddr); # send to server
    }
    elsif ($raddr eq $server) { # packet from server
        $ibuf =~ s/received=[\d\.]+;//; # remove received= parameter
        $dpaddr = sockaddr_in($obiport, inet_aton($obiip));
        $dgs->send($ibuf, 0, $dpaddr); # send to OBi
    }
}
If needed, edit the value of $obiip to the private IP address of the OBi.  Start the script (it binds to port 5060 so make sure that X-Lite or other VoIP app is shut down).  If you needed to forward port 5060 to the OBi, forward it to the Mac instead.  On the OBi, set OutboundProxy to 192.168.0.4 (the private IP address of the Mac).

Wireshark should show each SIP request packet three times: OBi to script, script to server, and SIP Debug output.  Likewise for the response: server to script, script to OBi and SIP Debug output.

Initially, the script just strips the received= parameter from the Via response, which I hope will cause the OBi to keep the private address in the Contact header.  If that doesn't help, uncomment the statement to remove +sip.instance.  (When you edit the script, stop and restart its execution, then restart the OBi.)

I'm hoping that this will allow the OBi to register -- it will probably need more tweaks to actually make or receive calls.

If no luck, please shut down the script and retest X-Lite with Callcentric.  I'm curious whether your new router is preserving the source port number -- if it is, you should see rport=5060 in the incoming Via headers.  Some routers that don't normally preserve the source port number will do so when the port is forwarded.

Stewart

Did you ever get this working?  If so, please report what problem you found and how you fixed it.  If not, are you using asahinet by some other means?  Using a different VoIP service?

ichigo

Sorry for the delay in posting the update.

I tried out all your suggestions, but I simply couldn't get the OBi to register with ASAHI. I have attached the logs for you to have a look (there are 3 sections, one for each setup/configuration). I think we should let it be - unless you can think of a way to get the OBI to register directly without going via my Mac: I do not want to keep it switched on all the time, just so that the OBi is able to register!

I had sent a support request to OBi, but they weren't very helpful - almost seemed they didn't understand the problem. So I gave up :(

I think I will just use X-lite on the Mac for making/receiving calls via Asahinet and keep google voice on the OBi. Till OBi comes up with an update that might get this to work :(

###########ASAHI via script
**syslog
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 20a63dda@192.168.0.3
Content-Length: 0
CSeq: 15017 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-24606642
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces



**OBI to script
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 20a63dda@192.168.0.3
Content-Length: 0
CSeq: 15017 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-24606642
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**script to server
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 20a63dda@192.168.0.3
Content-Length: 0
CSeq: 15017 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-24606642
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**server to script
SIP/2.0 401 Unauthorized
Call-ID: 20a63dda@192.168.0.3
l: 0
CSeq: 15017 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-24606642
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:46:38 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**script to OBI
SIP/2.0 401 Unauthorized
Call-ID: 20a63dda@192.168.0.3
l: 0
CSeq: 15017 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-24606642
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:46:38 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5


**syslog
SIP/2.0 401 Unauthorized
Call-ID: 20a63dda@192.168.0.3
l: 0
CSeq: 15017 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-24606642
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:46:38 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**syslog
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 20a63dda@192.168.0.3
Content-Length: 0
CSeq: 15018 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-51b1fa50
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**OBI to script
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 20a63dda@192.168.0.3
Content-Length: 0
CSeq: 15018 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-51b1fa50
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**script to server
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 20a63dda@192.168.0.3
Content-Length: 0
CSeq: 15018 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-51b1fa50
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**server to script
SIP/2.0 401 Unauthorized
Call-ID: 20a63dda@192.168.0.3
l: 0
CSeq: 15018 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-51b1fa50
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:46:40 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**script to OBI
SIP/2.0 401 Unauthorized
Call-ID: 20a63dda@192.168.0.3
l: 0
CSeq: 15018 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-51b1fa50
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:46:40 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**syslog
SIP/2.0 401 Unauthorized
Call-ID: 20a63dda@192.168.0.3
l: 0
CSeq: 15018 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-51b1fa50
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:46:40 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**syslog
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 20a63dda@192.168.0.3
Content-Length: 0
CSeq: 15019 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-275ef617
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**OBI to script
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 20a63dda@192.168.0.3
Content-Length: 0
CSeq: 15019 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-275ef617
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**script to server
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 20a63dda@192.168.0.3
Content-Length: 0
CSeq: 15019 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-275ef617
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**server to script
SIP/2.0 401 Unauthorized
Call-ID: 20a63dda@192.168.0.3
l: 0
CSeq: 15019 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-275ef617
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:46:40 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**script to OBI
SIP/2.0 401 Unauthorized
Call-ID: 20a63dda@192.168.0.3
l: 0
CSeq: 15019 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-275ef617
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:46:40 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**syslog
SIP/2.0 401 Unauthorized
Call-ID: 20a63dda@192.168.0.3
l: 0
CSeq: 15019 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-275ef617
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:46:40 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**syslog
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 4c582191@192.168.0.3
Content-Length: 0
CSeq: 38104 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-209e1db6
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**OBI to script
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 4c582191@192.168.0.3
Content-Length: 0
CSeq: 38104 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-209e1db6
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**script to server
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 4c582191@192.168.0.3
Content-Length: 0
CSeq: 38104 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP15685caf615c986df
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-209e1db6
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces



ichigo

The rest of the logs - it didn't allow me to post everything in one post.


#######ASAHI with the script uncommented (to remove +sip.instance)
**syslog
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 3cde8ee1@192.168.0.3
Content-Length: 0
CSeq: 20454 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-504eeb50
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces



**OBI to script
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 3cde8ee1@192.168.0.3
Content-Length: 0
CSeq: 20454 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-504eeb50
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**script to server
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 3cde8ee1@192.168.0.3
Content-Length: 0
CSeq: 20454 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-504eeb50
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces


**server to script
SIP/2.0 401 Unauthorized
Call-ID: 3cde8ee1@192.168.0.3
l: 0
CSeq: 20454 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-504eeb50
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:55:35 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**script to OBI
SIP/2.0 401 Unauthorized
Call-ID: 3cde8ee1@192.168.0.3
l: 0
CSeq: 20454 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-504eeb50
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:55:35 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5



**syslog
SIP/2.0 401 Unauthorized
Call-ID: 3cde8ee1@192.168.0.3
l: 0
CSeq: 20454 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-504eeb50
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:55:35 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**syslog
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 3cde8ee1@192.168.0.3
Content-Length: 0
CSeq: 20455 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-194fa1b5
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**OBI to script
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 3cde8ee1@192.168.0.3
Content-Length: 0
CSeq: 20455 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-194fa1b5
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**script to server
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 3cde8ee1@192.168.0.3
Content-Length: 0
CSeq: 20455 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-194fa1b5
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces


**server to script
SIP/2.0 401 Unauthorized
Call-ID: 3cde8ee1@192.168.0.3
l: 0
CSeq: 20455 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-194fa1b5
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:55:37 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**script to OBI
SIP/2.0 401 Unauthorized
Call-ID: 3cde8ee1@192.168.0.3
l: 0
CSeq: 20455 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-194fa1b5
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:55:37 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**syslog
SIP/2.0 401 Unauthorized
Call-ID: 3cde8ee1@192.168.0.3
l: 0
CSeq: 20455 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-194fa1b5
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:55:37 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**syslog
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 3cde8ee1@192.168.0.3
Content-Length: 0
CSeq: 20456 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-753d8a6b
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**OBI to script
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 3cde8ee1@192.168.0.3
Content-Length: 0
CSeq: 20456 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-753d8a6b
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**script to server
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 3cde8ee1@192.168.0.3
Content-Length: 0
CSeq: 20456 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-753d8a6b
Authorization: DIGEST algorithm=MD5,nonce="1333635109",opaque="",realm="ocn.ne.jp",response="54e1ab3ca2aefb864606e2b3be7b9680",uri="sip:asahi-net.or.jp:5060",username="ABCDEFGH"
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces


**server to script
SIP/2.0 401 Unauthorized
Call-ID: 3cde8ee1@192.168.0.3
l: 0
CSeq: 20456 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-753d8a6b
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:55:37 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**script to OBI
SIP/2.0 401 Unauthorized
Call-ID: 3cde8ee1@192.168.0.3
l: 0
CSeq: 20456 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-753d8a6b
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:55:37 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**syslog
SIP/2.0 401 Unauthorized
Call-ID: 3cde8ee1@192.168.0.3
l: 0
CSeq: 20456 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-753d8a6b
User-Agent: OBIHAI/OBi100-1.3.0.2690
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Thu, 05 Apr 2012 14:55:37 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1333635109", opaque="", stale=FALSE, algorithm=MD5

**syslog
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 043ab5f8@192.168.0.3
Content-Length: 0
CSeq: 37498 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-7addc0e8
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**OBI to script
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 043ab5f8@192.168.0.3
Content-Length: 0
CSeq: 37498 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-7addc0e8
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

**script to server
REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: 043ab5f8@192.168.0.3
Content-Length: 0
CSeq: 37498 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP142ba1c06728a71a5
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-7addc0e8
User-Agent: OBIHAI/OBi100-1.3.0.2690
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces


############callcentric & X-lite
**mac to callcentric
REGISTER sip:callcentric.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.11:18304;branch=z9hG4bK-d8754z-6c02e15ef2f14723-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:17xxxxxxxxx@192.168.0.11:18304;rinstance=c589050c263e2343;transport=udp>
To: "17xxxxxxxxx"<sip:17xxxxxxxxx@callcentric.com>
From: "17xxxxxxxxx"<sip:17xxxxxxxxx@callcentric.com>;tag=1da5972c
Call-ID: ZmYwODgzM2ZjYjFhM2Q5NGY0MmYyNzA0MjJjNzdkNmQ.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.1 stamp 63215
Content-Length: 0

**callcentric to mac
SIP/2.0 407 Proxy Authentication Required
v: SIP/2.0/UDP 192.168.0.11:18304;branch=z9hG4bK-d8754z-6c02e15ef2f14723-1---d8754z-;rport=18304;received=118.xx.xx.xx
f: "17xxxxxxxxx" <sip:17xxxxxxxxx@callcentric.com>;tag=1da5972c
t: "17xxxxxxxxx" <sip:17xxxxxxxxx@callcentric.com>
i: ZmYwODgzM2ZjYjFhM2Q5NGY0MmYyNzA0MjJjNzdkNmQ.
CSeq: 1 REGISTER
Proxy-Authenticate: Digest realm="callcentric.com", domain="sip:callcentric.com", nonce="333bfa75900b48cd93bc4aa951eab21f", opaque="", stale=TRUE, algorithm=MD5
l: 0

**mac to callcentric
REGISTER sip:callcentric.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.11:18304;branch=z9hG4bK-d8754z-f90c3d6654fc6a32-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:17xxxxxxxxx@192.168.0.11:18304;rinstance=c589050c263e2343;transport=udp>
To: "17xxxxxxxxx"<sip:17xxxxxxxxx@callcentric.com>
From: "17xxxxxxxxx"<sip:17xxxxxxxxx@callcentric.com>;tag=1da5972c
Call-ID: ZmYwODgzM2ZjYjFhM2Q5NGY0MmYyNzA0MjJjNzdkNmQ.
CSeq: 2 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="17xxxxxxxxx",realm="callcentric.com",nonce="333bfa75900b48cd93bc4aa951eab21f",uri="sip:callcentric.com",response="181f084fb8d9dcaaf7d5071b602ae3b2",algorithm=MD5
User-Agent: X-Lite 4 release 4.1 stamp 63215
Content-Length: 0

**callcentric to mac
NOTIFY sip:17xxxxxxxxx@192.168.0.11:18304;rinstance=c589050c263e2343;transport=udp SIP/2.0
v: SIP/2.0/UDP 204.11.192.22:5080;branch=z9hG4bK-c81ea1d1e3aca691df72891d90251052
f: <sip:17xxxxxxxxx@callcentric.com:5062>
t: <sip:17xxxxxxxxx@callcentric.com>
i: 44394ea86e66f937c8a3650f0b310489-5a83b63c66455064c7cfb3b9daf88915@callcentric.com
CSeq: 1 NOTIFY
Max-Forwards: 15
m: <sip:09878dbf69756e8993fcb21f6d19f530@204.11.192.22:5080;transport=udp>
Event: message-summary
c: application/simple-message-summary
l: 40

Messages-Waiting: no
Voicemail: 0/0


**mac to callcentric
SIP/2.0 200 OK
Via: SIP/2.0/UDP 204.11.192.22:5080;branch=z9hG4bK-c81ea1d1e3aca691df72891d90251052
Contact: <sip:192.168.0.11:18304>
To: <sip:17xxxxxxxxx@callcentric.com>;tag=50cd5313
From: <sip:17xxxxxxxxx@callcentric.com:5062>
Call-ID: 44394ea86e66f937c8a3650f0b310489-5a83b63c66455064c7cfb3b9daf88915@callcentric.com
CSeq: 1 NOTIFY
User-Agent: X-Lite 4 release 4.1 stamp 63215
Content-Length: 0

**callcentric to mac
SIP/2.0 200 Ok
v: SIP/2.0/UDP 192.168.0.11:18304;branch=z9hG4bK-d8754z-f90c3d6654fc6a32-1---d8754z-;rport=18304;received=118.xx.xx.xx
f: "17xxxxxxxxx" <sip:17xxxxxxxxx@callcentric.com>;tag=1da5972c
t: "17xxxxxxxxx" <sip:17xxxxxxxxx@callcentric.com>
i: ZmYwODgzM2ZjYjFhM2Q5NGY0MmYyNzA0MjJjNzdkNmQ.
CSeq: 2 REGISTER
m: <sip:17xxxxxxxxx@192.168.0.11:18304;rinstance=c589050c263e2343;transport=udp>;expires=60
l: 0