FW: [Serusers] Ser+RTPproxy+Asterisk

Alex Bligh alex at alex.org.uk
Wed Jun 9 11:15:08 CEST 2004


Sanjay,

1. It looks, from the indentation, like there is a missing close
   brace at **** below. This would imply (as ser didn't error the
   configuration file) that there is a missing open-brace too,
   but I couldn't see it. Try fixing that and check the braces.

2. It would be interesting to know which sl_send_reply() errored.
   Let's see if it is the sl_send_reply() at the start of route[1].
   Can you comment out the if (uri=~ ...) block (i.e. the if statement
   the sl_send_reply, the break, and the close brace) and see if it
   makes any difference. I'm not saying it will fix it but it might
   change the error message. I suspect what is happening here is the
   loose_route() stuff is activated for subsequent messages within
   a dialog, and the sl_send_reply (which is really meant to detect
   a NAT in between it and the IP address to which it is replying) is
   being falsely activated (as both ser and either the UA, or the
   "outside" address of the downstream NAT, are in your case on private
   IPs). That's what I thought would be happening the first time but
   Klaus picked up a more fundamental error...

Alex

>> # Uncomment this if you want to use digest authentication
>> #                       if (!www_authorize("iptel.org", "subscriber")) {
>> #                               www_challenge("iptel.org", "0");
>> #                               break;
>> #                       };
>>                         save("location");
>>                         break;
>>                 };
>>                 lookup("aliases");
>>                 if (!uri==myself) {
>>                         append_hf("P-hint: outbound alias\r\n");
>>                         route(1);
>>                         break;

***** Missing "}"

>>                 # native SIP destinations are handled using our USRLOC DB
>>                 if (!lookup("location")) {
>>                         sl_send_reply("404", "Not Found");
>>                         break;
>>                 };


Alex




More information about the sr-users mailing list