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 ?
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 De que adianta ter olhos verdes, se a natureza encarrega-se de |o deixa-los vermelhos. -- Jimmy Clify |o |o Fabio Silvestri |o fabio@informatec.com.br |o ICQ: 1667351 |o
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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 ?
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@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 ?
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@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 ?