[OpenSIPS-Users] B2BUA Transfers Intermittently Working/Not Working (Bug?)
Brett Woollum
brett at woollum.com
Thu Oct 28 23:39:03 CEST 2010
Got it.
I've updated the MySQL table and started OpenSIPS (which is version 1.6 from the SVN head). I tried the calling again (with 2 transfers) and I now see the 202 Accepted message which is correct, but the second transfer is still failing with the same error:
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> .
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_from_header: bad from header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:b2b_entities:b2b_prescript_f: cannot parse From header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> .
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_from_header: bad from header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:pv_get_from_attr: cannot parse From header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> .
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_from_header: bad from header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:pv_get_from_attr: cannot parse From header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:do_assign: no value in right expression
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:do_assign: error at line: 314
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> .
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_from_header: bad from header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:siptrace:sip_trace: cannot parse FROM header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> .
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_from_header: bad from header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:pv_get_from_attr: cannot parse From header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> .
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_from_header: bad from header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:rr:record_route: From parsing failed
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> .
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_from_header: bad from header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:tm:new_t: no valid From in INVITE
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:tm:t_newtran: new_t failed
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> .
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_from_header: bad from header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:siptrace:trace_sl_onreply_out: cannot parse FROM header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> .
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:parse_from_header: bad from header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2998]: ERROR:core:pv_get_from_attr: cannot parse From header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2999]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> .
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2999]: ERROR:core:parse_from_header: bad from header
Oct 28 14:16:40 sip01 /usr/local/sbin/opensips[2999]: ERROR:b2b_entities:b2b_tm_cback: cannot parse From header
The call trace shows that OpenSIPS is not originating the new call leg out to the phone that the call was transferred to (probably because of the error above). I don't see any errors in the call trace with regard to the REFER message (or any others) sent by the phones. The REFER looks the same with different extensions for the first transfer and the second transfer. It seems like OpenSIPS is just not handling the second transfer correctly.
Brett Woollum
Brett at Woollum.com
----- Original Message -----
From: "Anca Vamanu" <anca at opensips.org>
To: users at lists.opensips.org
Sent: Thursday, October 28, 2010 1:31:44 AM GMT -08:00 US/Canada Pacific
Subject: Re: [OpenSIPS-Users] B2BUA Transfers Intermittently Working/Not Working (Bug?)
Hi Brett,
You should have used the script in scripts/mysql/b2b_create.sql . What you have missed is inserting in version table the version number for the new tables
INSERT INTO version (table_name, table_version) values ('b2b_entities','1');
INSERT INTO version (table_name, table_version) values ('b2b_logic','1');
Regards,
--
Anca Vamanu www.voice-system.ro
On 10/28/2010 01:46 AM, Brett Woollum wrote:
Hi Anca,
I tried to install from the 1.6 branch and I am getting errors about the database version for b2b_entities:
Oct 27 15:45:30 sip01 /usr/local/sbin/opensips[15672]: ERROR:core:db_check_table_version: invalid version 0 for table b2b_entities found, expected 1
Oct 27 15:45:30 sip01 /usr/local/sbin/opensips[15672]: ERROR:b2b_entities:mod_init: error during table version check
Oct 27 15:45:30 sip01 /usr/local/sbin/opensips[15672]: ERROR:core:init_mod: failed to initialize module b2b_entities
Oct 27 15:45:30 sip01 /usr/local/sbin/opensips[15672]: ERROR:core:main: error while initializing modules
Oct 27 15:45:30 sip01 /usr/local/sbin/opensips[15672]: NOTICE:presence:destroy: destroy module ...
I used /usr/local/sbin/opensipsdbctl create to make the tables.
Is there information available that would tell me what modifications I need to make to the b2b_entities table for it to work properly?
Brett Woollum
Brett at Woollum.com
----- Original Message -----
From: "Anca Vamanu" <anca at opensips.org>
To: users at lists.opensips.org
Sent: Tuesday, October 26, 2010 4:06:16 AM GMT -08:00 US/Canada Pacific
Subject: Re: [OpenSIPS-Users] B2BUA Transfers Intermittently Working/Not Working (Bug?)
Hi Brett,
Sorry, I was mistaken, I tested wrongly with 1.6 the first time. It does work with 1.6 also, you can update from the 1.6 branch and check.
Regards,
--
Anca Vamanu www.voice-system.ro
On 10/26/2010 01:41 PM, Anca Vamanu wrote:
Hi Brett,
I have just tried your scenario with trunk and I see the 200 OK reply. I have checked with 1.6 and indeed it seems to be a problem. I think I will backport the changes in these two modules - even though they are quite a lot, but there is no point in debugging on old code when this problem is fixed.
So, I suggest for you to update from trunk, at least these two modules - b2b_entities and b2b_logic.
Be aware that you will have to install the database tables also.
Regards,
--
Anca Vamanu www.voice-system.ro
_______________________________________________ Users mailing list Users at lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users _______________________________________________
Users mailing list Users at lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users at lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20101028/c036307b/attachment-0001.htm
More information about the Users
mailing list