[OpenSIPS-Users] Changing R-URI depending on the destination
toyimads at gmail.com
Tue Mar 1 15:42:40 CET 2011
Just to let you know why i have to change destiny...
I have gateways RTB, R2, ISDN, QGIS, etc...
If A in PROXY_A wants to call B (B at PROXY_B) on PROXY_B, PROXY_A will have
many routes to reachto usear B, like the following:
directly from PROXY_A to PROXY_B, if it fails for some reason then:
from PROXY_A to ISDN_GW ---> ISDN_B_GW...
In the last case i have to change the R-URI "B at PROXY_B" to
ISDN_NUMBER_ASSIGNED_TO_B at ISDN_GW so it can reach the isdn GW and then
converts this to isdn signaling to communicate with ISDN_B_GW
Does the dialplan module can do this? i mean, assign on-the-flight variables
to change the user-id of the R-URI depending on the destination selected?
2011/3/1 Bogdan-Andrei Iancu <bogdan at opensips.org>
> Hi Toyima,
> you have 2 things here:
> - domain routing - this is automatically done via DNS based forwarding
> - username routing - not sure why you want to change the dialed username,
> but if there is not mapping logic for (B->12345 , C->47896, etc) you can use
> aliases or dialplan module for translating these usernames.
> Toyima Dias wrote:
>> I'm having doubts with the following architecture:
>> A calls B with the R-URI: B at PROXY_B <mailto:B at PROXY_B>
>> This will reach at PROXY_A; but here i need to make some dinamic
>> if the destiny is B at PROXY_B <mailto:B at PROXY_B> i must set the R-URI with
>> a number: 12345 at PROXY_B <mailto:12345 at PROXY_B>
>> If the destiny is C at PROXY_B <mailto:C at PROXY_B> i must set the R-URI like
>> this: 47896 at PROXY_B <mailto:47896 at PROXY_B>
>> Setting different routes on the script is not the best way, bacause i
>> won't define routes for every destination at the same domain. Dinamyc
>> routing should help and also avps i guess, am i right? what should i check
>> to accomplish this?
>> Using Remote-Party-ID or/and P-Asserted-Identity will also help?
>> Any clarification will be much appreciated!
>> Users mailing list
>> Users at lists.opensips.org
> Bogdan-Andrei Iancu
> OpenSIPS eBootcamp - 28th February 2011
> OpenSIPS solutions and "know-how"
> Users mailing list
> Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users