No subject


Wed Jun 27 05:48:46 CEST 2012


st with a different setid because no doubt sipsak is sending the notify fro=
m a different port to that which Asterisk is listening on.

Eg. setid - 10, destination - sip:<asterisk_ip>:5065<sip:%3casterisk_ip%3e:=
5065>

Then - if(ds_is_from_list("10"))...

Cheers,

Charles
Thanks to all for the input. I wrote a script to call sipsak to generate th=
e notify and all seems to be working, however am having issues getting kama=
ilio to forward to the endpoint.

The notify is sent unsolicited so I figured I could just add a statement su=
ch as:

if(is_method("NOTIFY") && ds_is_from_list("1")){
                route(LOCATION);
.....etc

(asterisk server sending notify is in the ds list.)

What would be the proper way for kamailio to handle this?

-----Original Message-----
From: sr-users-bounces at lists.sip-router.org<mailto:sr-users-bounces at lists.s=
ip-router.org> [mailto:sr-users-bounces at lists.sip-router.org<mailto:sr-user=
s-bounces at lists.sip-router.org>] On Behalf Of Juha Heinanen
Sent: Thursday, March 14, 2013 3:44 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Message Waiting

Jon Farmer writes:

> > I have also seen a couple of script methods that look at the
> > voicemail directory structure for file changes and trigger an
> > application like sipsak to generate the notifications and let
> > kamailio relay them. From what I see, the consensus is not to go
> > this route. In my case the script would need to look at the database
> > level, and maybe some sort of database trigger could be used.****
...
> >
> I have been using sipsak to generate the NOTIFY for the last 7 years.
> It never has caused an issue. I have a setup similar to you but I
> wrote a customer voicemail application in AGI instead of using the
> built in Asterisk app.

my sems voicemail application is using xmlrpc to make pua_publish call to p=
resence server when status of user's message box changes.

-- juha

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-=
users at lists.sip-router.org<mailto:sr-users at lists.sip-router.org> http://lis=
ts.sip-router.org/cgi-bin/mailman/listinfo/sr-users


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at lists.sip-router.org<mailto:sr-users at lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

www.sipcentric.com<http://www.sipcentric.com/>

Follow us on twitter @sipcentric<http://twitter.com/sipcentric>

Sipcentric Ltd. Company registered in England & Wales no. 7365592. Register=
ed office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birming=
ham B7 4EJ.

--_000_2C3A7EA3B2A07B43B077DB944A00304B06AF582F0BCRM1_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type content=
=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros=
oft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Helvetica;
	panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
	{font-family:Helvetica;
	panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span style=3D'f=
ont-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Yep, that=
 was it. I forgot the port is included in the dispatcher list. Once I made =
the changes the forward worked. Now just to address sipsak srv lookups so I=
 can make it work with multi-domain and it should be set.<o:p></o:p></span>=
</p><p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calib=
ri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoN=
ormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";co=
lor:#1F497D'>Thanks again!<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'=
>-Dan<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:11=
.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></s=
pan></p><p class=3DMsoNormal><b><span style=3D'font-size:10.0pt;font-family=
:"Tahoma","sans-serif"'>From:</span></b><span style=3D'font-size:10.0pt;fon=
t-family:"Tahoma","sans-serif"'> sr-users-bounces at lists.sip-router.org [mai=
lto:sr-users-bounces at lists.sip-router.org] <b>On Behalf Of </b>Charles Chan=
ce<br><b>Sent:</b> Friday, March 15, 2013 5:43 PM<br><b>To:</b> SIP Router =
- Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List<br><=
b>Subject:</b> Re: [SR-Users] Message Waiting<o:p></o:p></span></p><p class=
=3DMsoNormal><o:p>&nbsp;</o:p></p><p>From past experience you may need to a=
dd another entry to the dispatcher list with a different setid because no d=
oubt sipsak is sending the notify from a different port to that which Aster=
isk is listening on.<o:p></o:p></p><p>Eg. setid - 10, destination - <a href=
=3D"sip:%3casterisk_ip%3e:5065">sip:&lt;asterisk_ip&gt;:5065</a><o:p></o:p>=
</p><p>Then - if(ds_is_from_list(&quot;10&quot;))...<o:p></o:p></p><p>Cheer=
s,<o:p></o:p></p><p>Charles<o:p></o:p></p><div style=3D'border:none;border-=
left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt'><p cl=
ass=3DMsoNormal>Thanks to all for the input. I wrote a script to call sipsa=
k to generate the notify and all seems to be working, however am having iss=
ues getting kamailio to forward to the endpoint.<br><br>The notify is sent =
unsolicited so I figured I could just add a statement such as:<br><br>if(is=
_method(&quot;NOTIFY&quot;) &amp;&amp; ds_is_from_list(&quot;1&quot;)){<br>=
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(LOCATION);<br=
>.....etc<br><br>(asterisk server sending notify is in the ds list.)<br><br=
>What would be the proper way for kamailio to handle this?<br><br>-----Orig=
inal Message-----<br>From: <a href=3D"mailto:sr-users-bounces at lists.sip-rou=
ter.org">sr-users-bounces at lists.sip-router.org</a> [mailto:<a href=3D"mailt=
o:sr-users-bounces at lists.sip-router.org">sr-users-bounces at lists.sip-router.=
org</a>] On Behalf Of Juha Heinanen<br>Sent: Thursday, March 14, 2013 3:44 =
PM<br>To: Kamailio (SER) - Users Mailing List<br>Subject: Re: [SR-Users] Me=
ssage Waiting<br><br>Jon Farmer writes:<br><br>&gt; &gt; I have also seen a=
 couple of script methods that look at the<br>&gt; &gt; voicemail directory=
 structure for file changes and trigger an<br>&gt; &gt; application like si=
psak to generate the notifications and let<br>&gt; &gt; kamailio relay them=
. From what I see, the consensus is not to go<br>&gt; &gt; this route. In m=
y case the script would need to look at the database<br>&gt; &gt; level, an=
d maybe some sort of database trigger could be used.****<br>...<br>&gt; &gt=
;<br>&gt; I have been using sipsak to generate the NOTIFY for the last 7 ye=
ars.<br>&gt; It never has caused an issue. I have a setup similar to you bu=
t I<br>&gt; wrote a customer voicemail application in AGI instead of using =
the<br>&gt; built in Asterisk app.<br><br>my sems voicemail application is =
using xmlrpc to make pua_publish call to presence server when status of use=
r's message box changes.<br><br>-- juha<br><br>____________________________=
___________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr=
-users mailing list <a href=3D"mailto:sr-users at lists.sip-router.org">sr-use=
rs at lists.sip-router.org</a> <a href=3D"http://lists.sip-router.org/cgi-bin/=
mailman/listinfo/sr-users" target=3D"_blank">http://lists.sip-router.org/cg=
i-bin/mailman/listinfo/sr-users</a><br><br><br>____________________________=
___________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr=
-users mailing list<br><a href=3D"mailto:sr-users at lists.sip-router.org">sr-=
users at lists.sip-router.org</a><br><a href=3D"http://lists.sip-router.org/cg=
i-bin/mailman/listinfo/sr-users" target=3D"_blank">http://lists.sip-router.=
org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></p></div><p class=3DMs=
oNormal><br><span style=3D'font-size:10.0pt;font-family:"Helvetica","sans-s=
erif"'><a href=3D"http://www.sipcentric.com/" target=3D"_blank" title=3D"bl=
ocked::http://www.sipcentric.com/">www.sipcentric.com</a><br><br>Follow us =
on twitter <a href=3D"http://twitter.com/sipcentric" target=3D"_blank" titl=
e=3D"blocked::http://twitter.com/sipcentric">@sipcentric</a><br><br><span s=
tyle=3D'color:gray'>Sipcentric Ltd. Company registered in England &amp; Wal=
es no. 7365592.</span>&nbsp;<span style=3D'color:gray'>Registered office: U=
nit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.<=
/span></span><o:p></o:p></p></div></body></html>=

--_000_2C3A7EA3B2A07B43B077DB944A00304B06AF582F0BCRM1_--



More information about the sr-users mailing list