[OpenSIPS-Users] 488 Not acceptable here

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Apr 15 15:01:00 CEST 2009


Indeed, this will be an idea - can you open a bug or feature request on 
this?

Thanks and regards,
Bogdan

Brett Nemeroff wrote:
> Bogdan,
> I know this may be beside the point here, but it seems like it should
> be pretty easy to make the rtpproxy module not allow this, or to at
> least spit out an error saying that it's been set already.  Point
> being, the result of this scripting error isn't obvious what was done
> wrong.
>
> Just a thought.. I've done this by mistake before as well...
> -Brett
>
>
> On Wed, Apr 15, 2009 at 5:38 AM, Bogdan-Andrei Iancu
> <bogdan at voice-system.ro> wrote:
>   
>> Hi,
>>
>> Looking at the SIP trace, I can see you do serial forking - you do set
>> the RTProxy for the first branch (sending to 192.168.10.19:5060) and
>> probably you do it again in failure route when you create the second branch.
>>
>> You cannot call force_rtp_proxy() twice for the same message - this is
>> why you get the double IPs.
>>
>> Regards,
>> Bogdan
>>
>>
>> troxlinux wrote:
>>     
>>> 2009/4/13 Bogdan-Andrei Iancu <bogdan at voice-system.ro>:
>>>
>>>       
>>>> Hi,
>>>>
>>>>         
>>> Hi Bogdan
>>>
>>>
>>>       
>>>> But the INVITE seams to go twice through some NAT logic as I see the
>>>> "a=nortpproxy:yes" header twice. Can you upload somewhere the entire SIP
>>>> trace (inbound and outbound part) ?
>>>>
>>>>
>>>>         
>>> do I see that the opensips writes me twice the address ip in the sdp,
>>> like I can I remove this?
>>>
>>>                 route[10] {
>>>                 #from an internal domain -> inbound
>>>         #Native SIP destinations are handled using the location table
>>>         append_hf("P-hint: inbound->inbound \r\n");
>>>         if (uri=~"^sip:9[0-9]*@") {
>>>         if (is_user_in("credentials", "local")){
>>>         route(4);
>>>         exit;
>>>         } else {
>>>                 sl_send_reply("403", "No tienes permiso para llamadas locales");
>>>                 exit;
>>>                         };
>>>                                 };
>>>
>>>                 if (!lookup("location")) {
>>>                 xlog("L_INFO","$C(rx)404 User Not Found $C(xx)\n");
>>>                 if (does_uri_exist()) {
>>>                 revert_uri();
>>>                 prefix("u");
>>>                 rewritehostport("192.168.10.3:5070");
>>>                 route(1);
>>>                 } else {
>>>                 sl_send_reply("404", "Not Found");
>>>         exit;
>>>         };
>>>                 sl_send_reply("404", "Not Found");
>>>                 exit;
>>>                 };
>>>
>>>                 route(1);
>>>         }
>>>
>>>         route[11] {
>>> # from an internal domain -> outbound
>>> # Simply route the call outbound using DNS search
>>>         append_hf("P-hint: inbound->outbound \r\n");
>>>         route(1);
>>>         }
>>>         route[12] {
>>> # From an external domain -> inbound
>>> # Verify aliases, if found replace R-URI.
>>>         lookup("aliases");
>>>         if (!lookup("location")) {
>>>         xlog("L_INFO", "$C(rx)404 Lo siento usuario no encontrado $C(xx)\n");
>>>         sl_send_reply("404", "Not Found");
>>>         exit;
>>>         };
>>>         route(1);
>>>         }
>>>         route[13] {
>>> #From an external domain outbound
>>> #we are not accepting these calls
>>>         append_hf("P-hint: outbound->inbound \r\n");
>>>         sl_send_reply("403", "Forbidden");
>>>         exit;
>>>         }
>>>
>>>
>>>         route[4] {
>>>         rewritehostport("192.168.10.3:5070");
>>>         route(1);
>>>
>>>
>>>
>>> I attach  the sip log
>>>
>>> regardss
>>>
>>>
>>>       
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>     
>
>   




More information about the Users mailing list