Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] is there an event for SIP MESSAGE?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
Claudio.Cavalera at it...
Guest





PostPosted: Mon Jan 26, 2009 12:13 pm    Post subject: [Freeswitch-users] is there an event for SIP MESSAGE? Reply with quote

Hello freeswitchers,
I'm experimenting with sip clients registered to fs and Instant
Messaging.
I've seen SIP Messages are properly routed by the sofia sip stack in fs.
However it seems no event is ever generated on the event socket.
Would it be possible to make fs reporting the SIP Messaging? Smile
Best Regards,
Claudio


Internet Email Confidentiality Footer
-----------------------------------------------------------------------------------------------------
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.

This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.
-----------------------------------------------------------------------------------------------------


_______________________________________________
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Tue Jan 27, 2009 8:58 pm    Post subject: [Freeswitch-users] is there an event for SIP MESSAGE? Reply with quote

Out of curiosity which SIP messages have you been watching for on the
event socket? Also, how are you connected to the event socket? Are you
subscribing to all events and sifting through them to confirm that no
events are being fired when SIP messages are being sent?
-MC

Sent from my iPhone

On Jan 26, 2009, at 9:00 AM, "Cavalera Claudio Luigi" <Claudio.Cavalera@italtel.it
Quote:
wrote:

Quote:
Hello freeswitchers,
I'm experimenting with sip clients registered to fs and Instant
Messaging.
I've seen SIP Messages are properly routed by the sofia sip stack in
fs.
However it seems no event is ever generated on the event socket.
Would it be possible to make fs reporting the SIP Messaging? Smile
Best Regards,
Claudio


Internet Email Confidentiality Footer
---
---
---
---
---
---
---
---
---
---
---
--------------------------------------------------------------------
La presente comunicazione, con le informazioni in essa contenute e
ogni documento o file allegato, e' rivolta unicamente alla/e persona/
e cui e' indirizzata ed alle altre da questa autorizzata/e a
riceverla. Se non siete i destinatari/autorizzati siete avvisati che
qualsiasi azione, copia, comunicazione, divulgazione o simili basate
sul contenuto di tali informazioni e' vietata e potrebbe essere
contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia
di protezione dei dati personali). Se avete ricevuto questa
comunicazione per errore, vi preghiamo di darne immediata notizia al
mittente e di distruggere il messaggio originale e ogni file
allegato senza farne copia alcuna o riprodurne in alcun modo il
contenuto.

This e-mail and its attachments are intended for the addressee(s)
only and are confidential and/or may contain legally privileged
information. If you have received this message by mistake or are not
one of the addressees above, you may take no action based on it, and
you may not copy or show it to anyone; please reply to this e-mail
and point out the error which has occurred.
---
---
---
---
---
---
---
---
---
---
---
--------------------------------------------------------------------


_______________________________________________
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
Back to top
Claudio.Cavalera at it...
Guest





PostPosted: Wed Jan 28, 2009 5:28 am    Post subject: [Freeswitch-users] is there an event for SIP MESSAGE? Reply with quote

freeswitch-users-bounces@lists.freeswitch.org wrote:
Quote:
Out of curiosity which SIP messages have you been watching for on the
event socket? Also, how are you connected to the event socket? Are you
subscribing to all events and sifting through them to confirm that no
events are being fired when SIP messages are being sent? -MC


Thanks for your interest Michael,
I'll try to explain better since I think this could become a useful
feature; fs already provides a lot of features for Unified
Communication. Moreover SIP messages are supported almost for free from
the sofia sip stack.

When experimenting I usually connect to the event socket with netcat:
nc localhost 8021
auth ClueCon
event plain all

If i register two clients to the event socket they can SIP message each
other.
I'm meaning SIP MESSAGES like this one sent from user 1000 to 1001:
http://pastebin.freeswitch.org/6940

I really would like an event to be fired by this SIP MESSAGING in fact
I'm almost adding it at mod_sofia.h
as #define MY_EVENT_SIP_MESSAGE "sofia::message"
Smile

Firing an event for every SIP MESSAGE sent through fs would be a great
thing, but sadly not sufficient for building a full IM solution.
In fact we would also need an API to send SIP MESSAGES from within fs
and this is already partially achieved from what I've seen with command
like this one sent to the event socket:

sendevent SEND_MESSAGE
profile: internal
content-length: 2
content-type: application/simple-message-summary
user: 1001
host: 192.168.1.1

Hi
Content-Type: command/reply
Reply-Text: +OK

This command works and fires an event like this:

Command: sendevent%20SEND_MESSAGE
profile: internal
content-length: 2
content-type: application/simple-message-summary
user: 1001
host: 192.168.1.1
Event-Name: SEND_MESSAGE
Core-UUID: a7f40fea-8340-4d77-aded-f322f9bee016
FreeSWITCH-Hostname: lallobox
FreeSWITCH-IPv4: 192.168.1.1
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2009-01-28%2010%3A44%3A07
Event-Date-GMT: Wed,%2028%20Jan%202009%2009%3A44%3A07%20GMT
Event-Date-Timestamp: 1233135847314907
Event-Calling-File: mod_event_socket.c
Event-Calling-Function: parse_command
Event-Calling-Line-Number: 1511
Content-Length: 2

Hi


However it would be wonderful to enhance this API with the possibility
to select the sending user thus being able to forge sip messages from
within fs on behalf of a registered or not user.


Best Regards,
2C

PS: Michael feel free to contact me off list as you see fit.


Internet Email Confidentiality Footer
-----------------------------------------------------------------------------------------------------
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.

This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.
-----------------------------------------------------------------------------------------------------


_______________________________________________
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Wed Jan 28, 2009 12:10 pm    Post subject: [Freeswitch-users] is there an event for SIP MESSAGE? Reply with quote

Cavalera,

I spoke with MikeJ and he said that FS simply does not fire an event
for SIP IM messages. It would probably take a fair amount of hacking
to make this happen. I can see only two choices for you: see if you or
someone you know is willing to modify the source code or ask the
developers for some paid support at consulting@freeswitch.org.

I'm sorry that I didn't have a better answer for you!
-MC

On Wed, Jan 28, 2009 at 2:24 AM, Cavalera Claudio Luigi
<Claudio.Cavalera@italtel.it> wrote:
Quote:
freeswitch-users-bounces@lists.freeswitch.org wrote:
Quote:
Out of curiosity which SIP messages have you been watching for on the
event socket? Also, how are you connected to the event socket? Are you
subscribing to all events and sifting through them to confirm that no
events are being fired when SIP messages are being sent? -MC


Thanks for your interest Michael,
I'll try to explain better since I think this could become a useful
feature; fs already provides a lot of features for Unified
Communication. Moreover SIP messages are supported almost for free from
the sofia sip stack.

When experimenting I usually connect to the event socket with netcat:
nc localhost 8021
auth ClueCon
event plain all

If i register two clients to the event socket they can SIP message each
other.
I'm meaning SIP MESSAGES like this one sent from user 1000 to 1001:
http://pastebin.freeswitch.org/6940

I really would like an event to be fired by this SIP MESSAGING in fact
I'm almost adding it at mod_sofia.h
as #define MY_EVENT_SIP_MESSAGE "sofia::message"
Smile

Firing an event for every SIP MESSAGE sent through fs would be a great
thing, but sadly not sufficient for building a full IM solution.
In fact we would also need an API to send SIP MESSAGES from within fs
and this is already partially achieved from what I've seen with command
like this one sent to the event socket:

sendevent SEND_MESSAGE
profile: internal
content-length: 2
content-type: application/simple-message-summary
user: 1001
host: 192.168.1.1

Hi
Content-Type: command/reply
Reply-Text: +OK

This command works and fires an event like this:

Command: sendevent%20SEND_MESSAGE
profile: internal
content-length: 2
content-type: application/simple-message-summary
user: 1001
host: 192.168.1.1
Event-Name: SEND_MESSAGE
Core-UUID: a7f40fea-8340-4d77-aded-f322f9bee016
FreeSWITCH-Hostname: lallobox
FreeSWITCH-IPv4: 192.168.1.1
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2009-01-28%2010%3A44%3A07
Event-Date-GMT: Wed,%2028%20Jan%202009%2009%3A44%3A07%20GMT
Event-Date-Timestamp: 1233135847314907
Event-Calling-File: mod_event_socket.c
Event-Calling-Function: parse_command
Event-Calling-Line-Number: 1511
Content-Length: 2

Hi


However it would be wonderful to enhance this API with the possibility
to select the sending user thus being able to forge sip messages from
within fs on behalf of a registered or not user.


Best Regards,
2C

PS: Michael feel free to contact me off list as you see fit.


Internet Email Confidentiality Footer
-----------------------------------------------------------------------------------------------------
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.

This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.
-----------------------------------------------------------------------------------------------------


_______________________________________________
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
Back to top
mike at jerris.com
Guest





PostPosted: Wed Jan 28, 2009 2:13 pm    Post subject: [Freeswitch-users] is there an event for SIP MESSAGE? Reply with quote

On Jan 28, 2009, at 5:24 AM, Cavalera Claudio Luigi wrote:

Quote:
freeswitch-users-bounces@lists.freeswitch.org wrote:
Quote:
Out of curiosity which SIP messages have you been watching for on the
event socket? Also, how are you connected to the event socket? Are
you
subscribing to all events and sifting through them to confirm that no
events are being fired when SIP messages are being sent? -MC


Thanks for your interest Michael,
I'll try to explain better since I think this could become a useful
feature; fs already provides a lot of features for Unified
Communication. Moreover SIP messages are supported almost for free
from
the sofia sip stack.

When experimenting I usually connect to the event socket with netcat:
nc localhost 8021
auth ClueCon
event plain all

If i register two clients to the event socket they can SIP message
each
other.
I'm meaning SIP MESSAGES like this one sent from user 1000 to 1001:
http://pastebin.freeswitch.org/6940

I really would like an event to be fired by this SIP MESSAGING in fact
I'm almost adding it at mod_sofia.h
as #define MY_EVENT_SIP_MESSAGE "sofia::message"
Smile

Firing an event for every SIP MESSAGE sent through fs would be a great
thing, but sadly not sufficient for building a full IM solution.
In fact we would also need an API to send SIP MESSAGES from within fs
and this is already partially achieved from what I've seen with
command
like this one sent to the event socket:

sendevent SEND_MESSAGE
profile: internal
content-length: 2
content-type: application/simple-message-summary
user: 1001
host: 192.168.1.1

Hi
Content-Type: command/reply
Reply-Text: +OK

This command works and fires an event like this:

Command: sendevent%20SEND_MESSAGE
profile: internal
content-length: 2
content-type: application/simple-message-summary
user: 1001
host: 192.168.1.1
Event-Name: SEND_MESSAGE
Core-UUID: a7f40fea-8340-4d77-aded-f322f9bee016
FreeSWITCH-Hostname: lallobox
FreeSWITCH-IPv4: 192.168.1.1
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2009-01-28%2010%3A44%3A07
Event-Date-GMT: Wed,%2028%20Jan%202009%2009%3A44%3A07%20GMT
Event-Date-Timestamp: 1233135847314907
Event-Calling-File: mod_event_socket.c
Event-Calling-Function: parse_command
Event-Calling-Line-Number: 1511
Content-Length: 2

Hi


However it would be wonderful to enhance this API with the possibility
to select the sending user thus being able to forge sip messages from
within fs on behalf of a registered or not user.


Best Regards,
2C

PS: Michael feel free to contact me off list as you see fit.


Internet Email Confidentiality Footer
-----------------------------------------------------------------------------------------------------
La presente comunicazione, con le informazioni in essa contenute e
ogni documento o file allegato, e' rivolta unicamente alla/e persona/
e cui e' indirizzata ed alle altre da questa autorizzata/e a
riceverla. Se non siete i destinatari/autorizzati siete avvisati che
qualsiasi azione, copia, comunicazione, divulgazione o simili basate
sul contenuto di tali informazioni e' vietata e potrebbe essere
contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia
di protezione dei dati personali). Se avete ricevuto questa
comunicazione per errore, vi preghiamo di darne immediata notizia al
mittente e di distruggere il messaggio originale e ogni file
allegato senza farne copia alcuna o riprodurne in alcun modo il
contenuto.

This e-mail and its attachments are intended for the addressee(s)
only and are confidential and/or may contain legally privileged
information. If you have received this message by mistake or are not
one of the addressees above, you may take no action based on it, and
you may not copy or show it to anyone; please reply to this e-mail
and point out the error which has occurred.
-----------------------------------------------------------------------------------------------------

I am sorry to see that your e-mail is confidential. If it were not, I
would have responded to tell you that there is already an api command
to send chat messages in a protocol agnostic way (see http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_chat)
. In the future if you can send non-confidential emails to the list
it will greatly assist us in being able to respond to your questions.

Mike


_______________________________________________
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
Back to top
Claudio.Cavalera at it...
Guest





PostPosted: Thu Jan 29, 2009 5:50 am    Post subject: [Freeswitch-users] is there an event for SIP MESSAGE? Reply with quote

freeswitch-users-bounces@lists.freeswitch.org wrote:
Quote:
Cavalera,

You can call me Claudio,
I'm embarassed by not having full control over my email client. :-\

Quote:
I spoke with MikeJ and he said that FS simply does not fire an event
for SIP IM messages. It would probably take a fair amount of hacking
to make this happen. I can see only two choices for you: see if you or
someone you know is willing to modify the source code or ask the
developers for some paid support at consulting@freeswitch.org.

I'm sorry that I didn't have a better answer for you! -MC

No problem,
I will try to add it by myself for now, maybe looking at another event
as example.
For now I've found the relevant code in sofia.c
void sofia_handle_sip_r_message(...)
and the case nua_i_message

Ciao,
Claudio
Internet E. Mail Confidentiality Footer
-----------------------------------------------------------------------------------------------------
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.

This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.

_______________________________________________
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
Back to top
Claudio.Cavalera at it...
Guest





PostPosted: Thu Jan 29, 2009 6:43 am    Post subject: [Freeswitch-users] is there an event for SIP MESSAGE? Reply with quote

freeswitch-users-bounces@lists.freeswitch.org wrote:

Quote:
I am sorry to see that your e-mail is confidential. If it
were not, I would have responded to tell you that there is already an
api command
to send chat messages in a protocol agnostic way (see
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_chat)
. In the future if you can send non-confidential emails to the list
it will greatly assist us in being able to respond to your questions.

Mike


Mike thanks for the hint,
I've tested this api and works well for sip messages!
It's an effective alternative to the sendevent SEND_MESSAGE api.
As I sad before I can't do much to control my mail client because
confidentially footer are put in my exchange server.
If this is a problem I can subscribe to the list with an unofficial mail
account.
Ciao,
Claudio


Internet Email Confidentiality Footer
-----------------------------------------------------------------------------------------------------
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.

This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.
-----------------------------------------------------------------------------------------------------


_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services