[OpenSIPS-Users] Mediaproxy 2.1.0: dispatcher - relay problems

Magnus Burman magnus.burman at adamoeurope.com
Thu Dec 11 20:13:17 CET 2008


Glad my groggy brain could help. ;)

I did remove the from_tag, but inserted a new one. Reason for this was 
to get caller id to work. Been trying all kinds of PAI och 
Remote-Party-ID now, but nothing works. They tell me the E.164-number 
must be the user-part of the uri, ie sip:123456798 at domain.

In my route I rewrite the from_tag as late as possible, right before the 
t_relay(). Would mediaproxy be happier if I did this some other place, 
say at the very beginning of the routes?

It also boggles me that it says that "from_tag" not found... because 
it's clearly present. Would it say the same if it didn't understand the 
from_tag? If I remove mediaproxy (which I for my life don't want to do, 
much love your way for this product!), my calls are setup fine, 
caller-id is working and the rtp-data is sent correctly. So with my 
limited knowledge I don't understand why mediaproxy would object...

Again, thanks for a lovely product!

//Magnus

Dan Pascu wrote:
> Thanks for the report. The problem is indeed that you removed the from_tag 
> which is mandatory. However there was also some inaccurate handling in 
> this case which I had to fix (which become obvious thanks to the trace 
> you provided). I will make a new release in the next days as I still have 
> to wait for another bugfix to become available first.
>
> On Tuesday 09 December 2008, Magnus Burman wrote:
>   
>> Found the error... my modification of the from-header must be faulty,
>> cut out the if-clause below and everything works!
>>
>> Note to self, get some sleep before asking stupid questions... ;)
>>
>> Best Regards,
>> Magnus
>>
>> Magnus Burman wrote:
>>     
>>> Having some troubles getting Mediaproxy 2.1.0 working. I'm on a VPS
>>> with a fresh Debian Etch, running OpenSips 1.4.3 (which log below is
>>> for, also tried Kamailio 1.4.1 earlier [separate debian
>>> installation], log was pretty much identical).
>>>
>>> Best Regards,
>>> Magnus
>>>
>>> --- syslog ---
>>> Dec  9 01:01:30 host001 media-relay[2492]:
>>> [RelayClientProtocol,client] error: Required header "from_tag" for
>>> command "update" not found
>>>
>>> route[1] {
>>>    ## Forward statefully
>>>    # Find users caller-id
>>>    if(avp_db_query("select call_id from subscriber_extras where
>>> username = '$fU'", "$avp(s:cid)")) {
>>>        remove_hf("From");
>>>        append_hf("From: <sip:$avp(s:cid)@<opensips ip>>\r\n", "To");
>>>    }
>>>    setflag(1);
>>>    if (!t_relay()) {
>>>        sl_reply_error();
>>>    };
>>>    exit;
>>> }
>>>       
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>     
>
>
>
>   



More information about the Users mailing list