Hey guys. How can you configure SER to associate a particular phone number, say 12341234, with a particular SIP client/user agent?
The aim is to be able to call them with either john@foo.bar or 12341234, but ensure that SER associates 12341234 with john@foo.bar rather than john@foo.bar telling SER "I can be reached at 12341234".
Cheers! -- Nick e: nick.hoffman@altcall.com p: +61 7 5591 3588 f: +61 7 5591 6588
If you receive this email by mistake, please notify us and do not make any use of the email. We do not waive any privilege, confidentiality or copyright associated with it.
lookup("aliases") and the aliases table will translate from the alias to the real name (address or record, canonical URI, ...).
lookup("aliases"); if (!lookup("location")) { sl_send_reply("404","Not found"); break; }
regards klaus
Nick Hoffman wrote:
Hey guys. How can you configure SER to associate a particular phone number, say 12341234, with a particular SIP client/user agent?
The aim is to be able to call them with either john@foo.bar or 12341234, but ensure that SER associates 12341234 with john@foo.bar rather than john@foo.bar telling SER "I can be reached at 12341234".
Cheers! -- Nick e: nick.hoffman@altcall.com p: +61 7 5591 3588 f: +61 7 5591 6588
If you receive this email by mistake, please notify us and do not make any use of the email. We do not waive any privilege, confidentiality or copyright associated with it.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Nick Hoffman wrote:
Hey guys. How can you configure SER to associate a particular phone number, say 12341234, with a particular SIP client/user agent?
The aim is to be able to call them with either john@foo.bar or 12341234, but ensure that SER associates 12341234 with john@foo.bar rather than john@foo.bar telling SER "I can be reached at 12341234".
Cheers! -- Nick e: nick.hoffman@altcall.com p: +61 7 5591 3588 f: +61 7 5591 6588
If you receive this email by mistake, please notify us and do not make any use of the email. We do not waive any privilege, confidentiality or copyright associated with it.
On Thu February 9 2006 19:59, Klaus Darilion klaus.mailinglists@pernau.at wrote:
lookup("aliases") and the aliases table will translate from the alias to the real name (address or record, canonical URI, ...).
lookup("aliases"); if (!lookup("location")) { sl_send_reply("404","Not found"); break; }
regards klaus
Hi Klaus. I added the lines you mentioned above into ser.cfg and restarted SER, but dialing 12341234 returned a 404 Not Found to my softphone. I wasn't sure where those lines were supposed to go, so I tried them in a few places, all with the same result.
At the moment I have a very basic ser.cfg which I have attached to this email. When you have a minute, if you would't mind taking a look through it and letting me know what else needs to be done to get aliases working, I'd greatly appreciate it.
Cheers! -- Nick e: nick.hoffman@altcall.com p: +61 7 5591 3588 f: +61 7 5591 6588
If you receive this email by mistake, please notify us and do not make any use of the email. We do not waive any privilege, confidentiality or copyright associated with it.
serctl alias add 12345678 sip:account@domain.com or insert directly into the aliases table.
make sure you do lookup("aliases") in your config.
- Thomas
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Nick Hoffman Sent: 9. februar 2006 10:39 To: serusers@lists.iptel.org Subject: [Serusers] Associate a # with a SIP client
Hey guys. How can you configure SER to associate a particular phone number, say 12341234, with a particular SIP client/user agent?
The aim is to be able to call them with either john@foo.bar or 12341234, but ensure that SER associates 12341234 with john@foo.bar rather than john@foo.bar telling SER "I can be reached at 12341234".
Cheers! -- Nick e: nick.hoffman@altcall.com p: +61 7 5591 3588 f: +61 7 5591 6588
If you receive this email by mistake, please notify us and do not make any use of the email. We do not waive any privilege, confidentiality or copyright associated with it.
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers