While I have seen other posts I have not found anything that describes my scenario.
Kamailio sets in front of a group of asterisk servers which are used in a round robin dispatch group. All asterisk servers share a common database in which voicemail boxes are defined and messages are stored.
I'm looking for a way to make message waiting work in this example. I have tried creating a view with basic peer information for asterisk to use for message notification, however asterisk does not 'see' these peers until a call is made to the specific user and the peer info is retrieved from the database, which can delay notifications severely rendering them useless. I also want to avoid sending a copy of the registrations to asterisk servers, as the purpose of the distributed system is to eliminate the large number of sip registrations asterisk needs to manage.
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.
What are others doing / what do others recommend as the best way to handle message waiting with a situation where kamailio sets in front of a voicemail server?
Any input is appreciated. Dan-
The script method works fine for us - but we use the externnotify option in voicemail.conf instead of scanning for changes at directory/database level.
Regards,
Charles
On 12 March 2013 19:32, Daniel W. Graham dan@cmsinter.net wrote:
While I have seen other posts I have not found anything that describes my scenario.****
Kamailio sets in front of a group of asterisk servers which are used in a round robin dispatch group. All asterisk servers share a common database in which voicemail boxes are defined and messages are stored.****
I’m looking for a way to make message waiting work in this example. I have tried creating a view with basic peer information for asterisk to use for message notification, however asterisk does not ‘see’ these peers until a call is made to the specific user and the peer info is retrieved from the database, which can delay notifications severely rendering them useless. I also want to avoid sending a copy of the registrations to asterisk servers, as the purpose of the distributed system is to eliminate the large number of sip registrations asterisk needs to manage.****
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.****
What are others doing / what do others recommend as the best way to handle message waiting with a situation where kamailio sets in front of a voicemail server? ****
Any input is appreciated.****
Dan-****
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Can you describe how your implementation works without having to scan directory/database for changes?
-Dan
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Charles Chance Sent: Tuesday, March 12, 2013 3:42 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Message Waiting
The script method works fine for us - but we use the externnotify option in voicemail.conf instead of scanning for changes at directory/database level.
Regards,
Charles
On 12 March 2013 19:32, Daniel W. Graham <dan@cmsinter.netmailto:dan@cmsinter.net> wrote: While I have seen other posts I have not found anything that describes my scenario.
Kamailio sets in front of a group of asterisk servers which are used in a round robin dispatch group. All asterisk servers share a common database in which voicemail boxes are defined and messages are stored.
I'm looking for a way to make message waiting work in this example. I have tried creating a view with basic peer information for asterisk to use for message notification, however asterisk does not 'see' these peers until a call is made to the specific user and the peer info is retrieved from the database, which can delay notifications severely rendering them useless. I also want to avoid sending a copy of the registrations to asterisk servers, as the purpose of the distributed system is to eliminate the large number of sip registrations asterisk needs to manage.
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.
What are others doing / what do others recommend as the best way to handle message waiting with a situation where kamailio sets in front of a voicemail server?
Any input is appreciated. Dan-
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
www.sipcentric.comhttp://www.sipcentric.com/
Follow us on twitter @sipcentrichttp://twitter.com/sipcentric
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.
The script you specify (e.g. externnotify=myscript.sh) runs every time a new message is left for a user or when a user exits the VoiceMailMain() application (for instance, if they have dialled in to clean up their mailbox).
The voicemail application passes certain things as parameters to your script such as number of new/old messages etc - for more info and example script take a look here: http://www.voip-info.org/wiki/view/Asterisk+config+voicemail.conf
Cheers,
Charles
On 12 March 2013 19:45, Daniel W. Graham dan@cmsinter.net wrote:
Can you describe how your implementation works without having to scan directory/database for changes?****
-Dan****
*From:* sr-users-bounces@lists.sip-router.org [mailto: sr-users-bounces@lists.sip-router.org] *On Behalf Of *Charles Chance *Sent:* Tuesday, March 12, 2013 3:42 PM *To:* Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] Message Waiting****
The script method works fine for us - but we use the externnotify option in voicemail.conf instead of scanning for changes at directory/database level.****
Regards,****
Charles****
On 12 March 2013 19:32, Daniel W. Graham dan@cmsinter.net wrote:****
While I have seen other posts I have not found anything that describes my scenario.****
Kamailio sets in front of a group of asterisk servers which are used in a round robin dispatch group. All asterisk servers share a common database in which voicemail boxes are defined and messages are stored.****
I’m looking for a way to make message waiting work in this example. I have tried creating a view with basic peer information for asterisk to use for message notification, however asterisk does not ‘see’ these peers until a call is made to the specific user and the peer info is retrieved from the database, which can delay notifications severely rendering them useless. I also want to avoid sending a copy of the registrations to asterisk servers, as the purpose of the distributed system is to eliminate the large number of sip registrations asterisk needs to manage.****
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.****
What are others doing / what do others recommend as the best way to handle message waiting with a situation where kamailio sets in front of a voicemail server? ****
Any input is appreciated.****
Dan-****
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users****
www.sipcentric.com
Follow us on twitter @sipcentric http://twitter.com/sipcentric
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.****
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
I read that right after I posted my next question, sorry for jumping the gun without doing some research. Do you mind me asking what method you use for generating the notifications, asterisk call file / sipsak / etc ?
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Charles Chance Sent: Tuesday, March 12, 2013 3:54 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Message Waiting
The script you specify (e.g. externnotify=myscript.sh) runs every time a new message is left for a user or when a user exits the VoiceMailMain() application (for instance, if they have dialled in to clean up their mailbox).
The voicemail application passes certain things as parameters to your script such as number of new/old messages etc - for more info and example script take a look here: http://www.voip-info.org/wiki/view/Asterisk+config+voicemail.conf
Cheers,
Charles
On 12 March 2013 19:45, Daniel W. Graham <dan@cmsinter.netmailto:dan@cmsinter.net> wrote: Can you describe how your implementation works without having to scan directory/database for changes?
-Dan
From: sr-users-bounces@lists.sip-router.orgmailto:sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.orgmailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Charles Chance Sent: Tuesday, March 12, 2013 3:42 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Message Waiting
The script method works fine for us - but we use the externnotify option in voicemail.conf instead of scanning for changes at directory/database level.
Regards,
Charles
On 12 March 2013 19:32, Daniel W. Graham <dan@cmsinter.netmailto:dan@cmsinter.net> wrote: While I have seen other posts I have not found anything that describes my scenario.
Kamailio sets in front of a group of asterisk servers which are used in a round robin dispatch group. All asterisk servers share a common database in which voicemail boxes are defined and messages are stored.
I'm looking for a way to make message waiting work in this example. I have tried creating a view with basic peer information for asterisk to use for message notification, however asterisk does not 'see' these peers until a call is made to the specific user and the peer info is retrieved from the database, which can delay notifications severely rendering them useless. I also want to avoid sending a copy of the registrations to asterisk servers, as the purpose of the distributed system is to eliminate the large number of sip registrations asterisk needs to manage.
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.
What are others doing / what do others recommend as the best way to handle message waiting with a situation where kamailio sets in front of a voicemail server?
Any input is appreciated. Dan-
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
www.sipcentric.comhttp://www.sipcentric.com/
Follow us on twitter @sipcentrichttp://twitter.com/sipcentric
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
www.sipcentric.comhttp://www.sipcentric.com/
Follow us on twitter @sipcentrichttp://twitter.com/sipcentric
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.
Sipsak is generally what we use, although any similar tool should do it. Just watch the port numbers!
Cheers,
Charles
On 12 March 2013 19:58, Daniel W. Graham dan@cmsinter.net wrote:
I read that right after I posted my next question, sorry for jumping the gun without doing some research. Do you mind me asking what method you use for generating the notifications, asterisk call file / sipsak / etc ?****
*From:* sr-users-bounces@lists.sip-router.org [mailto: sr-users-bounces@lists.sip-router.org] *On Behalf Of *Charles Chance *Sent:* Tuesday, March 12, 2013 3:54 PM *To:* Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] Message Waiting****
The script you specify (e.g. externnotify=myscript.sh) runs every time a new message is left for a user or when a user exits the VoiceMailMain() application (for instance, if they have dialled in to clean up their mailbox).****
The voicemail application passes certain things as parameters to your script such as number of new/old messages etc - for more info and example script take a look here: http://www.voip-info.org/wiki/view/Asterisk+config+voicemail.conf****
Cheers,****
Charles****
On 12 March 2013 19:45, Daniel W. Graham dan@cmsinter.net wrote:****
Can you describe how your implementation works without having to scan directory/database for changes?****
-Dan****
*From:* sr-users-bounces@lists.sip-router.org [mailto: sr-users-bounces@lists.sip-router.org] *On Behalf Of *Charles Chance *Sent:* Tuesday, March 12, 2013 3:42 PM *To:* Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] Message Waiting****
The script method works fine for us - but we use the externnotify option in voicemail.conf instead of scanning for changes at directory/database level.****
Regards,****
Charles****
On 12 March 2013 19:32, Daniel W. Graham dan@cmsinter.net wrote:****
While I have seen other posts I have not found anything that describes my scenario.****
Kamailio sets in front of a group of asterisk servers which are used in a round robin dispatch group. All asterisk servers share a common database in which voicemail boxes are defined and messages are stored.****
I’m looking for a way to make message waiting work in this example. I have tried creating a view with basic peer information for asterisk to use for message notification, however asterisk does not ‘see’ these peers until a call is made to the specific user and the peer info is retrieved from the database, which can delay notifications severely rendering them useless. I also want to avoid sending a copy of the registrations to asterisk servers, as the purpose of the distributed system is to eliminate the large number of sip registrations asterisk needs to manage.****
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.****
What are others doing / what do others recommend as the best way to handle message waiting with a situation where kamailio sets in front of a voicemail server? ****
Any input is appreciated.****
Dan-****
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users****
www.sipcentric.com
Follow us on twitter @sipcentric http://twitter.com/sipcentric
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.****
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users****
www.sipcentric.com
Follow us on twitter @sipcentric http://twitter.com/sipcentric
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.****
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Ok, very good, and will watch the port number :)
Thanks for sharing your solution, it seems like a clean solution to the issue at hand. If anyone else is doing something different I'd love to hear as well.
Running with this solution for now, thanks again Charles.
-Dan
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Charles Chance Sent: Tuesday, March 12, 2013 4:05 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Message Waiting
Sipsak is generally what we use, although any similar tool should do it. Just watch the port numbers!
Cheers,
Charles
On 12 March 2013 19:58, Daniel W. Graham <dan@cmsinter.netmailto:dan@cmsinter.net> wrote: I read that right after I posted my next question, sorry for jumping the gun without doing some research. Do you mind me asking what method you use for generating the notifications, asterisk call file / sipsak / etc ?
From: sr-users-bounces@lists.sip-router.orgmailto:sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.orgmailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Charles Chance Sent: Tuesday, March 12, 2013 3:54 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Message Waiting
The script you specify (e.g. externnotify=myscript.sh) runs every time a new message is left for a user or when a user exits the VoiceMailMain() application (for instance, if they have dialled in to clean up their mailbox).
The voicemail application passes certain things as parameters to your script such as number of new/old messages etc - for more info and example script take a look here: http://www.voip-info.org/wiki/view/Asterisk+config+voicemail.conf
Cheers,
Charles
On 12 March 2013 19:45, Daniel W. Graham <dan@cmsinter.netmailto:dan@cmsinter.net> wrote: Can you describe how your implementation works without having to scan directory/database for changes?
-Dan
From: sr-users-bounces@lists.sip-router.orgmailto:sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.orgmailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Charles Chance Sent: Tuesday, March 12, 2013 3:42 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Message Waiting
The script method works fine for us - but we use the externnotify option in voicemail.conf instead of scanning for changes at directory/database level.
Regards,
Charles
On 12 March 2013 19:32, Daniel W. Graham <dan@cmsinter.netmailto:dan@cmsinter.net> wrote: While I have seen other posts I have not found anything that describes my scenario.
Kamailio sets in front of a group of asterisk servers which are used in a round robin dispatch group. All asterisk servers share a common database in which voicemail boxes are defined and messages are stored.
I'm looking for a way to make message waiting work in this example. I have tried creating a view with basic peer information for asterisk to use for message notification, however asterisk does not 'see' these peers until a call is made to the specific user and the peer info is retrieved from the database, which can delay notifications severely rendering them useless. I also want to avoid sending a copy of the registrations to asterisk servers, as the purpose of the distributed system is to eliminate the large number of sip registrations asterisk needs to manage.
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.
What are others doing / what do others recommend as the best way to handle message waiting with a situation where kamailio sets in front of a voicemail server?
Any input is appreciated. Dan-
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
www.sipcentric.comhttp://www.sipcentric.com/
Follow us on twitter @sipcentrichttp://twitter.com/sipcentric
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
www.sipcentric.comhttp://www.sipcentric.com/
Follow us on twitter @sipcentrichttp://twitter.com/sipcentric
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
www.sipcentric.comhttp://www.sipcentric.com/
Follow us on twitter @sipcentrichttp://twitter.com/sipcentric
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.
On 12 March 2013 19:32, Daniel W. Graham dan@cmsinter.net wrote:
While I have seen other posts I have not found anything that describes my scenario.****
**
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.
Regards
Jon
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 presence server when status of user's message box changes.
-- juha
Thanks to all for the input. I wrote a script to call sipsak to generate the notify and all seems to be working, however am having issues getting kamailio to forward to the endpoint.
The notify is sent unsolicited so I figured I could just add a statement such 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@lists.sip-router.org [mailto:sr-users-bounces@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 presence server when status of user's message box changes.
-- juha
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
From past experience you may need to add another entry to the dispatcher
list with a different setid because no doubt sipsak is sending the notify from a different port to that which Asterisk is listening on.
Eg. setid - 10, destination - sip:<asterisk_ip>: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 the notify and all seems to be working, however am having issues getting kamailio to forward to the endpoint.
The notify is sent unsolicited so I figured I could just add a statement such 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@lists.sip-router.org [mailto: sr-users-bounces@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 presence server when status of user's message box changes.
-- juha
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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.
Thanks again! -Dan
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Charles Chance Sent: Friday, March 15, 2013 5:43 PM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Subject: Re: [SR-Users] Message Waiting
From past experience you may need to add another entry to the dispatcher list with a different setid because no doubt sipsak is sending the notify from a different port to that which Asterisk is listening on.
Eg. setid - 10, destination - sip:<asterisk_ip>:5065sip:%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 the notify and all seems to be working, however am having issues getting kamailio to forward to the endpoint.
The notify is sent unsolicited so I figured I could just add a statement such 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@lists.sip-router.orgmailto:sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.orgmailto:sr-users-bounces@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 presence server when status of user's message box changes.
-- juha
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
www.sipcentric.comhttp://www.sipcentric.com/
Follow us on twitter @sipcentrichttp://twitter.com/sipcentric
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.
I've been struggling getting sipsak to perform srv lookups. I have exhausted my options and wanted to reach out and see if there was any input.
I compiled c-ares library and afterwards compiled sipsak, sipsak configure script detected the c-ares librarys, however when performing any sipsak command in which requires srv lookup I get a segmentation fault.
Anyone seen this or have another recommendation?
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Daniel W. Graham Sent: Saturday, March 16, 2013 12:47 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Message Waiting
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.
Thanks again! -Dan
From: sr-users-bounces@lists.sip-router.orgmailto:sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Charles Chance Sent: Friday, March 15, 2013 5:43 PM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Subject: Re: [SR-Users] Message Waiting
From past experience you may need to add another entry to the dispatcher list with a different setid because no doubt sipsak is sending the notify from a different port to that which Asterisk is listening on.
Eg. setid - 10, destination - sip:<asterisk_ip>:5065sip:%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 the notify and all seems to be working, however am having issues getting kamailio to forward to the endpoint.
The notify is sent unsolicited so I figured I could just add a statement such 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@lists.sip-router.orgmailto:sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.orgmailto:sr-users-bounces@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 presence server when status of user's message box changes.
-- juha
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
www.sipcentric.comhttp://www.sipcentric.com/
Follow us on twitter @sipcentrichttp://twitter.com/sipcentric
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.