[Freeswitch-users] Pennytel Gateway Registration problem

Anthony Minessale anthony.minessale at gmail.com
Thu Dec 18 06:12:09 PST 2008


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 at novatex.com.au>wrote:

>  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 at sip.pennytel.com;transport=udp>;tag=t0Umc83St29ND
>    To: <sip:8xxxxxx75 at sip.pennytel.com;transport=udp>
>    Call-ID: d25d6f36-ccab-11dd-900f-67e92a02be7d
>    CSeq: 108665407 REGISTER
>    Contact: <sip:8xxxxxxx75 at 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 at sip.pennytel.com;transport=udp>;tag=t0Umc83St29ND
>    To: <sip:8xxxxx75 at 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:
>
> 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:
>
>
>
>  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 listFreeswitch-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>  _______________________________________________
> Freeswitch-users mailing listFreeswitch-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081218/b95bb714/attachment-0002.html 


More information about the FreeSWITCH-users mailing list