Thanks for the reply Girish.
I would just like to verify the following:
I currently have the following very simple config:
if (method == "INVITE") { //other code t_on_failure("1"); };
failure_route[1]{ revert_uri(); rewritehostport("xxx.xxx.xxx.xxx:5062"); append_branch(); t_relay_on_udp("xxx.xxx.xxx.xxx","5062"); break; }
However when I restart SER it tells me I have an error in my ser.cfg and from the log file it says I am missing a loadmodule:
The following are the load modules I have inclued. Am I missing one?
sl.so tm.so rr.so maxfwd.so usrloc.so registrar.so nathelper.so textops.so auth.so authdb.so
Thanks, Aisling.
---- Original Message ---- From: gr_sh2003@yahoo.com To: ashling.odriscoll@cit.ie, serusers@iptel.org Subject: Re: [Serusers] Looking for SER + Asterisk-as-voicemail HOWTO Date: Sat, 29 Jan 2005 00:39:19 -0800 (PST)
Ashling,
See comments inline.
--- Ashling O'Driscoll ashling.odriscoll@cit.ie wrote:
I implemented the changes in ser.cfg that Giri suggested below(will this cover no answer and busy?). Asterisk and ser are on the same machine so I now forward to 5062: see code below. Hoever how do I
now
modify Asterisk to handle this?...Like I said Ive read lots on this but it gets complicated with perl scripts etc. Apologies if I am a bit slow picking up on this!
Go thru the README.variables file that comes with the Asterisk distribution. It describes about the extension logic and how to handle different variables. Also, learn about pattern matching for Asterisk extensions. Now add appropriate entries for voicemail in voicemail.conf. Have something like this in your extensions.conf when the vm calls from SER reach Asterisk.
exten => _X.,1,VoiceMail2(u${EXTEN})
ser.cfg; if(!lookup("location"){ rouet(2); break; };
The above code will not serve your busy/unanswered needs. Add a failure route and handle it there. like:
t_on_failure("1"); t_relay (); break;
failure_route[1] { route(2); break; }
route [2] { rewritehostport("xxx.xxx.xxx.xxx:5062"); t_relay_to_udp("xxx.xxx.xxx.xxx:5062"); break; };
Aisling
Also, learning about using t_check_status will also help you handle specific error conditions.
Best,
===== Girish Gopinath gr_sh2003@yahoo.com
Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
What is 't_relay_on_udp'? It should be 't_relay_to_udp'. BTW, your previous mail had 'rouet' instead of 'route'.
Cheers!
--- Ashling O'Driscoll ashling.odriscoll@cit.ie wrote:
Thanks for the reply Girish.
I would just like to verify the following:
I currently have the following very simple config:
if (method == "INVITE") { //other code t_on_failure("1"); };
failure_route[1]{ revert_uri(); rewritehostport("xxx.xxx.xxx.xxx:5062"); append_branch(); t_relay_on_udp("xxx.xxx.xxx.xxx","5062"); break; }
However when I restart SER it tells me I have an error in my ser.cfg and from the log file it says I am missing a loadmodule:
The following are the load modules I have inclued. Am I missing one?
sl.so tm.so rr.so maxfwd.so usrloc.so registrar.so nathelper.so textops.so auth.so authdb.so
Thanks, Aisling.
---- Original Message ---- From: gr_sh2003@yahoo.com To: ashling.odriscoll@cit.ie, serusers@lists.iptel.org Subject: Re: [Serusers] Looking for SER + Asterisk-as-voicemail HOWTO Date: Sat, 29 Jan 2005 00:39:19 -0800 (PST)
Ashling,
See comments inline.
--- Ashling O'Driscoll ashling.odriscoll@cit.ie wrote:
I implemented the changes in ser.cfg that Giri suggested below(will this cover no answer and busy?). Asterisk and ser are on the same machine so I now forward to 5062: see code below. Hoever how do I
now
modify Asterisk to handle this?...Like I said Ive read lots on this but it gets complicated with perl scripts etc. Apologies if I am a bit slow picking up on this!
Go thru the README.variables file that comes with the Asterisk distribution. It describes about the extension logic and how to handle different variables. Also, learn about pattern matching for Asterisk extensions. Now add appropriate entries for voicemail in voicemail.conf. Have something like this in your extensions.conf when the vm calls from SER reach Asterisk.
exten => _X.,1,VoiceMail2(u${EXTEN})
ser.cfg; if(!lookup("location"){ rouet(2); break; };
The above code will not serve your busy/unanswered needs. Add a failure route and handle it there. like:
t_on_failure("1"); t_relay (); break;
failure_route[1] { route(2); break; }
route [2] { rewritehostport("xxx.xxx.xxx.xxx:5062"); t_relay_to_udp("xxx.xxx.xxx.xxx:5062"); break; };
Aisling
Also, learning about using t_check_status will also help you handle specific error conditions.
Best,
===== Girish Gopinath gr_sh2003@yahoo.com
===== Girish Gopinath gr_sh2003@yahoo.com
__________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo