it's mad at the sticky register-proxy need to be sip:sip.broadvoice.com do you need that setting, you can also omit it? I actually added a patch to core just now to accept either one. (it adds a sip: when it's omitted) On Mon, Nov 17, 2008 at 3:05 PM, Johny Kadarisman <jkr888@gmail.com> wrote:
I add your suggested logging statement, the output looks fine to me (no garbage value). following is the result:
reg url=[sip:sip.broadvoice.com;transport=udp] to=[< sip:6031231234@sip.broadvoice.com <sip%3A6031231234@sip.broadvoice.com>;transport=udp>] from=[<sip:6031231234@sip.broadvoice.com<sip%3A6031231234@sip.broadvoice.com>;transport=udp>] contact=[<sip:6031231234@69.248.102.128:5080;transport=udp>] reg proxy=[sip:sip.broadvoice.com] sticky=[sip.broadvoice.com]
Will try to debug with gdb on my own pace :), but appreciate if you have anymore insight on what to looks.
Johny K.
On Mon, Nov 17, 2008 at 12:09 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
nta outgoing create: invalid URI is the important part.
it doesnt like one of the uri's
open sofia_reg.c like 170 and add a debug printf right before nua_register
printf("reg url=[%s] to=[%s] from=[%s] contact=[%s] reg proxy=[%s] sticky=[%s]\n", gateway_ptr->register_url, gateway_ptr->register_from, gateway_ptr->register_from, gateway_ptr->register_contact, gateway_ptr->register_proxy, gateway_ptr->register_sticky_proxy);
this should tell us which one is annoying sofia.
On Mon, Nov 17, 2008 at 10:48 AM, Johny Kadarisman <jkr888@gmail.com>wrote:
Thanks Anthony,
now, its more verbose
nua: nh_create_handle: entering 2008-11-17 11:40:38 [NOTICE] sofia_reg.c:158 sofia_reg_check_gateway() Registering broadvoice.com nua: nua_handle_bind: entering nua: nua_register: entering nua(0x81167d8): sent signal r_register nua(0x81167d8): recv signal r_register nua: nua_stack_set_params: entering nta_leg_tcreate(0x80abd38) nua(0x81167d8): adding register usage nta outgoing create: invalid URI nta: outgoing_free(0x8107268) nua(0x81167d8): event r_register 900 Internal error at nua_stack.c:2578 nua(0x81167d8): removing register usage nta_leg_destroy(0x80abd38) nua: nua_application_event: entering 2008-11-17 11:40:38 [WARNING] sofia_reg.c:1087 sofia_reg_handle_sip_r_register() Registration Failed with status 900 nua: nua_handle_magic: entering nua: nua_handle_bind: entering nua: nua_handle_destroy: entering nua(0x81167d8): sent signal r_destroy nua(0x81167d8): recv signal r_destroy nta_leg_destroy((nil))
seems it failed on these area at nta.c:
if (invalid < 0 || !orq->orq_branch || msg_serialize(msg, (void *)sip) < 0) { SU_DEBUG_3(("nta outgoing create: %s\n", invalid < 0 ? "invalid URI" : !orq->orq_branch ? "no branch" : "invalid message")); outgoing_free(orq); return NULL; }
or these,
invalid = nta_tpn_by_url(home, orq->orq_tpn, &scheme, &port, route_url);
those line still looks 'klingon' to me ;) I'm using my old gateways config as below:
<include> <gateway name="broadvoice.com"> <param name="username" value="6031231234"/> <param name="realm" value="sip.broadvoice.com"/> <param name="password" value="1234567890"/> <param name="register-proxy" value="sip.broadvoice.com"/> <param name="register" value="true"/> </gateway> </include>
On Mon, Nov 17, 2008 at 9:03 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
usually 900 is sofia's own error from a malformed uri or some other param. can you doublecheck your settings in your gateway?
you can also enable more sofia debug with env vars NUA_DEBUG=9 NTA_DEBUG=9 TPORT_LOG=1
On Sun, Nov 16, 2008 at 5:12 PM, Johny Kadarisman <jkr888@gmail.com>wrote:
I did "make current", follow with "make install". I was experimenting with new mod_loopback, everything works okay except for gateway registration.
tport_log have a bit traffic from a couple other endpoints, but when searching thru these log, i don't see any traffic to broadvoice at all. "ngrep host sip.broadvoice.com" also doesn't report anything out from fs to broadvoice.
set console loglevel to 10, but the only think i see is :
2008-11-16 18:01:11 [NOTICE] sofia_reg.c:159 sofia_reg_check_gateway() Registering broadvoice.com 2008-11-16 18:01:11 [WARNING] sofia_reg.c:1088 sofia_reg_handle_sip_r_register() Registration Failed with status 900
On Sun, Nov 16, 2008 at 11:45 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
FYI "make sure" is now "make current" but it still works for legacy sake ;) It's the recommended method of updating the code.
On Sun, Nov 16, 2008 at 10:43 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
> do you have a trace of console on debug level and TPORT_LOG handy? > > On Sun, Nov 16, 2008 at 9:58 AM, Johny Kadarisman <jkr888@gmail.com>wrote: > >> Hi, I experience gateway registration problem after recently update >> fs to latest trunk. I couldn't connect to broadvoice any more! >> Even after set the console log to debug, The only clue i see is >> these message, >> >> 2008-11-16 10:42:46 [NOTICE] sofia_reg.c:159 >> sofia_reg_check_gateway() Registering broadvoice.com >> 2008-11-16 10:42:46 [WARNING] sofia_reg.c:1088 >> sofia_reg_handle_sip_r_register() Registration Failed with status 900 >> >> I don't see any traffic from fs to broadvoice both with tport_log or >> ngrep. from comparing the sip profile config files, seems like it should >> work the way it was. Is there anyhing that I missed? >> >> Thanks, >> Johny K. >> >> >> _______________________________________________ >> 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 >> >> > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > > AIM: anthm > MSN:anthony_minessale@hotmail.com<MSN%3Aanthony_minessale@hotmail.com> > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888@conference.freeswitch.org<sip%3A888@conference.freeswitch.org> > iax:guest@conference.freeswitch.org/888 > googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> > pstn:213-799-1400 >
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com<MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org<sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400