Sip register with contact reg-id and +sip.instance
Hi all, I have the need that the "Contact" in SIP register is formatted as follows including reg-id and +sip.instance. How do I configure freeswitch to send the "Contact" so ? REGISTER sips:10.10.2.110 SIP/2.0 From: sips:1000@10.10.2.110;tag=-5159386d4396-8_F192.168.178.29 To: sips:1000@10.10.2.110 Call-ID: 1_909-5f0974b1386d4ca0_R@192.168.178.29 CSeq: 1 REGISTER Via: SIP/2.0/TLS 192.168.178.29:5061;branch=z9hG4bK1_90a4615b657386d4ca8_R Content-Length: 0 Max-Forwards: 70 Contact: <sips:1000@192.168.178.29:5061;avaya-sc-enabled;transport=tls>;q=1;expir es=900;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-1000-8000-00040de c6f47>" Allow: INVITE,CANCEL,BYE,ACK,SUBSCRIBE,NOTIFY,INFO,REFER,UPDATE User-Agent: Avaya one-X Deskphone Supported: replaces Thanks for your help! Kind regards Giuseppe 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. -----------------------------------------------------------------------------------------------------
Someone can help me ? Kind regards Giuseppe Da: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Per conto di Grillo Giuseppe Inviato: 18 October, 2011 1:58 PM A: freeswitch-users@lists.freeswitch.org Oggetto: [Freeswitch-users] Sip register with contact reg-id and+sip.instance Hi all, I have the need that the "Contact" in SIP register is formatted as follows including reg-id and +sip.instance. How do I configure freeswitch to send the "Contact" so ? REGISTER sips:10.10.2.110 SIP/2.0 From: sips:1000@10.10.2.110;tag=-5159386d4396-8_F192.168.178.29 To: sips:1000@10.10.2.110 Call-ID: 1_909-5f0974b1386d4ca0_R@192.168.178.29 CSeq: 1 REGISTER Via: SIP/2.0/TLS 192.168.178.29:5061;branch=z9hG4bK1_90a4615b657386d4ca8_R Content-Length: 0 Max-Forwards: 70 Contact: <sips:1000@192.168.178.29:5061;avaya-sc-enabled;transport=tls>;q=1;expir es=900;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-1000-8000-00040de c6f47>" Allow: INVITE,CANCEL,BYE,ACK,SUBSCRIBE,NOTIFY,INFO,REFER,UPDATE User-Agent: Avaya one-X Deskphone Supported: replaces Thanks for your help! Kind regards Giuseppe 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. ************************************************************************ ********************************************************************
On 10/21/2011 03:27 PM, Grillo Giuseppe wrote:
Someonecanhelp me ?
I am not sure if that is possible unless you code it in the sofia-sip stack. Maybe someone more knowledgeable will reply. Can't you just add some headers with that information? See: http://wiki.freeswitch.org/wiki/Sofia#Channel_Variables Regards, Patrick
I saw this in many trace, and I found this comment in nua_register.c line 326 * * Likewise, nua may add transport parameters (such as "transport=tcp" or * "maddr") to the @Contact URI. It can add addtional header parameters, like * "+sip.instance" or "reg-id", too. * Thanks, Giuseppe Giuseppe Grillo MPS-RTA-PA-AP Phone: +39-0918615523 Collaboration : MPS-RTA Please do not print this email unless it is absolutely necessary. Spread environmental awareness. -----Messaggio originale----- Da: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Per conto di Patrick Lists Inviato: 21 October, 2011 3:49 PM A: FreeSWITCH Users Help Oggetto: Re: [Freeswitch-users] R: Sip register with contactreg-id and+sip.instance On 10/21/2011 03:27 PM, Grillo Giuseppe wrote:
Someonecanhelp me ?
I am not sure if that is possible unless you code it in the sofia-sip stack. Maybe someone more knowledgeable will reply. Can't you just add some headers with that information? See: http://wiki.freeswitch.org/wiki/Sofia#Channel_Variables Regards, Patrick 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 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. -----------------------------------------------------------------------------------------------------
participants (2)
-
Grillo Giuseppe
-
Patrick Lists