[SR-Users] Re: where add contact header to ack for fail messages

2023-05-11 Thread mohsen khashei
I know that now. I just needed contact string for further processing so I
put it to a p header

On Thu, May 11, 2023, 16:39 Olle E. Johansson  wrote:

>
>
> > On 11 May 2023, at 12:31, Henning Westerholt  wrote:
> >
> > Hello,
> >
> > why you actually need to add the Contact header to the ACK? According to
> the RFC 3261 is should be an optional header to that message.
> >
> For a failure message there can not be any Contact header. Never. There’s
> no one to contact!
>
> /O
> > Cheers,
> >
> > Henning
> >
> > -Original Message-
> > From: James Browne 
> > Sent: Mittwoch, 10. Mai 2023 14:08
> > To: Kamailio (SER) - Users Mailing List 
> > Subject: [SR-Users] Re: where add contact header to ack for fail messages
> >
> > I made simple tests and it seems that this is a kamailio-TM-internal
> message being sent, not being processed by the cfg file.
> >
> > If this is simple enough and deterministic, you may consider using the
> corex module to edit the message as it's being sent "on the wire". I can't
> think of any other solution.
> >
> https://kamailio.org/docs/modules/5.6.x/modules/corex.html#corex.evr.network_msg
> > You may be able to write some code that manipulates the message to
> manually add the Contact header. Maybe even the append_hf function may work
> here, but it seems unlikely.
> >
> > James
> >
> > On Mon, 8 May 2023 at 12:28, mohsen khashei  wrote:
> >>
> >> thanks for the reply I tried it and it didn't work. also I tried
> onsend_route with no luck.
> >>
> >> On Sun, May 7, 2023 at 7:00 PM Yuriy G  wrote:
> >>>
> >>> Try here
> >>> https://www.kamailio.org/docs/modules/5.6.x/modules/tm.html#tm.e.loca
> >>> l-request
> >>>
> >>> However I would doubt first do I do something right by adding contact
> to ACK message wichbasicaly confirmation of the final transaction and
> contact here is meaningless.
> >>>
> >>> On Sun, 7 May 2023, 16:48 mohsen khashei,  wrote:
> >>>>
> >>>> Hi I want to know where kamailio sends ack messages to faiurel
> messages (status >=400) so that I I add Contact header to the ack.
> >>>> I tried WITHINDLG with no luck.
> >>>> thanks
> >>>> __
> >>>> Kamailio - Users Mailing List - Non Commercial Discussions To
> >>>> unsubscribe send an email to sr-users-le...@lists.kamailio.org
> >>>> Important: keep the mailing list in the recipients, do not reply only
> to the sender!
> >>>> Edit mailing list options or unsubscribe:
> >>>
> >>> __
> >>> Kamailio - Users Mailing List - Non Commercial Discussions To
> >>> unsubscribe send an email to sr-users-le...@lists.kamailio.org
> >>> Important: keep the mailing list in the recipients, do not reply only
> to the sender!
> >>> Edit mailing list options or unsubscribe:
> >>
> >> __
> >> Kamailio - Users Mailing List - Non Commercial Discussions To
> >> unsubscribe send an email to sr-users-le...@lists.kamailio.org
> >> Important: keep the mailing list in the recipients, do not reply only
> to the sender!
> >> Edit mailing list options or unsubscribe:
> > __
> > Kamailio - Users Mailing List - Non Commercial Discussions To
> unsubscribe send an email to sr-users-le...@lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> > Edit mailing list options or unsubscribe:
> > __
> > Kamailio - Users Mailing List - Non Commercial Discussions
> > To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> > Edit mailing list options or unsubscribe:
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: where add contact header to ack for fail messages

2023-05-11 Thread Olle E. Johansson


> On 11 May 2023, at 12:31, Henning Westerholt  wrote:
> 
> Hello,
> 
> why you actually need to add the Contact header to the ACK? According to the 
> RFC 3261 is should be an optional header to that message.
> 
For a failure message there can not be any Contact header. Never. There’s no 
one to contact!

/O
> Cheers,
> 
> Henning
> 
> -Original Message-
> From: James Browne  
> Sent: Mittwoch, 10. Mai 2023 14:08
> To: Kamailio (SER) - Users Mailing List 
> Subject: [SR-Users] Re: where add contact header to ack for fail messages
> 
> I made simple tests and it seems that this is a kamailio-TM-internal message 
> being sent, not being processed by the cfg file.
> 
> If this is simple enough and deterministic, you may consider using the corex 
> module to edit the message as it's being sent "on the wire". I can't think of 
> any other solution.
> https://kamailio.org/docs/modules/5.6.x/modules/corex.html#corex.evr.network_msg
> You may be able to write some code that manipulates the message to manually 
> add the Contact header. Maybe even the append_hf function may work here, but 
> it seems unlikely.
> 
> James
> 
> On Mon, 8 May 2023 at 12:28, mohsen khashei  wrote:
>> 
>> thanks for the reply I tried it and it didn't work. also I tried 
>> onsend_route with no luck.
>> 
>> On Sun, May 7, 2023 at 7:00 PM Yuriy G  wrote:
>>> 
>>> Try here
>>> https://www.kamailio.org/docs/modules/5.6.x/modules/tm.html#tm.e.loca
>>> l-request
>>> 
>>> However I would doubt first do I do something right by adding contact to 
>>> ACK message wichbasicaly confirmation of the final transaction and contact 
>>> here is meaningless.
>>> 
>>> On Sun, 7 May 2023, 16:48 mohsen khashei,  wrote:
>>>> 
>>>> Hi I want to know where kamailio sends ack messages to faiurel messages 
>>>> (status >=400) so that I I add Contact header to the ack.
>>>> I tried WITHINDLG with no luck.
>>>> thanks
>>>> __
>>>> Kamailio - Users Mailing List - Non Commercial Discussions To 
>>>> unsubscribe send an email to sr-users-le...@lists.kamailio.org
>>>> Important: keep the mailing list in the recipients, do not reply only to 
>>>> the sender!
>>>> Edit mailing list options or unsubscribe:
>>> 
>>> __
>>> Kamailio - Users Mailing List - Non Commercial Discussions To 
>>> unsubscribe send an email to sr-users-le...@lists.kamailio.org
>>> Important: keep the mailing list in the recipients, do not reply only to 
>>> the sender!
>>> Edit mailing list options or unsubscribe:
>> 
>> __
>> Kamailio - Users Mailing List - Non Commercial Discussions To 
>> unsubscribe send an email to sr-users-le...@lists.kamailio.org
>> Important: keep the mailing list in the recipients, do not reply only to the 
>> sender!
>> Edit mailing list options or unsubscribe:
> __
> Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe 
> send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: where add contact header to ack for fail messages

2023-05-11 Thread Henning Westerholt
Understood. Thanks for sharing your final solution, added the list as well that 
others can benefit from it.

Cheers,

Henning

From: mohsen khashei 
Sent: Donnerstag, 11. Mai 2023 12:37
To: Henning Westerholt 
Subject: Re: [SR-Users] Re: where add contact header to ack for fail messages

I need it for an application server after kamailio. Finally I add contact to 
the message by ac_extra_hdrs of tm module with a p header.

On Thu, May 11, 2023, 15:01 Henning Westerholt 
mailto:h...@gilawa.com>> wrote:
Hello,

why you actually need to add the Contact header to the ACK? According to the 
RFC 3261 is should be an optional header to that message.

Cheers,

Henning

-Original Message-
From: James Browne mailto:ja...@frideo.com>>
Sent: Mittwoch, 10. Mai 2023 14:08
To: Kamailio (SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Subject: [SR-Users] Re: where add contact header to ack for fail messages

I made simple tests and it seems that this is a kamailio-TM-internal message 
being sent, not being processed by the cfg file.

If this is simple enough and deterministic, you may consider using the corex 
module to edit the message as it's being sent "on the wire". I can't think of 
any other solution.
https://kamailio.org/docs/modules/5.6.x/modules/corex.html#corex.evr.network_msg
You may be able to write some code that manipulates the message to manually add 
the Contact header. Maybe even the append_hf function may work here, but it 
seems unlikely.

James

On Mon, 8 May 2023 at 12:28, mohsen khashei 
mailto:mkhas...@gmail.com>> wrote:
>
> thanks for the reply I tried it and it didn't work. also I tried onsend_route 
> with no luck.
>
> On Sun, May 7, 2023 at 7:00 PM Yuriy G 
> mailto:ovoshl...@gmail.com>> wrote:
>>
>> Try here
>> https://www.kamailio.org/docs/modules/5.6.x/modules/tm.html#tm.e.loca
>> l-request
>>
>> However I would doubt first do I do something right by adding contact to ACK 
>> message wichbasicaly confirmation of the final transaction and contact here 
>> is meaningless.
>>
>> On Sun, 7 May 2023, 16:48 mohsen khashei, 
>> mailto:mkhas...@gmail.com>> wrote:
>>>
>>> Hi I want to know where kamailio sends ack messages to faiurel messages 
>>> (status >=400) so that I I add Contact header to the ack.
>>> I tried WITHINDLG with no luck.
>>> thanks
>>> __
>>> Kamailio - Users Mailing List - Non Commercial Discussions To
>>> unsubscribe send an email to 
>>> sr-users-le...@lists.kamailio.org<mailto:sr-users-le...@lists.kamailio.org>
>>> Important: keep the mailing list in the recipients, do not reply only to 
>>> the sender!
>>> Edit mailing list options or unsubscribe:
>>
>> __
>> Kamailio - Users Mailing List - Non Commercial Discussions To
>> unsubscribe send an email to 
>> sr-users-le...@lists.kamailio.org<mailto:sr-users-le...@lists.kamailio.org>
>> Important: keep the mailing list in the recipients, do not reply only to the 
>> sender!
>> Edit mailing list options or unsubscribe:
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions To
> unsubscribe send an email to 
> sr-users-le...@lists.kamailio.org<mailto:sr-users-le...@lists.kamailio.org>
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send 
an email to 
sr-users-le...@lists.kamailio.org<mailto:sr-users-le...@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: where add contact header to ack for fail messages

2023-05-11 Thread Henning Westerholt
Hello,

why you actually need to add the Contact header to the ACK? According to the 
RFC 3261 is should be an optional header to that message.

Cheers,

Henning

-Original Message-
From: James Browne  
Sent: Mittwoch, 10. Mai 2023 14:08
To: Kamailio (SER) - Users Mailing List 
Subject: [SR-Users] Re: where add contact header to ack for fail messages

I made simple tests and it seems that this is a kamailio-TM-internal message 
being sent, not being processed by the cfg file.

If this is simple enough and deterministic, you may consider using the corex 
module to edit the message as it's being sent "on the wire". I can't think of 
any other solution.
https://kamailio.org/docs/modules/5.6.x/modules/corex.html#corex.evr.network_msg
You may be able to write some code that manipulates the message to manually add 
the Contact header. Maybe even the append_hf function may work here, but it 
seems unlikely.

James

On Mon, 8 May 2023 at 12:28, mohsen khashei  wrote:
>
> thanks for the reply I tried it and it didn't work. also I tried onsend_route 
> with no luck.
>
> On Sun, May 7, 2023 at 7:00 PM Yuriy G  wrote:
>>
>> Try here
>> https://www.kamailio.org/docs/modules/5.6.x/modules/tm.html#tm.e.loca
>> l-request
>>
>> However I would doubt first do I do something right by adding contact to ACK 
>> message wichbasicaly confirmation of the final transaction and contact here 
>> is meaningless.
>>
>> On Sun, 7 May 2023, 16:48 mohsen khashei,  wrote:
>>>
>>> Hi I want to know where kamailio sends ack messages to faiurel messages 
>>> (status >=400) so that I I add Contact header to the ack.
>>> I tried WITHINDLG with no luck.
>>> thanks
>>> __
>>> Kamailio - Users Mailing List - Non Commercial Discussions To 
>>> unsubscribe send an email to sr-users-le...@lists.kamailio.org
>>> Important: keep the mailing list in the recipients, do not reply only to 
>>> the sender!
>>> Edit mailing list options or unsubscribe:
>>
>> __
>> Kamailio - Users Mailing List - Non Commercial Discussions To 
>> unsubscribe send an email to sr-users-le...@lists.kamailio.org
>> Important: keep the mailing list in the recipients, do not reply only to the 
>> sender!
>> Edit mailing list options or unsubscribe:
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions To 
> unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send 
an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: where add contact header to ack for fail messages

2023-05-10 Thread James Browne
I made simple tests and it seems that this is a kamailio-TM-internal
message being sent, not being processed by the cfg file.

If this is simple enough and deterministic, you may consider using the
corex module to edit the message as it's being sent "on the wire". I
can't think of any other solution.
https://kamailio.org/docs/modules/5.6.x/modules/corex.html#corex.evr.network_msg
You may be able to write some code that manipulates the message to
manually add the Contact header. Maybe even the append_hf function may
work here, but it seems unlikely.

James

On Mon, 8 May 2023 at 12:28, mohsen khashei  wrote:
>
> thanks for the reply I tried it and it didn't work. also I tried onsend_route 
> with no luck.
>
> On Sun, May 7, 2023 at 7:00 PM Yuriy G  wrote:
>>
>> Try here
>> https://www.kamailio.org/docs/modules/5.6.x/modules/tm.html#tm.e.local-request
>>
>> However I would doubt first do I do something right by adding contact to ACK 
>> message wichbasicaly confirmation of the final transaction and contact here 
>> is meaningless.
>>
>> On Sun, 7 May 2023, 16:48 mohsen khashei,  wrote:
>>>
>>> Hi I want to know where kamailio sends ack messages to faiurel messages 
>>> (status >=400) so that I I add Contact header to the ack.
>>> I tried WITHINDLG with no luck.
>>> thanks
>>> __
>>> Kamailio - Users Mailing List - Non Commercial Discussions
>>> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
>>> Important: keep the mailing list in the recipients, do not reply only to 
>>> the sender!
>>> Edit mailing list options or unsubscribe:
>>
>> __
>> Kamailio - Users Mailing List - Non Commercial Discussions
>> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
>> Important: keep the mailing list in the recipients, do not reply only to the 
>> sender!
>> Edit mailing list options or unsubscribe:
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: where add contact header to ack for fail messages

2023-05-08 Thread mohsen khashei
thanks for the reply I tried it and it didn't work. also I
tried onsend_route with no luck.

On Sun, May 7, 2023 at 7:00 PM Yuriy G  wrote:

> Try here
>
> https://www.kamailio.org/docs/modules/5.6.x/modules/tm.html#tm.e.local-request
>
> However I would doubt first do I do something right by adding contact to
> ACK message wichbasicaly confirmation of the final transaction and contact
> here is meaningless.
>
> On Sun, 7 May 2023, 16:48 mohsen khashei,  wrote:
>
>> Hi I want to know where kamailio sends ack messages to faiurel messages
>> (status >=400) so that I I add Contact header to the ack.
>> I tried WITHINDLG with no luck.
>> thanks
>> __
>> Kamailio - Users Mailing List - Non Commercial Discussions
>> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
>> Important: keep the mailing list in the recipients, do not reply only to
>> the sender!
>> Edit mailing list options or unsubscribe:
>>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: where add contact header to ack for fail messages

2023-05-07 Thread Yuriy G
Try here
https://www.kamailio.org/docs/modules/5.6.x/modules/tm.html#tm.e.local-request

However I would doubt first do I do something right by adding contact to
ACK message wichbasicaly confirmation of the final transaction and contact
here is meaningless.

On Sun, 7 May 2023, 16:48 mohsen khashei,  wrote:

> Hi I want to know where kamailio sends ack messages to faiurel messages
> (status >=400) so that I I add Contact header to the ack.
> I tried WITHINDLG with no luck.
> thanks
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe: