Hello,

On 08/22/06 17:49, Andrew And wrote:
I am using redirect with ENUM, and am I wanting to know if my code is correct, then I write the code below. Could someone help me please? .
.
.

 } else if (method=="INVITE") {  # If Invite is to ENUM.

# Block ENUM

                prefix("+");
                enum_query("e164.arpa.");

#Redirect

               sl_send_reply("300","Redirect");

                return;

 };


yes, it is pretty much, enum_query() rewrites the R-URI which is added as contact in 3xx replies. The only fix you should do is to test if enum_query() returns true -- this is the case when the ENUM lookup returned a new contact address.

Cheers,
Daniel

------------------------------------------------------------------------

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to