compare that sql stmt to your db manually with the sqlite3 app<br><br>sqlite3 /usr/local/freeswitch/db/sofia_reg_internal.db<br><br><br><div class="gmail_quote">2010/2/22 Christian Löschenkohl <span dir="ltr"><<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">thank you for this advise<br>
<br>
i read the section "case SWITCH_EVENT_NOTIFY" carefully, debugged my script (i messed something<br>
up, with telnet the command works - returns Reply-Text: +OK)<br>
<br>
sql is executed and returns 1 row<br>
select sip_user,sip_host,contact,profile_name,'application/simple-message-summary','check-sync;reboot=true',''<br>
from sip_registrations where sip_user='10' and sip_host='<a href="http://vts.vie.xpirio.net" target="_blank">vts.vie.xpirio.net</a>'<br>
<br>
however no notify message is send to the device<br>
<br>
i can't use call-id because i simply don't know it<br>
<br>
br<br>
<div><div></div><div class="h5"><br>
<br>
Diego Toro wrote:<br>
<br>
> Read "case SWITCH_EVENT_NOTIFY:" in mod_sofia.c. I suggest you assign call-id in the header of the event.<br>
><br>
><br>
> Diego Toro<br>
> <a href="http://lacarretade.blogspot.com/" target="_blank">http://lacarretade.blogspot.com/</a><br>
><br>
><br>
> --- On Mon, 2/22/10, Christian Löschenkohl <<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a>> wrote:<br>
><br>
>> From: Christian Löschenkohl <<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a>><br>
>> Subject: [Freeswitch-users] sending a sip notify with sendevent<br>
>> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
>> Date: Monday, February 22, 2010, 12:16 PM<br>
>> hi<br>
>><br>
>> i try to send a sip notify message to a registered sip<br>
>> device<br>
>> "sofia profile nat flush_inbound_reg <a href="mailto:10@vts.vie.xpirio.net">10@vts.vie.xpirio.net</a><br>
>> reboot" works, but i need<br>
>> to send "check-sync;reboot=false" - so the device does a<br>
>> resync and don't do a reboot<br>
>><br>
>> my message looks like this<br>
>><br>
>> sendevent NOTIFY<br>
>> profile: nat<br>
>> event-string: check-sync;reboot=false<br>
>> user: 10<br>
>> host: <a href="http://vts.vie.xpirio.net" target="_blank">vts.vie.xpirio.net</a><br>
>> content-type: application/simple-message-summary<br>
>><br>
>> if i listen on the loopback interface i do see<br>
>><br>
>> ##<br>
>> T 2010/02/22 18:11:59.083204 <a href="http://127.0.0.1:51840" target="_blank">127.0.0.1:51840</a> -><br>
>> <a href="http://127.0.0.1:8021" target="_blank">127.0.0.1:8021</a> [AP]<br>
>> sendevent NOTIFY<br>
>> profile: nat<br>
>> event-string: check-sync;reboot=false<br>
>> user: 10<br>
>> host: <a href="http://vts.vie.xpirio.net" target="_blank">vts.vie.xpirio.net</a><br>
>> content-type: application/simple-message-summary<br>
>><br>
>> ##<br>
>> T 2010/02/22 18:11:59.084032 <a href="http://127.0.0.1:8021" target="_blank">127.0.0.1:8021</a> -><br>
>> <a href="http://127.0.0.1:51840" target="_blank">127.0.0.1:51840</a> [AP]<br>
>> Content-Type: command/reply<br>
>> Reply-Text: -ERR invalid<br>
>><br>
>> --------<br>
>> i don't get what it is wrong. i also rechecked the<br>
>> registered user in the sqlite database and this<br>
>> looks good to me.<br>
>><br>
>> no message is send to the user.<br>
>><br>
>> we do use multiple domains, so user could also be <a href="mailto:10@somedomain.com">10@somedomain.com</a><br>
>> - or am i wrong on this?<br>
>> could somebody please bring some light in this.<br>
>><br>
>> we do use trunk rev. 16631<br>
>><br>
>> br<br>
>><br>
>><br>
>><br>
>> --<br>
>> Ing. Christian Löschenkohl<br>
>> Technische Leitung, Forschung & Entwicklung VoIP<br>
>><br>
>> xpirio<br>
>> Telekommunikation & Service GmbH<br>
>> Lakeside B04<br>
>> 9020 Klagenfurt<br>
>> Austria<br>
>><br>
>> T +43 (0) 5 77 11 - 1000<br>
>> F +43 (0) 5 77 11 - 1002<br>
>> E <a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a><br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
--<br>
Ing. Christian Löschenkohl<br>
Technische Leitung, Forschung & Entwicklung VoIP<br>
<br>
xpirio<br>
Telekommunikation & Service GmbH<br>
Lakeside B04<br>
9020 Klagenfurt<br>
Austria<br>
<br>
T +43 (0) 5 77 11 - 1000<br>
F +43 (0) 5 77 11 - 1002<br>
E <a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:+19193869900<br>