[Serusers] Using username aliases
Fábio Silvestri
fabio at informatec.com.br
Fri Jan 16 11:39:29 CET 2004
Ok, but I want to do the inverse, the AS will forward to sip 5511xxxxxx and I
want to forward to 8910!
Does have some sample cfg?
Jim Burwell wrote:
> Aliases in SER are very simple. When you call lookup("aliases"), it
> simply replaces the matched username with whatever is in the alias. If
> you want an alias to result in a call to PSTN, just do the lookup before
> your PSTN call matching logic in ser.cfg, and have the alias entry
> produce something which matches your PSTN call matchign logic. Like, if
> you want 8910 to call 5511xxxxxx, just have an alias for "8910" ->
> "sip:5511xxxxxx at domain", and make sure theres logic to route that
> particular URI to PSTN after the alias lookup.
>
>
>
> Fábio Silvestri wrote:
>
>> Ok, but down't work!
>>
>> I have change the db_mode to 1 to immediately change sql db after use
>> serctl, I can see the alias on tables aliases, but when a dial a
>> number when the ser must to forward do username they forward to pstn...
>>
>>
>> Jan Janak wrote:
>>
>>> To ser.cfg yes, then you have to create the alias using serctl utility.
>>>
>>> Jan.
>>>
>>> On 14-01 18:46, Fábio Silvestri wrote:
>>>
>>>> Hi ser users,
>>>>
>>>> I'm trying to dialling to a aliases for username, I want do alias
>>>> the username 8910 with pstn number 5511xxxxxxxx.
>>>>
>>>> I have put a 'lookup("aliases");', does this is the only change I
>>>> have to do on ser.cfg ?
>>>
>>>
>>
>>
>
--
|o
|o Pessoas de má fé sa~o aquelas que na~o acreditam em Deus?
|o
|o Fabio Silvestri
|o fabio at informatec.com.br
|o ICQ: 1667351
|o
More information about the sr-users
mailing list