Hi Peter, 1. Set also the following parameters: <param name="dbname" value="share_presence"/> <param name="presence-hosts" value="$${domain}"/> 2. At the phone do NOT set the third party name. You can also have a look at http://wiki.freeswitch.org/wiki/Polycom_configuration regards, __Yehavi: 2010/11/10 Peter Steinbach <lists@telefaks.de>
Hello,
we followed the advices in http://wiki.freeswitch.org/wiki/Shared_Line_Appearance and set <param name="manage-shared-appearance" value="true"/> in the internal profile. Also presence handling is enabled.
In the Polycom phone settings we set reg.1.type="shared" reg.1.bargeInEnabled="1" reg.1.callsPerLineKey="1" according to the wiki and the Polycom documentation
In phone1.cfg we set divert.1.sharedDisabled="0"
and in sip.cfg we set call.shared.disableDivert="1" reg.1.bargeInEnabled="1"
When we call the destination number, - both phones ring - we pick up one phone - other phone stops ringing - we press "hold" on the active phone - nothings happens to the other phone
Are we doing something wrong here? We work with Polycom FW 3.2.3 and Freeswitch GIT compiled last friday.
Strange is, that Freeswitch shows a number of error messages related to SQL (we use ODBC), although all SQL statements are valid and can be sucessfully executed on the MySQL CLI. Also we do see records in sip_dialogs but not a single record in sip_presence.
Any hints? What did you do to get this working?
Here are the error messages from freeswitch.log ================================== 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:721 STATE SQL update sip_dialogs set call_info='appearance-index=1',call_info_state='idle' where hostname='mydomain.org' and uuid='d80df99a-ece4-11df-ab6f-f761d81a6b8a' 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:728 PROCESS PRESENCE EVENT 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1925 PRES SQL select sip_from_user,sip_from_host,call_info,call_info_state,uuid from sip_dialogs where hostname='mydomain.org' and sip_from_user='4702' and sip_from_host='mydomain.org' 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1946 PRES SQL select call_id,expires,sub_to_user,sub_to_host,event from sip_subscriptions where expires > -1 and hostname='mydomain.org' and sub_to_user='4702' and sub_to_host='mydomain.org' and (event='call-info' or event='line-seize') 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1773 SLA3: 0 [call_id]=[a1859461-5362d6a6-c25a8bff@172.xx.xx.xx] 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1773 SLA3: 1 [expires]=[1289412326] 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1773 SLA3: 2 [sub_to_user]=[4702] 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1773 SLA3: 3 [sub_to_host]=[mydomain.org] 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1773 SLA3: 4 [event]=[call-info] 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1773 SLA3: 0 [call_id]=[536c87c6-b366418f-2260bca4@172.21.20.194] 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1773 SLA3: 1 [expires]=[1289412332] 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1773 SLA3: 2 [sub_to_user]=[4702] 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1773 SLA3: 3 [sub_to_host]=[mydomain.org] 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1773 SLA3: 4 [event]=[call-info] 2010-11-10 17:09:13.329549 [ERR] sofia_presence.c:1961 CLEAR SQL delete from sip_dialogs where sip_from_user='4702' and sip_from_host='mydomain.org' and call_info_state='seized' 2010-11-10 17:09:13.330530 [ERR] sofia_presence.c:721 STATE SQL update sip_dialogs set call_info='appearance-index=1',call_info_state='idle' where hostname='mydomain.org' and uuid='d80df99a-ece4-11df-ab6f-f761d81a6b8a' 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:728 PROCESS PRESENCE EVENT 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1925 PRES SQL select sip_from_user,sip_from_host,call_info,call_info_state,uuid from sip_dialogs where hostname='mydomain.org' and sip_from_user='4702' and sip_from_host='mydomain.org' 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1946 PRES SQL select call_id,expires,sub_to_user,sub_to_host,event from sip_subscriptions where expires > -1 and hostname='mydomain.org' and sub_to_user='4702' and sub_to_host='mydomain.org' and (event='call-info' or event='line-seize') 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1773 SLA3: 0 [call_id]=[a1859461-5362d6a6-c25a8bff@172.xx.xx.xx] 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1773 SLA3: 1 [expires]=[1289412326] 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1773 SLA3: 2 [sub_to_user]=[4702] 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1773 SLA3: 3 [sub_to_host]=[mydomain.org] 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1773 SLA3: 4 [event]=[call-info] 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1773 SLA3: 0 [call_id]=[536c87c6-b366418f-2260bca4@172.21.20.194] 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1773 SLA3: 1 [expires]=[1289412332] 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1773 SLA3: 2 [sub_to_user]=[4702] 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1773 SLA3: 3 [sub_to_host]=[mydomain.org] 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1773 SLA3: 4 [event]=[call-info] 2010-11-10 17:09:13.331511 [ERR] sofia_presence.c:1961 CLEAR SQL delete from sip_dialogs where sip_from_user='4702' and sip_from_host='mydomain.org' and call_info_state='seized' 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:721 STATE SQL update sip_dialogs set call_info='appearance-index=1',call_info_state='idle' where hostname='mydomain.org' and uuid='d80df99a-ece4-11df-ab6f-f761d81a6b8a' 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:728 PROCESS PRESENCE EVENT 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1925 PRES SQL select sip_from_user,sip_from_host,call_info,call_info_state,uuid from sip_dialogs where hostname='mydomain.org' and sip_from_user='4702' and sip_from_host='mydomain.org' 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1946 PRES SQL select call_id,expires,sub_to_user,sub_to_host,event from sip_subscriptions where expires > -1 and hostname='mydomain.org' and sub_to_user='4702' and sub_to_host='mydomain.org' and (event='call-info' or event='line-seize') 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1773 SLA3: 0 [call_id]=[a1859461-5362d6a6-c25a8bff@172.xx.xx.xx] 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1773 SLA3: 1 [expires]=[1289412326] 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1773 SLA3: 2 [sub_to_user]=[4702] 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1773 SLA3: 3 [sub_to_host]=[mydomain.org] 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1773 SLA3: 4 [event]=[call-info] 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1773 SLA3: 0 [call_id]=[536c87c6-b366418f-2260bca4@172.21.20.194] 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1773 SLA3: 1 [expires]=[1289412332] 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1773 SLA3: 2 [sub_to_user]=[4702] 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1773 SLA3: 3 [sub_to_host]=[mydomain.org] 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1773 SLA3: 4 [event]=[call-info] 2010-11-10 17:09:13.332492 [ERR] sofia_presence.c:1961 CLEAR SQL delete from sip_dialogs where sip_from_user='4702' and sip_from_host='mydomain.org' and call_info_state='seized'
-- With kind regards Peter Steinbach
Telefaks Services GmbH Theo-Geisel-Strasse 25 D 61250 Usingen, Germany mailto:lists@telefaks.de Internet: www.telefaks.de
_______________________________________________ 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