[Serusers] Authentication prefix

Ryan Pagquil rpagquil at philonline.com
Wed Jul 5 23:32:54 CEST 2006


Hi,
    See inline. Please try.
  ----- Original Message ----- 
  From: CM0002 at aol.com 
  To: Serusers at lists.iptel.org 
  Sent: Thursday, July 06, 2006 4:30 AM
  Subject: [Serusers] Authentication prefix


  I need to cut leading "00" and ad a prefix "123" to an outgoing call to allow authentication to provider. I tried several scripts but non of them works.  Can somebody help me? Thanks from a SER novize! Regards Christian

  Last one:


         # send out 00 prefix to wholesale psnt termination  VOIP
          if (uri=~"^sip:00[0-9].*@.*") {
                 strip(2);            <<<<<<<<<<move it there
                 if (!is_user_in("From", "ld")) {
                         sl_send_reply("403", "Payment required");
                         break;

      }; 
                  setflag(1);
                  prefix("123"); <<<<<<<<<<<<<<move it here
                  rewritehostport("64.xxx.xxx.76:5060");
                  if (!t_relay()) {
                          sl_reply_error();
                  };
                  break;
          };                     
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060706/c96560b3/attachment.htm>


More information about the sr-users mailing list