Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Pennytel Gateway Registration problem


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
scott.ellis at novatex...
Guest





PostPosted: Tue Dec 16, 2008 6:12 am    Post subject: [Freeswitch-users] Pennytel Gateway Registration problem Reply with quote

I have a standard install, and I am trying to get a Pennytel gateway to
register.

After looking at Wireshark traces of x-lite registering and FreeSwitch
registering, FreeSwitch is not sending any authentication information
with the registration request. I am obviously missing something here!

I understand for incoming calls you don't want authentication, but for
outgoing it is obviously required.

Is there a flag somewhere that I am supposed to set? The file was taken
from the wiki page, and looks like it was previously tested when using
the obsolete outbound directory structure.

The following file is in the conf/sip_profiles/external directory.

<include>
<gateway name="PennyTel">
<param name="username" value="888917xxxx"/>
<param name="password" value="xxxxxxx"/>
<param name="realm" value="sip.pennytel.com"/>
<param name="proxy" value="sip.pennytel.com"/>
<param name="register" value="true"/>
<param name="expire-seconds" value="60"/>
</gateway>
</include>

Thanks.

Scott


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mike at jerris.com
Guest





PostPosted: Tue Dec 16, 2008 8:28 am    Post subject: [Freeswitch-users] Pennytel Gateway Registration problem Reply with quote

We send authentication after we get a challenge because on startup we
need the nonce from them to build the hash in the Auth header properly.

Mike

On Dec 16, 2008, at 6:03 AM, Scott Ellis wrote:

Quote:
I have a standard install, and I am trying to get a Pennytel gateway
to
register.

After looking at Wireshark traces of x-lite registering and FreeSwitch
registering, FreeSwitch is not sending any authentication information
with the registration request. I am obviously missing something here!

I understand for incoming calls you don't want authentication, but for
outgoing it is obviously required.

Is there a flag somewhere that I am supposed to set? The file was
taken
from the wiki page, and looks like it was previously tested when using
the obsolete outbound directory structure.

The following file is in the conf/sip_profiles/external directory.

<include>
<gateway name="PennyTel">
<param name="username" value="888917xxxx"/>
<param name="password" value="xxxxxxx"/>
<param name="realm" value="sip.pennytel.com"/>
<param name="proxy" value="sip.pennytel.com"/>
<param name="register" value="true"/>
<param name="expire-seconds" value="60"/>
</gateway>
</include>

Thanks.

Scott


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
scott.ellis at novatex...
Guest





PostPosted: Wed Dec 17, 2008 9:47 pm    Post subject: [Freeswitch-users] Pennytel Gateway Registration problem Reply with quote

After further checking, it does not seem like the authentication after the challenge is being sent...

Are there any other settings I should be aware of other than placing the file in external and setting register to true?

Scott

2008-12-18 13:32:28 [NOTICE] sofia_reg.c:265 sofia_reg_check_gateway() Registering sip.pennytel.com
nua: nua_handle_bind: entering
nua: nua_register: entering
nua(0x89b08e0): sent signal r_register
nua(0x89b08e0): recv signal r_register
nua: nua_stack_set_params: entering
soa_clone(static::0x8977798, 0x89792f8, 0x89b08e0) called
soa_set_params(static::0x89c52c0, ...) called
soa_set_params(static::0x89c52c0, ...) called
nta_leg_tcreate(0x89c4948)
nua(0x89b08e0): adding register usage
nta: selecting scheme sip
nta: for "sip.pennytel.com" query "_sip._udp.sip.pennytel.com" SRV
nta: for "sip.pennytel.com" query "sip.pennytel.com" A (cached)
nta: sip.pennytel.com. IN A 202.85.243.87
tport_tsend(0x8976740) tpn = udp/202.85.243.87:5060
tport_resolve addrinfo = 202.85.243.87:5060
tport_by_addrinfo(0x8976740): not found by name udp/202.85.243.87:5060
tport_vsend(0x8976740): 646 bytes of 646 to udp/202.85.243.87:5060
tport_vsend returned 646
send 646 bytes to udp/[202.85.243.87]:5060 at 02:32:30.322198:
------------------------------------------------------------------------
REGISTER [url=sip:sip.pennytel.com;transport=udp]sip:sip.pennytel.com;transport=udp[/url] SIP/2.0
Via: SIP/2.0/UDP 203.113.255.140:5080;rport;branch=z9hG4bKt232eUFUNXr2e
Max-Forwards: 70
From: [url=sip:8xxxxx75@sip.pennytel.com;transport=udp]<sip:8xxxxx75@sip.pennytel.com;transport=udp>[/url];tag=t0Umc83St29ND
To: [url=sip:8xxxxxx75@sip.pennytel.com;transport=udp]<sip:8xxxxxx75@sip.pennytel.com;transport=udp>[/url]
Call-ID: d25d6f36-ccab-11dd-900f-67e92a02be7d
CSeq: 108665407 REGISTER
Contact: [url=sip:8xxxxxxx75@203.113.255.140:5080;transport=udp]<sip:8xxxxxxx75@203.113.255.140:5080;transport=udp>[/url]
Expires: 600
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-10760
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO
Supported: timer, precondition, path, replaces
Content-Length: 0

------------------------------------------------------------------------
nta: sent REGISTER (108665407) to udp/202.85.243.87:5060
tport_pend(0x8976740): pending 0x89f2d50 for udp/192.168.0.5:5080 (already 0)
nta: timer set to 32000 ms
nta: timer shortened to 500 ms
tport_wakeup_pri(0x8976740): events IN
tport_recv_event(0x8976740)
tport_recv_iovec(0x8976740) msg 0x89eeeb8 from (udp/192.168.0.5:5080) has 518 bytes, veclen = 1
recv 518 bytes from udp/[202.85.243.87]:5060 at 02:32:30.370072:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 203.113.255.140:5080;rport=5080;branch=z9hG4bKt232eUFUNXr2e
From: [url=sip:8xxxxx75@sip.pennytel.com;transport=udp]<sip:8xxxxx75@sip.pennytel.com;transport=udp>[/url];tag=t0Umc83St29ND
To: [url=sip:8xxxxx75@sip.pennytel.com;transport=udp]<sip:8xxxxx75@sip.pennytel.com;transport=udp>[/url];tag=abda4710fbd488d9ce6d01bba5c3e23b-cec7
Call-ID: d25d6f36-ccab-11dd-900f-67e92a02be7d
CSeq: 108665407 REGISTER
WWW-Authenticate: Digest realm="sip.pennytel.com", nonce="4949b76bf622961d78acb213b5556104938ecd6e"
Server: Sip EXpress router (0.9.6 (i386/freebsd))
Content-Length: 0

------------------------------------------------------------------------
tport_deliver(0x8976740): msg 0x89eeeb8 (518 bytes) from udp/202.85.243.87:5080/sip next=(nil)
nta: received 401 Unauthorized for REGISTER (108665407)
nta: 401 Unauthorized is going to a transaction
nta_outgoing: RTT is 49.89 ms
tport_release(0x8976740): 0x89f2d50 by 0x89a4640 with 0x89eeeb8
nta: timer set next to 4531 ms
nta: timer K fired, terminate REGISTER (108665407)
outgoing_reclaim_all((nil), (nil), 0xb2c6d1e8)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/2 free
nta: timer not set
2008-12-18 13:32:59 [WARNING] sofia_reg.c:307 sofia_reg_check_gateway() sip.pennytel.com Failed Registration, setting retry to 60 seconds.


Michael Jerris wrote:
Quote:
Quote:
We send authentication after we get a challenge because on startup we
need the nonce from them to build the hash in the Auth header properly.

Mike

On Dec 16, 2008, at 6:03 AM, Scott Ellis wrote:

Quote:
I have a standard install, and I am trying to get a Pennytel gateway
to
register.

After looking at Wireshark traces of x-lite registering and FreeSwitch
registering, FreeSwitch is not sending any authentication information
with the registration request. I am obviously missing something here!

I understand for incoming calls you don't want authentication, but for
outgoing it is obviously required.

Is there a flag somewhere that I am supposed to set? The file was
taken
from the wiki page, and looks like it was previously tested when using
the obsolete outbound directory structure.

The following file is in the conf/sip_profiles/external directory.

<include>
<gateway name="PennyTel">
<param name="username" value="8xxxxxxx"/>
<param name="password" value="xxxxxxx"/>
<param name="realm" value="sip.pennytel.com"/>
<param name="proxy" value="sip.pennytel.com"/>
<param name="register" value="true"/>
<param name="expire-seconds" value="60"/>
</gateway>
</include>

Thanks.

Scott


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Dec 18, 2008 9:22 am    Post subject: [Freeswitch-users] Pennytel Gateway Registration problem Reply with quote

can you press f8 to set the FS console to DEBUG and take the same capture.


On Wed, Dec 17, 2008 at 8:45 PM, Scott Ellis <scott.ellis@novatex.com.au (scott.ellis@novatex.com.au)> wrote:
Quote:
After further checking, it does not seem like the authentication after the challenge is being sent...

Are there any other settings I should be aware of other than placing the file in external and setting register to true?

Scott

2008-12-18 13:32:28 [NOTICE] sofia_reg.c:265 sofia_reg_check_gateway() Registering sip.pennytel.com
nua: nua_handle_bind: entering
nua: nua_register: entering
nua(0x89b08e0): sent signal r_register
nua(0x89b08e0): recv signal r_register
nua: nua_stack_set_params: entering
soa_clone(static::0x8977798, 0x89792f8, 0x89b08e0) called
soa_set_params(static::0x89c52c0, ...) called
soa_set_params(static::0x89c52c0, ...) called
nta_leg_tcreate(0x89c4948)
nua(0x89b08e0): adding register usage
nta: selecting scheme sip
nta: for "sip.pennytel.com" query "_sip._udp.sip.pennytel.com" SRV
nta: for "sip.pennytel.com" query "sip.pennytel.com" A (cached)
nta: sip.pennytel.com. IN A 202.85.243.87
tport_tsend(0x8976740) tpn = udp/202.85.243.87:5060
tport_resolve addrinfo = 202.85.243.87:5060
tport_by_addrinfo(0x8976740): not found by name udp/202.85.243.87:5060
tport_vsend(0x8976740): 646 bytes of 646 to udp/202.85.243.87:5060
tport_vsend returned 646
send 646 bytes to udp/[202.85.243.87]:5060 at 02:32:30.322198:
------------------------------------------------------------------------
REGISTER sip:sip.pennytel.com;transport=udp SIP/2.0
Via: SIP/2.0/UDP 203.113.255.140:5080;rport;branch=z9hG4bKt232eUFUNXr2e
Max-Forwards: 70
From: <sip:8xxxxx75@sip.pennytel.com;transport=udp>;tag=t0Umc83St29ND
To: <sip:8xxxxxx75@sip.pennytel.com;transport=udp>
Call-ID: d25d6f36-ccab-11dd-900f-67e92a02be7d
CSeq: 108665407 REGISTER
Contact: <sip:8xxxxxxx75@203.113.255.140:5080;transport=udp>
Expires: 600
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-10760
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO
Supported: timer, precondition, path, replaces
Content-Length: 0

------------------------------------------------------------------------
nta: sent REGISTER (108665407) to udp/202.85.243.87:5060
tport_pend(0x8976740): pending 0x89f2d50 for udp/192.168.0.5:5080 (already 0)
nta: timer set to 32000 ms
nta: timer shortened to 500 ms
tport_wakeup_pri(0x8976740): events IN
tport_recv_event(0x8976740)
tport_recv_iovec(0x8976740) msg 0x89eeeb8 from (udp/192.168.0.5:5080) has 518 bytes, veclen = 1
recv 518 bytes from udp/[202.85.243.87]:5060 at 02:32:30.370072:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 203.113.255.140:5080;rport=5080;branch=z9hG4bKt232eUFUNXr2e
From: <sip:8xxxxx75@sip.pennytel.com;transport=udp>;tag=t0Umc83St29ND
To: <sip:8xxxxx75@sip.pennytel.com;transport=udp>;tag=abda4710fbd488d9ce6d01bba5c3e23b-cec7
Call-ID: d25d6f36-ccab-11dd-900f-67e92a02be7d
CSeq: 108665407 REGISTER
WWW-Authenticate: Digest realm="sip.pennytel.com", nonce="4949b76bf622961d78acb213b5556104938ecd6e"
Server: Sip EXpress router (0.9.6 (i386/freebsd))
Content-Length: 0

------------------------------------------------------------------------
tport_deliver(0x8976740): msg 0x89eeeb8 (518 bytes) from udp/202.85.243.87:5080/sip next=(nil)
nta: received 401 Unauthorized for REGISTER (108665407)
nta: 401 Unauthorized is going to a transaction
nta_outgoing: RTT is 49.89 ms
tport_release(0x8976740): 0x89f2d50 by 0x89a4640 with 0x89eeeb8
nta: timer set next to 4531 ms
nta: timer K fired, terminate REGISTER (108665407)
outgoing_reclaim_all((nil), (nil), 0xb2c6d1e8)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/2 free
nta: timer not set
2008-12-18 13:32:59 [WARNING] sofia_reg.c:307 sofia_reg_check_gateway() sip.pennytel.com Failed Registration, setting retry to 60 seconds.


Michael Jerris wrote:
Quote:
Quote:
We send authentication after we get a challenge because on startup we
need the nonce from them to build the hash in the Auth header properly.

Mike

On Dec 16, 2008, at 6:03 AM, Scott Ellis wrote:

Quote:
I have a standard install, and I am trying to get a Pennytel gateway
to
register.

After looking at Wireshark traces of x-lite registering and FreeSwitch
registering, FreeSwitch is not sending any authentication information
with the registration request. I am obviously missing something here!

I understand for incoming calls you don't want authentication, but for
outgoing it is obviously required.

Is there a flag somewhere that I am supposed to set? The file was
taken
from the wiki page, and looks like it was previously tested when using
the obsolete outbound directory structure.

The following file is in the conf/sip_profiles/external directory.

<include>
<gateway name="PennyTel">
<param name="username" value="8xxxxxxx"/>
<param name="password" value="xxxxxxx"/>
<param name="realm" value="sip.pennytel.com"/>
<param name="proxy" value="sip.pennytel.com"/>
<param name="register" value="true"/>
<param name="expire-seconds" value="60"/>
</gateway>
</include>

Thanks.

Scott


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Quote:
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
scott.ellis at novatex...
Guest





PostPosted: Thu Dec 18, 2008 6:08 pm    Post subject: [Freeswitch-users] Pennytel Gateway Registration problem Reply with quote

Anthony,

Hopefully I have everything that you need this time. (Thanks for the help!)

Also, running under Ubuntu 8.10, as a VMWare workstation vm, on Vista. Phones are registering ok with FreeSwitch and I can make calls ok phone to phone etc.

Scott

FreeSWITCH Version 1.0.trunk (10760) Started.
Crash Protection [Disabled]
Max Sessions[1000]
Session Rate[30]
SQL [Enabled]
freeswitch@freeswitch>
API CALL [console(loglevel 7)] output:
+OK console log level set to DEBUG

freeswitch@freeswitch> status
API CALL [status()] output:
UP 0 years, 0 days, 0 hours, 0 minutes, 23 seconds, 25 milliseconds, 499 microseconds
0 session(s) since startup
0 session(s) 0/30

freeswitch@freeswitch> 2008-12-19 04:00:27 [WARNING] sofia_reg.c:307 sofia_reg_check_gateway() sip.pennytel.com Failed Registration, setting retry to 30 seconds.
nua: nua_handle_bind: entering
nua: nua_handle_destroy: entering
nua(0x9415108): sent signal r_destroy
nua(0x9415108): recv signal r_destroy
nua(0x9415108): removing register usage
nta_leg_destroy(0x94125a0)
soa_destroy(static::0x9414920) called
nua: nh_create_handle: entering
2008-12-19 04:00:58 [NOTICE] sofia_reg.c:265 sofia_reg_check_gateway() Registering sip.pennytel.com
nua: nua_handle_bind: entering
nua: nua_register: entering
nua(0x9413228): sent signal r_register
nua(0x9413228): recv signal r_register
nua: nua_stack_set_params: entering
soa_clone(static::0x93f2a10, 0x93f34f0, 0x9413228) called
soa_set_params(static::0x9416b60, ...) called
soa_set_params(static::0x9416b60, ...) called
nta_leg_tcreate(0x94070b8)
nua(0x9413228): adding register usage
nta: selecting scheme sip
nta: for "sip.pennytel.com" query "_sip._udp.sip.pennytel.com" SRV
nta: for "sip.pennytel.com" query "sip.pennytel.com" A
nta: sip.pennytel.com. IN A 202.85.243.87
tport_tsend(0x93f0088) tpn = udp/202.85.243.87:5060
tport_resolve addrinfo = 202.85.243.87:5060
tport_by_addrinfo(0x93f0088): not found by name udp/202.85.243.87:5060
tport_vsend(0x93f0088): 646 bytes of 646 to udp/202.85.243.87:5060
tport_vsend returned 646
send 646 bytes to udp/[202.85.243.87]:5060 at 17:01:00.136554:
------------------------------------------------------------------------
REGISTER [url=sip:sip.pennytel.com;transport=udp]sip:sip.pennytel.com;transport=udp[/url] SIP/2.0
Via: SIP/2.0/UDP 203.113.255.140:5080;rport;branch=z9hG4bKj48eQe044cBUK
Max-Forwards: 70
From: [url=sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp]<sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp>[/url];tag=j3jQKrUS5N8HS
To: [url=sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp]<sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp>[/url]
Call-ID: 4b7a9924-cd25-11dd-976a-1b8d30580e2c
CSeq: 108691462 REGISTER
Contact: [url=sip:8xxxxxxxxx5@203.113.255.140:5080;transport=udp]<sip:8xxxxxxxxx5@203.113.255.140:5080;transport=udp>[/url]
Expires: 600
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-10760
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO
Supported: timer, precondition, path, replaces
Content-Length: 0

------------------------------------------------------------------------
nta: sent REGISTER (108691462) to udp/202.85.243.87:5060
tport_pend(0x93f0088): pending 0x94135a0 for udp/192.168.0.5:5080 (already 0)
nta: timer set to 32000 ms
nta: timer shortened to 500 ms
tport_wakeup_pri(0x93f0088): events IN
tport_recv_event(0x93f0088)
tport_recv_iovec(0x93f0088) msg 0x94125a0 from (udp/192.168.0.5:5080) has 518 bytes, veclen = 1
recv 518 bytes from udp/[202.85.243.87]:5060 at 17:01:00.184294:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 203.113.255.140:5080;rport=5080;branch=z9hG4bKj48eQe044cBUK
From: [url=sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp]<sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp>[/url];tag=j3jQKrUS5N8HS
To: [url=sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp]<sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp>[/url];tag=abda4710fbd488d9ce6d01bba5c3e23b-a57b
Call-ID: 4b7a9924-cd25-11dd-976a-1b8d30580e2c
CSeq: 108691462 REGISTER
WWW-Authenticate: Digest realm="sip.pennytel.com", nonce="494ad50c54c80be946d5dd61934c3d7fdc7df9e7"
Server: Sip EXpress router (0.9.6 (i386/freebsd))
Content-Length: 0

------------------------------------------------------------------------
tport_deliver(0x93f0088): msg 0x94125a0 (518 bytes) from udp/202.85.243.87:5080/sip next=(nil)
nta: received 401 Unauthorized for REGISTER (108691462)
nta: 401 Unauthorized is going to a transaction
nta_outgoing: RTT is 57.071 ms
tport_release(0x93f0088): 0x94135a0 by 0x9413bd0 with 0x94125a0
nta: timer set next to 4514 ms
nta: timer K fired, terminate REGISTER (108691462)
outgoing_reclaim_all((nil), (nil), 0xb2d2b1e8)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/2 free
nta: timer not set
2008-12-19 04:01:29 [WARNING] sofia_reg.c:307 sofia_reg_check_gateway() sip.pennytel.com Failed Registration, setting retry to 30 seconds.
nua: nua_handle_bind: entering
nua: nua_handle_destroy: entering
nua(0x9413228): sent signal r_destroy
nua(0x9413228): recv signal r_destroy
nua(0x9413228): removing register usage
nta_leg_destroy(0x94070b8)
soa_destroy(static::0x9416b60) called
nua: nh_create_handle: entering
2008-12-19 04:02:00 [NOTICE] sofia_reg.c:265 sofia_reg_check_gateway() Registering sip.pennytel.com
nua: nua_handle_bind: entering
nua: nua_register: entering
nua(0x9413228): sent signal r_register
nua(0x9413228): recv signal r_register
nua: nua_stack_set_params: entering
soa_clone(static::0x93f2a10, 0x93f34f0, 0x9413228) called
soa_set_params(static::0x9413318, ...) called
soa_set_params(static::0x9413318, ...) called
nta_leg_tcreate(0x9416e30)
nua(0x9413228): adding register usage
nta: selecting scheme sip
nta: for "sip.pennytel.com" query "_sip._udp.sip.pennytel.com" SRV
nta: for "sip.pennytel.com" query "sip.pennytel.com" A (cached)
nta: sip.pennytel.com. IN A 202.85.243.87
tport_tsend(0x93f0088) tpn = udp/202.85.243.87:5060
tport_resolve addrinfo = 202.85.243.87:5060
tport_by_addrinfo(0x93f0088): not found by name udp/202.85.243.87:5060
tport_vsend(0x93f0088): 646 bytes of 646 to udp/202.85.243.87:5060
tport_vsend returned 646
send 646 bytes to udp/[202.85.243.87]:5060 at 17:02:02.171924:
------------------------------------------------------------------------
REGISTER [url=sip:sip.pennytel.com;transport=udp]sip:sip.pennytel.com;transport=udp[/url] SIP/2.0
Via: SIP/2.0/UDP 203.113.255.140:5080;rport;branch=z9hG4bKKD27r9g81N1DF
Max-Forwards: 70
From: [url=sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp]<sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp>[/url];tag=KccgNKcX2yy4m
To: [url=sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp]<sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp>[/url]
Call-ID: 4b7a9924-cd25-11dd-976a-1b8d30580e2c
CSeq: 108691493 REGISTER
Contact: [url=sip:8xxxxxxxxx5@203.113.255.140:5080;transport=udp]<sip:8xxxxxxxxx5@203.113.255.140:5080;transport=udp>[/url]
Expires: 600
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-10760
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO
Supported: timer, precondition, path, replaces
Content-Length: 0

------------------------------------------------------------------------
nta: sent REGISTER (108691493) to udp/202.85.243.87:5060
tport_pend(0x93f0088): pending 0x9415108 for udp/192.168.0.5:5080 (already 0)
nta: timer set to 32000 ms
nta: timer shortened to 500 ms
tport_wakeup_pri(0x93f0088): events IN
tport_recv_event(0x93f0088)
tport_recv_iovec(0x93f0088) msg 0x94388a8 from (udp/192.168.0.5:5080) has 518 bytes, veclen = 1
recv 518 bytes from udp/[202.85.243.87]:5060 at 17:02:02.218845:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 203.113.255.140:5080;rport=5080;branch=z9hG4bKKD27r9g81N1DF
From: [url=sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp]<sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp>[/url];tag=KccgNKcX2yy4m
To: [url=sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp]<sip:8xxxxxxxxx5@sip.pennytel.com;transport=udp>[/url];tag=abda4710fbd488d9ce6d01bba5c3e23b-ed81
Call-ID: 4b7a9924-cd25-11dd-976a-1b8d30580e2c
CSeq: 108691493 REGISTER
WWW-Authenticate: Digest realm="sip.pennytel.com", nonce="494ad54ae2c4bbea62dadcd6a8b620332dcbd7d2"
Server: Sip EXpress router (0.9.6 (i386/freebsd))
Content-Length: 0

------------------------------------------------------------------------
tport_deliver(0x93f0088): msg 0x94388a8 (518 bytes) from udp/202.85.243.87:5080/sip next=(nil)
nta: received 401 Unauthorized for REGISTER (108691493)
nta: 401 Unauthorized is going to a transaction
nta_outgoing: RTT is 48.883 ms
tport_release(0x93f0088): 0x9415108 by 0x9439188 with 0x94388a8
nta: timer set next to 4530 ms
nta: timer K fired, terminate REGISTER (108691493)
outgoing_reclaim_all((nil), (nil), 0xb2d2b1e8)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/2 free
nta: timer not set
2008-12-19 04:02:31 [WARNING] sofia_reg.c:307 sofia_reg_check_gateway() sip.pennytel.com Failed Registration, setting retry to 30 seconds.


Anthony Minessale wrote:
Quote:
can you press f8 to set the FS console to DEBUG and take the same capture.


On Wed, Dec 17, 2008 at 8:45 PM, Scott Ellis <scott.ellis@novatex.com.au (scott.ellis@novatex.com.au)> wrote:
Quote:
After further checking, it does not seem like the authentication after the challenge is being sent...

Are there any other settings I should be aware of other than placing the file in external and setting register to true?

Scott

2008-12-18 13:32:28 [NOTICE] sofia_reg.c:265 sofia_reg_check_gateway() Registering sip.pennytel.com
nua: nua_handle_bind: entering
nua: nua_register: entering
nua(0x89b08e0): sent signal r_register
nua(0x89b08e0): recv signal r_register
nua: nua_stack_set_params: entering
soa_clone(static::0x8977798, 0x89792f8, 0x89b08e0) called
soa_set_params(static::0x89c52c0, ...) called
soa_set_params(static::0x89c52c0, ...) called
nta_leg_tcreate(0x89c4948)
nua(0x89b08e0): adding register usage
nta: selecting scheme sip
nta: for "sip.pennytel.com" query "_sip._udp.sip.pennytel.com" SRV
nta: for "sip.pennytel.com" query "sip.pennytel.com" A (cached)
nta: sip.pennytel.com. IN A 202.85.243.87
tport_tsend(0x8976740) tpn = udp/202.85.243.87:5060
tport_resolve addrinfo = 202.85.243.87:5060
tport_by_addrinfo(0x8976740): not found by name udp/202.85.243.87:5060
tport_vsend(0x8976740): 646 bytes of 646 to udp/202.85.243.87:5060
tport_vsend returned 646
send 646 bytes to udp/[202.85.243.87]:5060 at 02:32:30.322198:
------------------------------------------------------------------------
REGISTER sip:sip.pennytel.com;transport=udp SIP/2.0
Via: SIP/2.0/UDP 203.113.255.140:5080;rport;branch=z9hG4bKt232eUFUNXr2e
Max-Forwards: 70
From: <sip:8xxxxx75@sip.pennytel.com;transport=udp>;tag=t0Umc83St29ND
To: <sip:8xxxxxx75@sip.pennytel.com;transport=udp>
Call-ID: d25d6f36-ccab-11dd-900f-67e92a02be7d
CSeq: 108665407 REGISTER
Contact: <sip:8xxxxxxx75@203.113.255.140:5080;transport=udp>
Expires: 600
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-10760
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO
Supported: timer, precondition, path, replaces
Content-Length: 0

------------------------------------------------------------------------
nta: sent REGISTER (108665407) to udp/202.85.243.87:5060
tport_pend(0x8976740): pending 0x89f2d50 for udp/192.168.0.5:5080 (already 0)
nta: timer set to 32000 ms
nta: timer shortened to 500 ms
tport_wakeup_pri(0x8976740): events IN
tport_recv_event(0x8976740)
tport_recv_iovec(0x8976740) msg 0x89eeeb8 from (udp/192.168.0.5:5080) has 518 bytes, veclen = 1
recv 518 bytes from udp/[202.85.243.87]:5060 at 02:32:30.370072:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 203.113.255.140:5080;rport=5080;branch=z9hG4bKt232eUFUNXr2e
From: <sip:8xxxxx75@sip.pennytel.com;transport=udp>;tag=t0Umc83St29ND
To: <sip:8xxxxx75@sip.pennytel.com;transport=udp>;tag=abda4710fbd488d9ce6d01bba5c3e23b-cec7
Call-ID: d25d6f36-ccab-11dd-900f-67e92a02be7d
CSeq: 108665407 REGISTER
WWW-Authenticate: Digest realm="sip.pennytel.com", nonce="4949b76bf622961d78acb213b5556104938ecd6e"
Server: Sip EXpress router (0.9.6 (i386/freebsd))
Content-Length: 0

------------------------------------------------------------------------
tport_deliver(0x8976740): msg 0x89eeeb8 (518 bytes) from udp/202.85.243.87:5080/sip next=(nil)
nta: received 401 Unauthorized for REGISTER (108665407)
nta: 401 Unauthorized is going to a transaction
nta_outgoing: RTT is 49.89 ms
tport_release(0x8976740): 0x89f2d50 by 0x89a4640 with 0x89eeeb8
nta: timer set next to 4531 ms
nta: timer K fired, terminate REGISTER (108665407)
outgoing_reclaim_all((nil), (nil), 0xb2c6d1e8)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/2 free
nta: timer not set
2008-12-18 13:32:59 [WARNING] sofia_reg.c:307 sofia_reg_check_gateway() sip.pennytel.com Failed Registration, setting retry to 60 seconds.


Michael Jerris wrote:
Quote:
Quote:
We send authentication after we get a challenge because on startup we
need the nonce from them to build the hash in the Auth header properly.

Mike

On Dec 16, 2008, at 6:03 AM, Scott Ellis wrote:

Quote:
I have a standard install, and I am trying to get a Pennytel gateway
to
register.

After looking at Wireshark traces of x-lite registering and FreeSwitch
registering, FreeSwitch is not sending any authentication information
with the registration request. I am obviously missing something here!

I understand for incoming calls you don't want authentication, but for
outgoing it is obviously required.

Is there a flag somewhere that I am supposed to set? The file was
taken
from the wiki page, and looks like it was previously tested when using
the obsolete outbound directory structure.

The following file is in the conf/sip_profiles/external directory.

<include>
<gateway name="PennyTel">
<param name="username" value="8xxxxxxx"/>
<param name="password" value="xxxxxxx"/>
<param name="realm" value="sip.pennytel.com"/>
<param name="proxy" value="sip.pennytel.com"/>
<param name="register" value="true"/>
<param name="expire-seconds" value="60"/>
</gateway>
</include>

Thanks.

Scott


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Quote:
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Quote:


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services