Hi!
I am planning to set up a centralized speed dial service for a 2-layer proxy
hierarchy.
The design should look like these:
PSTN
|
|
UA --> LOCAL_SP --> MAIN-PROXY <-- LOCAL_SP <-- UA
|
|
UA --> LOCAL_SP ------
|
|
PSTN
... and many many more local SIP Proxys (LOCAL_SP).
Any branch has a local SIP-Proxy which functions also as a PSTN-Gateway and
will route local calls, whether they are from inside or from the PSTN. The
users are configured on the local SIP-Proxy, which will also register these
user on a REGISTER-Request also on the centralized SIP-Proxy.
The Speed dial database should contain internal as well as external (PSTN)
numbers.
The tricky thing is, that the users have to use their local PSTN Gateway,
when they want to make off-net calls.
The call flow must like these:
UA -INVITE-> LOCAL_SP -INVITE-> MAIN-PROXY -> DB-Lookup for speed dial-alias
MAIN-PROXY --301_RESPONSE--> LOCAL_SP --301_RESPONSE--> UA -> Setup new call
with info from new contact header
Does anybody now how to setup OpenSER, that he will execute a DB lookup for
the user part of the R-URI and answers with a 301 response and the new
address in the contact header?
May I think the routing must look like this:
Route[x] {
NEW_URI = get_alias_for(1234);
append_branch(NEW_URI);
sl_send_reply("301" , "Number found");
}
But how to set up and querie the database?
Thx
Reto
Hi,
I am using asterisk as PSTN gateway for users registered with OpenSER.
Everything is working well for a single domain, but I will have problems
with this when I add extra domains.
I will have multiple domains using the OpenSER server, all using the
same set of Asterisk servers for PSTN. My problem is that when
user@domain1 gets sent to Asterisk, they are authenticated as just
"user" (i.e. the domain portion is stripped off) and they get registered
under the [user] sip name in Asterisk.
Now, when I add the second domain, and user@domain2 goes to Asterisk,
they also will appear to Asterisk to be [user]
I think what I need to do is rewrite the From: URI to be user_domain1
and user_domain2 and then set them up in Asterisk as [user_domain1] and
[user_domain2] so that they are unique
So, my questions are: is this the correct/only way to do this, and if
so, what do I need to do to achieve this?
Many thanks.
--
-Barry Flanagan
i know i can multiple register on a sip proxy with same account at same
time from different locations. And both of them can call different
numbers. But i want to only one client can call, other one will block
during first one's conversation and second one will recive "not
acceptable" response.
is it possible and can you give a configuration example.
regards,
itunali
In what case will cause the following error response. Does it happen
in call forwarding?
481 - Call Leg Transcation does Not Exist
Do I need to handle it or just ignore it?
i know i can multiple register on a sip proxy with same account at same
time from different locations. And both of them can call different
numbers. But i want to only one client can call, other one will block
during first one's conversation and second one will recive "not
acceptable" response.
is it possible and can you give a configuration example.
regards,
itunali
Hi all,
Looking to get a way to replace the From field in a REGISTER message to the
forward on to another Registrar, as a third party registration
I've tried something along the lines of:
If (subs("/(^From:)([ ]*)/\1 sip:newaddress@new.server/I"))
log(1,"Match!\n");
else
log(1,"No match\n");
I basically need help with the Regex syntax and a good means of checking -
is egrep or sed a good means of testing?
Thanks.....
Neill...;o)
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0603-2, 17/01/2006
Tested on: 1/18/2006 11:16:18
avast! - copyright (c) 1988-2004 ALWIL Software.
http://www.avast.com
Hello,
I am trying to filter out requests going to some IPs. So, I have a
branch_route block where I drop the branches that go to the IPs
I want to block. After the t_on_branch command I call t_relay. This
works fine if the callee has registered with at least one "good" IP.
If the callee has registered with only one IP which I want to block then
there is only one branch that is getting droped. The following
t_relay results in a 500 Server error.
Is there a way to check if all branches have been dropped? I tried using
isdsturiset() but it did not work.
Even if there is only one branch and this branch has been dropped,
isdsturiset() returns true. Is this correct or am I wrong somewhere?
thank you for any help
George
Disclaimer
The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.