<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=DA link=blue vlink=purple>
<div class=Section1>
<div>
<p style='mso-margin-top-alt:4.5pt;margin-right:0cm;margin-bottom:2.25pt;
margin-left:0cm;line-height:12.0pt;background:white'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>I have
partially solved the issue.<o:p></o:p></span></font></p>
<p style='mso-margin-top-alt:4.5pt;margin-right:0cm;margin-bottom:2.25pt;
margin-left:0cm;line-height:12.0pt;background:white'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>In the
dialplan I use a execute_on_ring to run:<o:p></o:p></span></font></p>
<p style='mso-margin-top-alt:4.5pt;margin-right:0cm;margin-bottom:2.25pt;
margin-left:0cm;line-height:12.0pt;background:white'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>
<action application="event"
data="Event-Name=NOTIFY,uuid=${uuid},event-string=talk,content-type=application/simple-message-summary"/><o:p></o:p></span></font></p>
<p style='mso-margin-top-alt:4.5pt;margin-right:0cm;margin-bottom:2.25pt;
margin-left:0cm;line-height:12.0pt;background:white'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>This fires a
notify to the phone called, which has nearly the right SIP to- and from-headers.<o:p></o:p></span></font></p>
<p style='mso-margin-top-alt:4.5pt;margin-right:0cm;margin-bottom:2.25pt;
margin-left:0cm;line-height:12.0pt;background:white'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>Unfortunately
the tag=xxxx in the to-header is missing. </span>This tag should be the same as
the tag in the SIP RINGING response from the phone, but somehow it is not
passed on to the NOTIFY.<o:p></o:p></font></p>
<p style='mso-margin-top-alt:4.5pt;margin-right:0cm;margin-bottom:2.25pt;
margin-left:0cm;line-height:12.0pt;background:white'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>The result is
that the phone cannot determine which call should be answered, and it does not
go off-hook.<o:p></o:p></span></font></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of <st1:PersonName
w:st="on">Jon Bruel</st1:PersonName><br>
Sent: 18. juni 2012 15:39<br>
To: <st1:PersonName w:st="on">freeswitch-users@lists.freeswitch.org</st1:PersonName><br>
Subject: [Freeswitch-users] sendevent NOTIFY<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>After some time working with BroadSoft, I have returned to the
FreeSWITCH, and I'm impressed with the overall improvements in consistency and
documentation. Great work!</span></font><span lang=EN-GB><o:p></o:p></span></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I have tested the Event Socket sendevent NOTIFY command, and I have
tried to check if I could change the SIP From and SIP To headers to suit my
requirements. It looks as if there is no way.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>So is there a way to specify the From- and To-headers, including the
associated tags?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I need this to be able to control the phone sets (set it off-hook).<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Thanks /Jon<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>