Hi, I use Freeswitch to handle SIP message between SIP extentions, how can server know does the message be received by client or not? I noticed even if a SIP extention is offline/unregister, SIP message will still be sent by server but just the receiver will never get it (even if later the receiver online/registered again). What I want to achieve is: send SIP message to an extention, if received OK, nothing happen; if not, forward the message to user's email address. brgds, Alex
Alex, You need to set blocking=true in the chatplan. This will include a Delivery-Failure=true/false header in the event that is generated when you send the message. You will need to have an ESL client parse that field to determine next steps. If you don't explicitly set blocking to true, then FS doesn't wait for a response and so it has no way of knowing if the message was delivered or not. For that reason, the Delivery-Failure header is not present in the event when in non-blocking mode. On Mon, Jan 14, 2013 at 6:53 AM, Pip Live <itispip-qq@hotmail.com> wrote:
Hi, I use Freeswitch to handle SIP message between SIP extentions, how can server know does the message be received by client or not? I noticed even if a SIP extention is offline/unregister, SIP message will still be sent by server but just the receiver will never get it (even if later the receiver online/registered again).
What I want to achieve is: send SIP message to an extention, if received OK, nothing happen; if not, forward the message to user's email address.
brgds, Alex
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
Thanks for that tip, alex. Where is the full doc for mod_chat anyway? On Jan 14, 2013 5:19 PM, "Carlos Flor" <jackal@cybershroud.net> wrote:
Alex,
You need to set blocking=true in the chatplan. This will include a Delivery-Failure=true/false header in the event that is generated when you send the message. You will need to have an ESL client parse that field to determine next steps.
If you don't explicitly set blocking to true, then FS doesn't wait for a response and so it has no way of knowing if the message was delivered or not. For that reason, the Delivery-Failure header is not present in the event when in non-blocking mode.
On Mon, Jan 14, 2013 at 6:53 AM, Pip Live <itispip-qq@hotmail.com> wrote:
Hi, I use Freeswitch to handle SIP message between SIP extentions, how can server know does the message be received by client or not? I noticed even if a SIP extention is offline/unregister, SIP message will still be sent by server but just the receiver will never get it (even if later the receiver online/registered again).
What I want to achieve is: send SIP message to an extention, if received OK, nothing happen; if not, forward the message to user's email address.
brgds, Alex
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
participants (3)
-
Carlos Flor
-
Daniel Ivanov
-
Pip Live