[Users] failure route doubts

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Oct 27 16:25:36 CEST 2006


Hi Jose,

no, there is noway to remove or modify a lump already added (at least 
not from script). You can to take care not to add prior to branch_route 
some lumps you might need to remove in branch_route!.

regards,
bogdan

Jose Silva wrote:

> Hi,
> I am using the branch_route but I still have a problem...
> The message I have access to has a lump, and what I want to change is
> the content of that lump. Is there a way I can do this, or is there a
> way to remove all the lumps via script and add the content that I want
> afterwards?
>
>
> Thanks,
> Jose Silva
>
>
> 2006/8/22, Bogdan-Andrei Iancu <bogdan at voice-system.ro>:
>
>> Hi Jose,
>>
>> you have a transaction with multiple branches. If you want to add
>> something specific per branch, use the branch route (you need to arm it
>> before t_relay).
>>
>> regards,
>> bogdan
>>
>> Jose Silva wrote:
>>
>> > Hi, I'm having some doubts on how to use/do some things with
>> > dispatcher module and failure route.
>> > I'll try to explain my problem.
>> > On my main route block I select the destination (using ds_select_dst)
>> > to where I want to send the message, and indicate that responses
>> > should pass through the failure_route, I also add a header with some
>> > things that are needed by the next proxy. On the failure route when I
>> > get 408 Time Out I mark the previous destination and select the next
>> > destination. until here everything goes fine. After this I want to
>> > change the message that I'm going to send to next proxy, for this I
>> > need to remove the header that I inserted previously on the main route
>> > block and access the destination URI that the ds_next_dst updates.
>> > My first doubt is that when I print the destination URI  it has the
>> > previous destination ( the one used in the main route block) but when
>> > it relay's the message it goes to the right destination (the one
>> > returned from ds_next_dst), Is there any reason for this ? I'm using
>> > $du to access it, is this wrong?
>> > My second doubt is, what sip message do I have access to in the
>> > failure route (the one I received or the one I sent out)? I ask this
>> > because I try to remove the header I inserted in the main route block
>> > and it does not remove anything but when I relay the message the
>> > header I tried to remove goes on the message.
>> >
>> >
>> > Thanks in advance,
>> > José Carlos Silva
>> >
>> > _______________________________________________
>> > Users mailing list
>> > Users at openser.org
>> > http://openser.org/cgi-bin/mailman/listinfo/users
>> >
>> >
>>
>>





More information about the sr-users mailing list