Hi,
If there are multiple branches, will avp_write("$ruri/username","i:123") generate multiple avps with each for one branch? Or it only grabs the first one?
Thanks, Richard
Hi Richard,
only the RURI will be written into AVP - the branches will be ignored. Do you see a case for this? because it can be implemented quite easy.....
regards, bogdan
Richard Z wrote:
Hi,
If there are multiple branches, will avp_write("$ruri/username","i:123") generate multiple avps with each for one branch? Or it only grabs the first one?
Thanks, Richard
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
If it helps, the first branch and the comma separated list of all branches can be written in an AVP using the pseudo-variables $br and $bR with avp_printf() - http://www.voice-system.ro/docs/avpops/ar01s06.html#avp_printf .
Daniel
On 08/19/05 11:13, Bogdan-Andrei Iancu wrote:
Hi Richard,
only the RURI will be written into AVP - the branches will be ignored. Do you see a case for this? because it can be implemented quite easy.....
regards, bogdan
Richard Z wrote:
Hi,
If there are multiple branches, will avp_write("$ruri/username","i:123") generate multiple avps with each for one branch? Or it only grabs the first one?
Thanks, Richard
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
The application of this is for checking if any of the branches ip address same as the source ip,
http://www.voice-system.ro/docs/avpops/ar01s08.html#ex_org_dst
If all of them are the same as src_ip, I can have the media going directly between UAs.
Bogdan, is avp_print capable of implementing this?
Thanks, Richard
On 8/18/05, Daniel-Constantin Mierla daniel@voice-system.ro wrote:
If it helps, the first branch and the comma separated list of all branches can be written in an AVP using the pseudo-variables $br and $bR with avp_printf() - http://www.voice-system.ro/docs/avpops/ar01s06.html#avp_printf .
Daniel
On 08/19/05 11:13, Bogdan-Andrei Iancu wrote:
Hi Richard,
only the RURI will be written into AVP - the branches will be ignored. Do you see a case for this? because it can be implemented quite easy.....
regards, bogdan
Richard Z wrote:
Hi,
If there are multiple branches, will avp_write("$ruri/username","i:123") generate multiple avps with each for one branch? Or it only grabs the first one?
Thanks, Richard
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi Richard,
for NAT traversal, will be more logic to have the media going directly only if *all* branches have same IP with the src IP - you do not know which branch will succeed and you can enable/disable RTP relay for all or for none.
avp_printf() is able to print all branch URIs in a single AVP, but not sure if this will help you.
regards, bogdan
Richard Z wrote:
The application of this is for checking if any of the branches ip address same as the source ip,
http://www.voice-system.ro/docs/avpops/ar01s08.html#ex_org_dst
If all of them are the same as src_ip, I can have the media going directly between UAs.
Bogdan, is avp_print capable of implementing this?
Thanks, Richard
On 8/18/05, Daniel-Constantin Mierla daniel@voice-system.ro wrote:
If it helps, the first branch and the comma separated list of all branches can be written in an AVP using the pseudo-variables $br and $bR with avp_printf() - http://www.voice-system.ro/docs/avpops/ar01s06.html#avp_printf .
Daniel
On 08/19/05 11:13, Bogdan-Andrei Iancu wrote:
Hi Richard,
only the RURI will be written into AVP - the branches will be ignored. Do you see a case for this? because it can be implemented quite easy.....
regards, bogdan
Richard Z wrote:
Hi,
If there are multiple branches, will avp_write("$ruri/username","i:123") generate multiple avps with each for one branch? Or it only grabs the first one?
Thanks, Richard
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi Bogdan,
for NAT traversal, will be more logic to have the media going directly only if *all* branches have same IP with the src IP - you do not know which branch will succeed and you can enable/disable RTP relay for all or for none.
That's right. If all addresses are in a list of avps, i can use avp_check to check 'ne' to verify.
avp_printf() is able to print all branch URIs in a single AVP, but not sure if this will help you.
Not really. If it is not too hard to extend avp_write(), can you please add it?
Thanks, Richard
Hi Richard,
Richard Z wrote:
Hi Bogdan,
for NAT traversal, will be more logic to have the media going directly only if *all* branches have same IP with the src IP - you do not know which branch will succeed and you can enable/disable RTP relay for all or for none.
That's right. If all addresses are in a list of avps, i can use avp_check to check 'ne' to verify.
one more thing - you should check dst_uri and not RURI - RURI may be the private addr when the dst_uri is the public IP.
avp_printf() is able to print all branch URIs in a single AVP, but not sure if this will help you.
Not really. If it is not too hard to extend avp_write(), can you please add it?
It's doable, but I cannot make any time promises since I already have a quite long list with pending stuff to do - but with first occasion, I will go for it....
regards, bogdan
That's right. If all addresses are in a list of avps, i can use avp_check to check 'ne' to verify.
one more thing - you should check dst_uri and not RURI - RURI may be the private addr when the dst_uri is the public IP.
I have better understanding of dst_uri and ruri learned from another email thread. So for natted UA, dst_uri and ruri are in pairs. Would it be useful to save and load both in functions avp_write and avp_pushto? That's the problem I ran into at http://mail.iptel.org/pipermail/serdev/2005-August/005339.html. I tried to send a call to two users by loading both their locations. I first change ruri to user 1, lookup, avp_write to save it. Then I change ruri to user 2, lookup, avp_write to the same avp. At this time, the avp has both users' location. But when I avp_pushto the avp, it only load the ruri, not dst_uri. So the natted UA can't receive the call. This problem can be solved if avp_write and avp_pushto save/load both dst_uri and ruri.
Thanks, Richard
On 08/23/05 10:49, Richard Z wrote:
That's right. If all addresses are in a list of avps, i can use avp_check to check 'ne' to verify.
one more thing - you should check dst_uri and not RURI - RURI may be the private addr when the dst_uri is the public IP.
I have better understanding of dst_uri and ruri learned from another email thread. So for natted UA, dst_uri and ruri are in pairs. Would it be useful to save and load both in functions avp_write and avp_pushto? That's the problem I ran into at http://mail.iptel.org/pipermail/serdev/2005-August/005339.html. I tried to send a call to two users by loading both their locations. I first change ruri to user 1, lookup, avp_write to save it. Then I change ruri to user 2, lookup, avp_write to the same avp. At this time, the avp has both users' location. But when I avp_pushto the avp, it only load the ruri, not dst_uri. So the natted UA can't receive the call. This problem can be solved if avp_write and avp_pushto save/load both dst_uri and ruri.
you can backup the dst_uri (via avp_printf() ) but you cannot restore it at this moment. avp_pushto() has to be extended to support it. I am going to add a few new pseudo-variables in a few days (as discussed on the mailing list) and try to update avp_pushto() as well.
Daniel
Thanks, Richard