[Serusers] Please help me identify

Klaus Darilion klaus.mailinglists at pernau.at
Wed Dec 29 00:55:12 CET 2004


Hi Abid!

You don't have to use aliases. You can implement your dialing plan by 
comparing the request URI, e.g.

if ( (uri ~= "^\+") || (uri ~= "^00") || (uri ~= "^011") ) {
   # PSTN calls
   # not sure about the next command, take a look
   # at user guide at iptel.org
   rewritehostport("your server");
   t_relay();
   break;
};

if (uri ~= "^\*") {
   # internal calls
   if (!lookup(location)) {
	sl_send_reply("404", "not found");
   t_relay();
   break;
};

sl_send_reply("404", "wrong number dialed");



regards,
klaus

PS: using * as identifier for local IP-IP calls is not necessary

Abid A. Mirza wrote:

> Hi First happy holidays to all, I have setup SER Proxy and working fine as
> long as I used the URI of type User at mydomain.com.
> Now I want to assign each user an ID of 7471234 which they have to prefix
> with * (e.g *7471234) to call other user.
> Lets say UserA with with number 7471234 wants to dial UserB with Tel #
> 7472222 dials *7472222 and gets connected as long as the
> UserB is registered with my SER Proxy. If not 404 msg is sent UserA. if
> UserA dial a PSTN numbe either using + & CounryCode & Number,
> or 00 & CounryCode & Number, & or 011 & CounryCode & Number, they get
> forwarded to my Asterisk Server.
>  Please help me identify what should I use the Aliases Table or Subscriber
> Table or DNS NAPTR to map uri to Number
> (eg 7471234 maps to UserA at mydomain.com .
> Thanks in Advance, Merry Xmas and Happy New Year! Abid Mirza
> 
> 
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.6.5 - Release Date: 26/12/04
> 
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 
> 




More information about the sr-users mailing list