login | register
Sat 17 of May, 2008 [05:19 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.
 
Google Ads
Shoutbox
  • Juan Ortega, Thu 15 of May, 2008 [10:33 UTC]: Hi everybody, I'm Juan, an ITCom student, and I need to know what basic elements I need to create a VoIP network. Can anybody helpme, please?,Thank you very much
  • gineta, Wed 14 of May, 2008 [03:58 UTC]: any here not fine the configuration of firewall juniper -screem for VOIP asterisk????
  • Anoop Prabhakaran, Tue 13 of May, 2008 [12:16 UTC]: I am developing Asterisk IVR, Whenever i make a internation call to the IVR system, the DTMF is not getting detected properly, this happens only for the first time, second call onwards system works fine. why this is happening
  • joe, Mon 12 of May, 2008 [04:27 UTC]: Is there an opensource browser based softphone, or a system like Busta where everything is not manages through their website?
  • Nick Barnes, Fri 09 of May, 2008 [11:36 UTC]: Christopher - yesterday I tried an Asterisk install on a CentOS 5.1 box with stock GUI and it all worked fine. Sorry I can't help.
  • aero, Fri 09 of May, 2008 [08:20 UTC]: can someone help me out on this, i tried to play some sound files on my asterisk box and this is the error message i got. WARNING[4429]: format_wav.c:169 check_header: Unexpected freqency 22050 May 8 11:17:39 WARNING[4433]: codec_gsm.c:194 gsmtolin_fra
  • Christopher Faust, Thu 08 of May, 2008 [14:15 UTC]: I beleive that I may have to change something in the xserver configuration. Please advise
  • Christopher Faust, Thu 08 of May, 2008 [14:14 UTC]: Everything was perfect. In the bios I have increased the memory allocated Still receive input not supported on my display.
  • Christopher Faust, Thu 08 of May, 2008 [14:13 UTC]: This would not be my main box. I am doing some testing to see if I can install zaptel and asterisk 1.4 on a full centos 5.1 box with development software Its bizzare, because before I went through the asterisk and zaptel installation everything was perfe
  • Nick Barnes, Thu 08 of May, 2008 [13:44 UTC]: Christopher - I can't see any way in which an Asterisk installation would muck your GUI, but remember that it is advised not to use a GUI on an Asterisk box anyway.
Server Stats
  • Execution time: 0.39s
  • Memory usage: 2.19MB
  • Database queries: 32
  • GZIP: Disabled
  • Server load: 0.79

Asterisk and OpenSER integration.

Asterisk and OpenSER integration.


Nice Diagram of Openser and Asterisk integration OpenSer+Asterisk



Satish Patel
+91-9818875535 E-mail: satish.lx@gmail.com home page:- http://www.linuxbug.org



       [SIP_Client]------------------------->[OpenSER]-----------------------[Asterisk]-----------------[PSTN]



Let's talk about something interesting. I have been working on IP telephony systems for the last year. I have implemented IP PBX solutions for many organizations. I have good expertise on telephony and Asterisk systems. Basically Asterisk is not a SIP server but it can support the SIP protocol. That's why Asterisk can handle only 200 to 300 SIP device registrations, and that on large productions it doesn't to work great. Finally, I have decided to implement Asterisk on a large production with the help of OpenSER. OpenSER is pure SIP server and a lightweight binary, so it can handle 10,000 call per second. I am using OpenSER in front of Asterisk. OpenSER handles my call SIP registration requests, and Asterisk handles my PSTN functionality because OpenSER doesn't support telephony hardware. Asterisk provides media application services like VoiceMail, Conference, IVR, and PSTN functions.

I am going to show you how to integrate this combined system: OpenSER and Asterisk.

My configuration example.

$cat /usr/local/etc/openser/openser.cfg

debug=6
fork=yes
log_stderror=yes
port=5060
children=4
fifo="/tmp/ser_fifo"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
modparam("usrloc", "db_mode", 0)
modparam("rr", "enable_full_lr", 1)
route{
      if (!mf_process_maxfwd_header("10")) {
              sl_send_reply("483","Too Many Hops");
              break;
      };
      if (msg:len >=  2048 ) {
              sl_send_reply("513", "Message too big");
              break;
      };

      if (!method=="REGISTER") record_route();
      if (loose_route()) {
              append_hf("P-hint: rr-enforced\r\n");
              route(1);
              break;
      };
      if (!uri==myself) {
              append_hf("P-hint: outbound\r\n");
              route(1);
              break;
      };
      if (uri==myself) {
              if (method=="REGISTER") {
                      save("location");
                      break;
              };
              if(method=="INVITE") {
                      if (uri =~ "sip:50-9@*"){
                      route(3);
                      break;
              }
              }
              lookup("aliases");
              if (!uri==myself) {
                      append_hf("P-hint: outbound alias\r\n");
                      route(1);
                      break;
              };
              if (!lookup("location")) {
                      sl_send_reply("404", "Not Found");
                      break;
              };
      };
      append_hf("P-hint: usrloc applied\r\n");
      route(1);
}
route[1]
{
      if (!t_relay()) {
              sl_reply_error();
      };
}
route[3]{

 if (uri =~ "sip:50-9@*"){
      log(1, "Forwarding to Asterisk \n");
      rewritehostport("192.168.104.20:5060");
      route(1);
      break;
  }




Asterisk configuration for openser

sip.conf

[203.124.16.109]
type=friend ; We allow incoming and outgoing calls. Use peer if you are only doing MWI
context=outgoing ; This is the context incoming calls land in
host=<openser_server_ip> ; This is the hostname or IP address of your SER server
fromdomain=<openser_server_ip> ; This is your SER_DOMAIN
insecure=very ; This allows incoming calls from the phones routing through ser to be passed into asterisk
mailbox=user@context



extention.conf

[globals]
SERADDRESS=xxx.xxx.xxx.xxx

outgoing

exten => _XXXX,1,Dial(SIP/${EXTEN}@${SERADDRESS},20,r)

exten => _0XXXXXXXXXX,1,Dial(Zap/g1/${EXTEN},60)


Created by satish patel, Last modification by splante on Wed 07 of May, 2008 [18:08 UTC]

Comments Filter

Ser + asterisk

by satish patel on Saturday 12 of April, 2008 [11:31:58 UTC]
Cool solution ..

Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2008 VOIP-Info.org LLC

Powered by bitweaver