hi i try to send a sip notify message to a registered sip device "sofia profile nat flush_inbound_reg 10@vts.vie.xpirio.net reboot" works, but i need to send "check-sync;reboot=false" - so the device does a resync and don't do a reboot my message looks like this sendevent NOTIFY profile: nat event-string: check-sync;reboot=false user: 10 host: vts.vie.xpirio.net content-type: application/simple-message-summary if i listen on the loopback interface i do see ## T 2010/02/22 18:11:59.083204 127.0.0.1:51840 -> 127.0.0.1:8021 [AP] sendevent NOTIFY profile: nat event-string: check-sync;reboot=false user: 10 host: vts.vie.xpirio.net content-type: application/simple-message-summary ## T 2010/02/22 18:11:59.084032 127.0.0.1:8021 -> 127.0.0.1:51840 [AP] Content-Type: command/reply Reply-Text: -ERR invalid -------- i don't get what it is wrong. i also rechecked the registered user in the sqlite database and this looks good to me. no message is send to the user. we do use multiple domains, so user could also be 10@somedomain.com - or am i wrong on this? could somebody please bring some light in this. we do use trunk rev. 16631 br -- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
Read "case SWITCH_EVENT_NOTIFY:" in mod_sofia.c. I suggest you assign call-id in the header of the event. Diego Toro http://lacarretade.blogspot.com/ --- On Mon, 2/22/10, Christian Löschenkohl <christian.loeschenkohl@xpirio.com> wrote:
From: Christian Löschenkohl <christian.loeschenkohl@xpirio.com> Subject: [Freeswitch-users] sending a sip notify with sendevent To: freeswitch-users@lists.freeswitch.org Date: Monday, February 22, 2010, 12:16 PM hi
i try to send a sip notify message to a registered sip device "sofia profile nat flush_inbound_reg 10@vts.vie.xpirio.net reboot" works, but i need to send "check-sync;reboot=false" - so the device does a resync and don't do a reboot
my message looks like this
sendevent NOTIFY profile: nat event-string: check-sync;reboot=false user: 10 host: vts.vie.xpirio.net content-type: application/simple-message-summary
if i listen on the loopback interface i do see
## T 2010/02/22 18:11:59.083204 127.0.0.1:51840 -> 127.0.0.1:8021 [AP] sendevent NOTIFY profile: nat event-string: check-sync;reboot=false user: 10 host: vts.vie.xpirio.net content-type: application/simple-message-summary
## T 2010/02/22 18:11:59.084032 127.0.0.1:8021 -> 127.0.0.1:51840 [AP] Content-Type: command/reply Reply-Text: -ERR invalid
-------- i don't get what it is wrong. i also rechecked the registered user in the sqlite database and this looks good to me.
no message is send to the user.
we do use multiple domains, so user could also be 10@somedomain.com - or am i wrong on this? could somebody please bring some light in this.
we do use trunk rev. 16631
br
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
_______________________________________________ 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
Is this not documented on the wiki yet? /b On Feb 22, 2010, at 12:30 PM, Diego Toro wrote:
Read "case SWITCH_EVENT_NOTIFY:" in mod_sofia.c. I suggest you assign call-id in the header of the event.
Diego Toro http://lacarretade.blogspot.com/
its at the very least missing the profile name On Mon, Feb 22, 2010 at 12:35 PM, Brian West <brian@freeswitch.org> wrote:
Is this not documented on the wiki yet?
/b
On Feb 22, 2010, at 12:30 PM, Diego Toro wrote:
Read "case SWITCH_EVENT_NOTIFY:" in mod_sofia.c. I suggest you assign call-id in the header of the event.
Diego Toro http://lacarretade.blogspot.com/
_______________________________________________ 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/ Twitter: http://twitter.com/FreeSWITCH_wire 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:+19193869900
thank you for this advise i read the section "case SWITCH_EVENT_NOTIFY" carefully, debugged my script (i messed something up, with telnet the command works - returns Reply-Text: +OK) sql is executed and returns 1 row select sip_user,sip_host,contact,profile_name,'application/simple-message-summary','check-sync;reboot=true','' from sip_registrations where sip_user='10' and sip_host='vts.vie.xpirio.net' however no notify message is send to the device i can't use call-id because i simply don't know it br Diego Toro wrote:
Read "case SWITCH_EVENT_NOTIFY:" in mod_sofia.c. I suggest you assign call-id in the header of the event.
Diego Toro http://lacarretade.blogspot.com/
--- On Mon, 2/22/10, Christian Löschenkohl <christian.loeschenkohl@xpirio.com> wrote:
From: Christian Löschenkohl <christian.loeschenkohl@xpirio.com> Subject: [Freeswitch-users] sending a sip notify with sendevent To: freeswitch-users@lists.freeswitch.org Date: Monday, February 22, 2010, 12:16 PM hi
i try to send a sip notify message to a registered sip device "sofia profile nat flush_inbound_reg 10@vts.vie.xpirio.net reboot" works, but i need to send "check-sync;reboot=false" - so the device does a resync and don't do a reboot
my message looks like this
sendevent NOTIFY profile: nat event-string: check-sync;reboot=false user: 10 host: vts.vie.xpirio.net content-type: application/simple-message-summary
if i listen on the loopback interface i do see
## T 2010/02/22 18:11:59.083204 127.0.0.1:51840 -> 127.0.0.1:8021 [AP] sendevent NOTIFY profile: nat event-string: check-sync;reboot=false user: 10 host: vts.vie.xpirio.net content-type: application/simple-message-summary
## T 2010/02/22 18:11:59.084032 127.0.0.1:8021 -> 127.0.0.1:51840 [AP] Content-Type: command/reply Reply-Text: -ERR invalid
-------- i don't get what it is wrong. i also rechecked the registered user in the sqlite database and this looks good to me.
no message is send to the user.
we do use multiple domains, so user could also be 10@somedomain.com - or am i wrong on this? could somebody please bring some light in this.
we do use trunk rev. 16631
br
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
_______________________________________________ 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
compare that sql stmt to your db manually with the sqlite3 app sqlite3 /usr/local/freeswitch/db/sofia_reg_internal.db 2010/2/22 Christian Löschenkohl <christian.loeschenkohl@xpirio.com>
thank you for this advise
i read the section "case SWITCH_EVENT_NOTIFY" carefully, debugged my script (i messed something up, with telnet the command works - returns Reply-Text: +OK)
sql is executed and returns 1 row select sip_user,sip_host,contact,profile_name,'application/simple-message-summary','check-sync;reboot=true','' from sip_registrations where sip_user='10' and sip_host=' vts.vie.xpirio.net'
however no notify message is send to the device
i can't use call-id because i simply don't know it
br
Diego Toro wrote:
Read "case SWITCH_EVENT_NOTIFY:" in mod_sofia.c. I suggest you assign call-id in the header of the event.
Diego Toro http://lacarretade.blogspot.com/
--- On Mon, 2/22/10, Christian Löschenkohl < christian.loeschenkohl@xpirio.com> wrote:
From: Christian Löschenkohl <christian.loeschenkohl@xpirio.com> Subject: [Freeswitch-users] sending a sip notify with sendevent To: freeswitch-users@lists.freeswitch.org Date: Monday, February 22, 2010, 12:16 PM hi
i try to send a sip notify message to a registered sip device "sofia profile nat flush_inbound_reg 10@vts.vie.xpirio.net reboot" works, but i need to send "check-sync;reboot=false" - so the device does a resync and don't do a reboot
my message looks like this
sendevent NOTIFY profile: nat event-string: check-sync;reboot=false user: 10 host: vts.vie.xpirio.net content-type: application/simple-message-summary
if i listen on the loopback interface i do see
## T 2010/02/22 18:11:59.083204 127.0.0.1:51840 -> 127.0.0.1:8021 [AP] sendevent NOTIFY profile: nat event-string: check-sync;reboot=false user: 10 host: vts.vie.xpirio.net content-type: application/simple-message-summary
## T 2010/02/22 18:11:59.084032 127.0.0.1:8021 -> 127.0.0.1:51840 [AP] Content-Type: command/reply Reply-Text: -ERR invalid
-------- i don't get what it is wrong. i also rechecked the registered user in the sqlite database and this looks good to me.
no message is send to the user.
we do use multiple domains, so user could also be 10@somedomain.com - or am i wrong on this? could somebody please bring some light in this.
we do use trunk rev. 16631
br
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
_______________________________________________ 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
_______________________________________________ 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/ Twitter: http://twitter.com/FreeSWITCH_wire 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:+19193869900
hi anthony i did it my profile is actually named nat, "sofia status profile nat" shows me presence_nat as the db name so i had a look in the file presence_nat.db i execute select sip_user,sip_host,contact,profile_name,'application/simple-message-summary','check-sync;reboot=false','' from sip_registrations where sip_user='10' and sip_host='vts.vie.xpirio.net'; and it returns 10|vts.vie.xpirio.net|"10" <sip:10@81.94.53.5:1032>|nat|application/simple-message-summary|check-sync;reboot=false| looks good to me so far, but as i said no sip notify message is send to the client br Anthony Minessale wrote:
compare that sql stmt to your db manually with the sqlite3 app
sqlite3 /usr/local/freeswitch/db/sofia_reg_internal.db
2010/2/22 Christian Löschenkohl <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>>
thank you for this advise
i read the section "case SWITCH_EVENT_NOTIFY" carefully, debugged my script (i messed something up, with telnet the command works - returns Reply-Text: +OK)
sql is executed and returns 1 row select sip_user,sip_host,contact,profile_name,'application/simple-message-summary','check-sync;reboot=true','' from sip_registrations where sip_user='10' and sip_host='vts.vie.xpirio.net <http://vts.vie.xpirio.net>'
however no notify message is send to the device
i can't use call-id because i simply don't know it
br
Diego Toro wrote:
> Read "case SWITCH_EVENT_NOTIFY:" in mod_sofia.c. I suggest you assign call-id in the header of the event. > > > Diego Toro > http://lacarretade.blogspot.com/ > > > --- On Mon, 2/22/10, Christian Löschenkohl <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>> wrote: > >> From: Christian Löschenkohl <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>> >> Subject: [Freeswitch-users] sending a sip notify with sendevent >> To: freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> >> Date: Monday, February 22, 2010, 12:16 PM >> hi >> >> i try to send a sip notify message to a registered sip >> device >> "sofia profile nat flush_inbound_reg 10@vts.vie.xpirio.net <mailto:10@vts.vie.xpirio.net> >> reboot" works, but i need >> to send "check-sync;reboot=false" - so the device does a >> resync and don't do a reboot >> >> my message looks like this >> >> sendevent NOTIFY >> profile: nat >> event-string: check-sync;reboot=false >> user: 10 >> host: vts.vie.xpirio.net <http://vts.vie.xpirio.net> >> content-type: application/simple-message-summary >> >> if i listen on the loopback interface i do see >> >> ## >> T 2010/02/22 18:11:59.083204 127.0.0.1:51840 <http://127.0.0.1:51840> -> >> 127.0.0.1:8021 <http://127.0.0.1:8021> [AP] >> sendevent NOTIFY >> profile: nat >> event-string: check-sync;reboot=false >> user: 10 >> host: vts.vie.xpirio.net <http://vts.vie.xpirio.net> >> content-type: application/simple-message-summary >> >> ## >> T 2010/02/22 18:11:59.084032 127.0.0.1:8021 <http://127.0.0.1:8021> -> >> 127.0.0.1:51840 <http://127.0.0.1:51840> [AP] >> Content-Type: command/reply >> Reply-Text: -ERR invalid >> >> -------- >> i don't get what it is wrong. i also rechecked the >> registered user in the sqlite database and this >> looks good to me. >> >> no message is send to the user. >> >> we do use multiple domains, so user could also be 10@somedomain.com <mailto:10@somedomain.com> >> - or am i wrong on this? >> could somebody please bring some light in this. >> >> we do use trunk rev. 16631 >> >> br >> >> >> >> -- >> Ing. Christian Löschenkohl >> Technische Leitung, Forschung & Entwicklung VoIP >> >> xpirio >> Telekommunikation & Service GmbH >> Lakeside B04 >> 9020 Klagenfurt >> Austria >> >> T +43 (0) 5 77 11 - 1000 >> F +43 (0) 5 77 11 - 1002 >> E christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com> >> >> _______________________________________________ >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto: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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 <http://iax:guest@conference.freeswitch.org/888> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
------------------------------------------------------------------------
_______________________________________________ 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
Hi, Read "case SWITCH_EVENT_NOTIFY:" in mod_sofia.c. I suggest you assign call-id in the header of the event. Diego Toro http://lacarretade.blogspot.com/ --- On Mon, 2/22/10, Christian Löschenkohl <christian.loeschenkohl@xpirio.com> wrote:
From: Christian Löschenkohl <christian.loeschenkohl@xpirio.com> Subject: Re: [Freeswitch-users] sending a sip notify with sendevent To: freeswitch-users@lists.freeswitch.org Date: Monday, February 22, 2010, 5:28 PM hi anthony
i did it
my profile is actually named nat, "sofia status profile nat" shows me presence_nat as the db name so i had a look in the file presence_nat.db
i execute select sip_user,sip_host,contact,profile_name,'application/simple-message-summary','check-sync;reboot=false','' from sip_registrations where sip_user='10' and sip_host='vts.vie.xpirio.net';
and it returns 10|vts.vie.xpirio.net|"10" <sip:10@81.94.53.5:1032>|nat|application/simple-message-summary|check-sync;reboot=false|
looks good to me so far, but as i said no sip notify message is send to the client
br
Anthony Minessale wrote:
compare that sql stmt to your db manually with the sqlite3 app
sqlite3 /usr/local/freeswitch/db/sofia_reg_internal.db
2010/2/22 Christian Löschenkohl <christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>>
thank you for this advise
i read the section "case SWITCH_EVENT_NOTIFY" carefully, debugged my script (i messed something up, with telnet the command works - returns Reply-Text: +OK)
sql is executed and returns 1 row select sip_user,sip_host,contact,profile_name,'application/simple-message-summary','check-sync;reboot=true','' from sip_registrations where sip_user='10' and sip_host='vts.vie.xpirio.net <http://vts.vie.xpirio.net>'
however no notify message is send to the device
i can't use call-id because i simply don't know it
br
Diego Toro wrote:
> Read "case SWITCH_EVENT_NOTIFY:" in mod_sofia.c. I suggest you assign call-id in the header of the event. > > > Diego Toro > http://lacarretade.blogspot.com/ > > > --- On Mon, 2/22/10, Christian Löschenkohl <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>> wrote: > >> From: Christian Löschenkohl <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>> >> Subject: [Freeswitch-users] sending a sip notify with sendevent >> To: freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> >> Date: Monday, February 22, 2010, 12:16 PM >> hi >> >> i try to send a sip notify message to a registered sip >> device >> "sofia profile nat flush_inbound_reg 10@vts.vie.xpirio.net <mailto:10@vts.vie.xpirio.net> >> reboot" works, but i need >> to send "check-sync;reboot=false" - so the device does a >> resync and don't do a reboot >> >> my message looks like this >> >> sendevent NOTIFY >> profile: nat >> event-string: check-sync;reboot=false >> user: 10 >> host: vts.vie.xpirio.net <http://vts.vie.xpirio.net> >> content-type: application/simple-message-summary >> >> if i listen on the loopback interface i do see >> >> ## >> T 2010/02/22 18:11:59.083204 127.0.0.1:51840 <http://127.0.0.1:51840> -> >> 127.0.0.1:8021 <http://127.0.0.1:8021> [AP] >> sendevent NOTIFY >> profile: nat >> event-string: check-sync;reboot=false >> user: 10 >> host: vts.vie.xpirio.net <http://vts.vie.xpirio.net> >> content-type: application/simple-message-summary >> >> ## >> T 2010/02/22 18:11:59.084032 127.0.0.1:8021 <http://127.0.0.1:8021> -> >> 127.0.0.1:51840 <http://127.0.0.1:51840> [AP] >> Content-Type: command/reply >> Reply-Text: -ERR invalid >> >> -------- >> i don't get what it is wrong. i also rechecked the >> registered user in the sqlite database and this >> looks good to me. >> >> no message is send to the user. >> >> we do use multiple domains, so user could also be 10@somedomain.com <mailto:10@somedomain.com> >> - or am i wrong on this? >> could somebody please bring some light in this. >> >> we do use trunk rev. 16631 >> >> br >> >> >> >> -- >> Ing. Christian Löschenkohl >> Technische Leitung, Forschung & Entwicklung VoIP >> >> xpirio >> Telekommunikation & Service GmbH >> Lakeside B04 >> 9020 Klagenfurt >> Austria >> >> T +43 (0) 5 77 11 - 1000 >> F +43 (0) 5 77 11 - 1002 >> E christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com> >> >>
>> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto: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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com
<mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
<mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org
<mailto:sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888
<http://iax:guest@conference.freeswitch.org/888> googletalk:conf+888@conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
------------------------------------------------------------------------
_______________________________________________ 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
_______________________________________________ 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
hi, I'm using sendevent NOTIFY profile: internal event-string: check-sync;reboot=false user: 1001 content-type: application/simple-message-sumary profile: internal event-string: check-sync;reboot=false host: 192.168.7.3 where: user 1001 is a registered user host: IP of FreeSwitch I see a sip notify message sent to the client. Diego Toro http://lacarretade.blogspot.com/ --- On Mon, 2/22/10, Christian Löschenkohl <christian.loeschenkohl@xpirio.com> wrote:
From: Christian Löschenkohl <christian.loeschenkohl@xpirio.com> Subject: Re: [Freeswitch-users] sending a sip notify with sendevent To: freeswitch-users@lists.freeswitch.org Date: Monday, February 22, 2010, 5:28 PM hi anthony
i did it
my profile is actually named nat, "sofia status profile nat" shows me presence_nat as the db name so i had a look in the file presence_nat.db
i execute select sip_user,sip_host,contact,profile_name,'application/simple-message-summary','check-sync;reboot=false','' from sip_registrations where sip_user='10' and sip_host='vts.vie.xpirio.net';
and it returns 10|vts.vie.xpirio.net|"10" <sip:10@81.94.53.5:1032>|nat|application/simple-message-summary|check-sync;reboot=false|
looks good to me so far, but as i said no sip notify message is send to the client
br
Anthony Minessale wrote:
compare that sql stmt to your db manually with the sqlite3 app
sqlite3 /usr/local/freeswitch/db/sofia_reg_internal.db
2010/2/22 Christian Löschenkohl <christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>>
thank you for this advise
i read the section "case SWITCH_EVENT_NOTIFY" carefully, debugged my script (i messed something up, with telnet the command works - returns Reply-Text: +OK)
sql is executed and returns 1 row select sip_user,sip_host,contact,profile_name,'application/simple-message-summary','check-sync;reboot=true','' from sip_registrations where sip_user='10' and sip_host='vts.vie.xpirio.net <http://vts.vie.xpirio.net>'
however no notify message is send to the device
i can't use call-id because i simply don't know it
br
Diego Toro wrote:
> Read "case SWITCH_EVENT_NOTIFY:" in mod_sofia.c. I suggest you assign call-id in the header of the event. > > > Diego Toro > http://lacarretade.blogspot.com/ > > > --- On Mon, 2/22/10, Christian Löschenkohl <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>> wrote: > >> From: Christian Löschenkohl <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>> >> Subject: [Freeswitch-users] sending a sip notify with sendevent >> To: freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> >> Date: Monday, February 22, 2010, 12:16 PM >> hi >> >> i try to send a sip notify message to a registered sip >> device >> "sofia profile nat flush_inbound_reg 10@vts.vie.xpirio.net <mailto:10@vts.vie.xpirio.net> >> reboot" works, but i need >> to send "check-sync;reboot=false" - so the device does a >> resync and don't do a reboot >> >> my message looks like this >> >> sendevent NOTIFY >> profile: nat >> event-string: check-sync;reboot=false >> user: 10 >> host: vts.vie.xpirio.net <http://vts.vie.xpirio.net> >> content-type: application/simple-message-summary >> >> if i listen on the loopback interface i do see >> >> ## >> T 2010/02/22 18:11:59.083204 127.0.0.1:51840 <http://127.0.0.1:51840> -> >> 127.0.0.1:8021 <http://127.0.0.1:8021> [AP] >> sendevent NOTIFY >> profile: nat >> event-string: check-sync;reboot=false >> user: 10 >> host: vts.vie.xpirio.net <http://vts.vie.xpirio.net> >> content-type: application/simple-message-summary >> >> ## >> T 2010/02/22 18:11:59.084032 127.0.0.1:8021 <http://127.0.0.1:8021> -> >> 127.0.0.1:51840 <http://127.0.0.1:51840> [AP] >> Content-Type: command/reply >> Reply-Text: -ERR invalid >> >> -------- >> i don't get what it is wrong. i also rechecked the >> registered user in the sqlite database and this >> looks good to me. >> >> no message is send to the user. >> >> we do use multiple domains, so user could also be 10@somedomain.com <mailto:10@somedomain.com> >> - or am i wrong on this? >> could somebody please bring some light in this. >> >> we do use trunk rev. 16631 >> >> br >> >> >> >> -- >> Ing. Christian Löschenkohl >> Technische Leitung, Forschung & Entwicklung VoIP >> >> xpirio >> Telekommunikation & Service GmbH >> Lakeside B04 >> 9020 Klagenfurt >> Austria >> >> T +43 (0) 5 77 11 - 1000 >> F +43 (0) 5 77 11 - 1002 >> E christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com> >> >>
>> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto: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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com
<mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
<mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org
<mailto:sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888
<http://iax:guest@conference.freeswitch.org/888> googletalk:conf+888@conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
------------------------------------------------------------------------
_______________________________________________ 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
_______________________________________________ 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
i think it was my fault i'm not 100% sure why - but i works now as expected thank you very much for your suggestions br On 2010-02-23 04:18, Diego Toro wrote:
hi, I'm using
sendevent NOTIFY profile: internal event-string: check-sync;reboot=false user: 1001 content-type: application/simple-message-sumary profile: internal event-string: check-sync;reboot=false host: 192.168.7.3
where: user 1001 is a registered user host: IP of FreeSwitch
I see a sip notify message sent to the client.
Diego Toro http://lacarretade.blogspot.com/
--- On Mon, 2/22/10, Christian Löschenkohl<christian.loeschenkohl@xpirio.com> wrote:
From: Christian Löschenkohl<christian.loeschenkohl@xpirio.com> Subject: Re: [Freeswitch-users] sending a sip notify with sendevent To: freeswitch-users@lists.freeswitch.org Date: Monday, February 22, 2010, 5:28 PM hi anthony
i did it
my profile is actually named nat, "sofia status profile nat" shows me presence_nat as the db name so i had a look in the file presence_nat.db
i execute select sip_user,sip_host,contact,profile_name,'application/simple-message-summary','check-sync;reboot=false','' from sip_registrations where sip_user='10' and sip_host='vts.vie.xpirio.net';
and it returns 10|vts.vie.xpirio.net|"10" <sip:10@81.94.53.5:1032>|nat|application/simple-message-summary|check-sync;reboot=false|
looks good to me so far, but as i said no sip notify message is send to the client
br
Anthony Minessale wrote:
compare that sql stmt to your db manually with the sqlite3 app
sqlite3 /usr/local/freeswitch/db/sofia_reg_internal.db
2010/2/22 Christian Löschenkohl<christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>>
thank you for this advise
i read the section "case SWITCH_EVENT_NOTIFY" carefully, debugged my script (i messed something up, with telnet the command works - returns Reply-Text: +OK)
sql is executed and returns 1 row select
sip_user,sip_host,contact,profile_name,'application/simple-message-summary','check-sync;reboot=true',''
from sip_registrations where
sip_user='10' and
sip_host='vts.vie.xpirio.net
however no notify message is
send to the device
i can't use call-id because i
simply don't know it
br
Diego Toro wrote:
> Read "case
SWITCH_EVENT_NOTIFY:" in mod_sofia.c. I suggest you
assign call-id in the header
of the event.
> > > Diego Toro > http://lacarretade.blogspot.com/ > > > --- On Mon, 2/22/10,
Christian Löschenkohl
<christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>>
wrote:
> >> From: Christian
Löschenkohl<christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>> >> Subject:
[Freeswitch-users] sending a sip notify with sendevent
>> To: freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> >> Date: Monday, February
22, 2010, 12:16 PM
>> hi >> >> i try to send a sip
notify message to a registered sip
>> device >> "sofia profile nat
flush_inbound_reg 10@vts.vie.xpirio.net
<mailto:10@vts.vie.xpirio.net> >> reboot" works, but i
need
>> to send
"check-sync;reboot=false" - so the device does a
>> resync and don't do a
reboot
>> >> my message looks like
this
>> >> sendevent NOTIFY >> profile: nat >> event-string:
check-sync;reboot=false
>> user: 10 >> host: vts.vie.xpirio.net
>> content-type:
application/simple-message-summary
>> >> if i listen on the
loopback interface i do see
>> >> ## >> T 2010/02/22
18:11:59.083204 127.0.0.1:51840
<http://127.0.0.1:51840> -> >> 127.0.0.1:8021<http://127.0.0.1:8021> [AP] >> sendevent NOTIFY >> profile: nat >> event-string:
check-sync;reboot=false
>> user: 10 >> host: vts.vie.xpirio.net
>> content-type:
application/simple-message-summary
>> >> ## >> T 2010/02/22
18:11:59.084032 127.0.0.1:8021
<http://127.0.0.1:8021> -> >> 127.0.0.1:51840<http://127.0.0.1:51840> [AP] >> Content-Type:
command/reply
>> Reply-Text: -ERR invalid >> >> -------- >> i don't get what it is
wrong. i also rechecked the
>> registered user in the
sqlite database and this
>> looks good to me. >> >> no message is send to the
user.
>> >> we do use multiple
domains, so user could also be
10@somedomain.com
<mailto:10@somedomain.com>
>> - or am i wrong on this? >> could somebody please
bring some light in this.
>> >> we do use trunk rev.
16631
>> >> br >> >> >> >> -- >> Ing. Christian
Löschenkohl
>> Technische Leitung,
Forschung& Entwicklung VoIP
>> >> xpirio >> Telekommunikation&
Service GmbH
>> Lakeside B04 >> 9020 Klagenfurt >> Austria >> >> T +43 (0) 5 77 11 -
1000
>> F +43 (0) 5 77 11 -
1002
>> E christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com> >> >>
_______________________________________________
>> FreeSWITCH-users mailing
list
>> FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto: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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung
& Entwicklung VoIP
xpirio Telekommunikation&
Service GmbH
Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 -
1000
F +43 (0) 5 77 11 -
1002
E christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>
_______________________________________________
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com
<mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
<mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net<http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org
<mailto:sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888
<http://iax:guest@conference.freeswitch.org/888> googletalk:conf+888@conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
------------------------------------------------------------------------
_______________________________________________ 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung& Entwicklung VoIP
xpirio Telekommunikation& Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
_______________________________________________ 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
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
participants (4)
-
Anthony Minessale
-
Brian West
-
Christian Löschenkohl
-
Diego Toro