[Freeswitch-users] sending a sip notify with sendevent

Anthony Minessale anthony.minessale at gmail.com
Mon Feb 22 13:48:45 PST 2010


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 at 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 at xpirio.com> wrote:
> >
> >> From: Christian Löschenkohl <christian.loeschenkohl at xpirio.com>
> >> Subject: [Freeswitch-users] sending a sip notify with sendevent
> >> To: freeswitch-users at 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 at 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 at 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 at xpirio.com
> >>
> >> _______________________________________________
> >> FreeSWITCH-users mailing list
> >> FreeSWITCH-users at 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 at 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 at xpirio.com
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100222/a4526a0e/attachment-0002.html 


More information about the FreeSWITCH-users mailing list