<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Takeshi,<br>
<br>
This was something easy to do so I added the support for this - I
extended the client_info structure with 3 more fields: to_dname,
from_dname ( here you should put the display name) and req_uri for
Request URI. The to_uri and from_uri fields must really contain a URI. <br>
Check it out.<br>
It would be nice if you would also make your perl/lua code controlling
b2b_entities module public. <br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">--
Anca Vamanu
<a class="moz-txt-link-abbreviated" href="http://www.voice-system.ro">www.voice-system.ro</a></pre>
<br>
<br>
On 07/19/2010 07:07 AM, mayamatakeshi wrote:
<blockquote
cite="mid:AANLkTik9F4EEvQogMVqSp6jDzFcypAwN61a8HGHXQDI3@mail.gmail.com"
type="cite">Hello,<br>
I'm playing with the module b2b_entities. I was thinking in writing
some perl/lua code to control UA entities provided by this module.<br>
However, I am seeing some shortcomings/bugs in it:<br>
<br>
1) If I pass <br>
"\"user1\"<<a moz-do-not-send="true"
href="mailto:sip%3Auser1@test1.com">sip:user1@test1.com</a>>" as
from_uri to function client_new, it will be rendered as this in the
request:<br>
From: <"user1"<<a moz-do-not-send="true"
href="mailto:sip%3Auser1@test1.com">sip:user1@test1.com</a>>>;tag=a34656f511fe5edd5d76196c64f246a7-aba5<br>
<br>
(obs: to_uri is free from this problem:<br>
to_uri = "\"user2\"<<a moz-do-not-send="true"
href="mailto:sip%3Auser2@192.168.2.126">sip:user2@192.168.2.126</a>>"
-> To: "user2"<<a moz-do-not-send="true"
href="mailto:sip%3Auser2@192.168.2.126">sip:user2@192.168.2.126</a>>)<br>
<br>
2) function client_new doesn't permit to specify the Request-URI. There
are situations where Request-URI will have to be set differently from
To-Uri (I know at least the case where some PSTN-GWs recognises
RURI-Username != To-URI-Username as redirection indication).<br>
<br>
I just thought to highlight those points, so that they could be
improved in the future.<br>
<br>
regards,<br>
takeshi<br>
<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>