Re: [OpenSIPS-Users] local_route & append_hf

2021-01-13 Thread Arsen Semenov
Hi,

The msg you've catched with trace("htid","t") you see it - as it is in the
buffer, before the changes are applied. The diff (removed or appended
headers) is being applied right before the message goes to wires.
So actually your header should be there.

On Wed, Jan 13, 2021 at 5:30 PM Mark Farmer  wrote:

> Hi everyone
>
> I have append_hf in my local_route to add the contact header in for MS
> Teams but the OPTIONS message does not contain the contact header:
>
> OPTIONS sip:sip.pstnhub.microsoft.com:5061 SIP/2.0
> Via: SIP/2.0/TLS xxx.xxx.xxx.xxx:5061;branch=z9hG4bK4e45.15b9f883.0
> To: sip:sip.pstnhub.microsoft.com:5061
> From: ;tag=81adef1f13e5d48c34554037e606a809-cdf9
> CSeq: 14 OPTIONS
> Call-ID: 5918f5195ed9f0cf-315525@10.150.50.110
> Max-Forwards: 70
> Content-Length: 0
> User-Agent: OpenSIPS
>
> if (is_method("OPTIONS") && ($(rd{s.index, $var(dst)}) != NULL))
> xlog("CUSTOM_LOG: local_route Matched OPTIONS to $rd");
> append_hf("Contact:  ;transport=tls>\r\n");
> trace("htid","t");
>
> It seems to be matching just fine:
>
> CUSTOM_LOG: local_route 5
> CUSTOM_LOG: local_route Matched OPTIONS to sip3.pstnhub.microsoft.com
>
> I checked the doc for sipmsgops and append_hf does NOT say that it can be
> used in local_route.
>
> Any ideas?
>
> Many thanks
> Mark.
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Arsen Semenov
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] mid_registrar local contact table

2020-11-18 Thread Arsen Semenov
Hi,

try opensips-cli -x mi ul_dump
or check you location table in case you use db as a back-end storage

On Wed, Nov 18, 2020 at 6:44 PM Ricardo Martinez 
wrote:

> Hi.
>
> I’m using the mid_registrar module as a front end for my local PBX
> registrar Service.
>
> So far I was able to store the contact for a  UAC before it goes to the
> REGISTRAR server.
>
> Is there a way to display or search the contacts stored in that table
> through the console?
>
>
>
> Thanks,
>
> *Ricardo Martinez.-*
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Arsen Semenov
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Dispatcher. Disable ping for particular entry/GW.

2020-06-29 Thread Arsen Semenov
Igor,
you are right it will switch to proing state
https://github.com/OpenSIPS/opensips/blob/master/modules/dispatcher/dispatch.c#L2489

If I got you right, here you should have a gw state which won't be selected
for probing.
https://github.com/OpenSIPS/opensips/blob/master/modules/dispatcher/dispatch.c#L2530

On Mon, Jun 29, 2020 at 3:18 PM Igor Pavlov 
wrote:

> Hi solarmon,
>
> Yes, I have tried. It will not help, because when you set GW in 'active'
> state and GW is not able to respond to OPTIONS (because GW is not supported
> pinging) it will automatically switched to 'Probing\Inactive' state.
>
> пн, 29 июн. 2020 г. в 12:27, solarmon :
>
>> Hi Igor,
>>
>> Have you tried using the ds_set_state MI command?
>>
>> (for 2.4.x)
>>
>> https://opensips.org/html/docs/modules/2.4.x/dispatcher.html#mi_ds_set_state
>>
>>
>> On Sun, 28 Jun 2020 at 11:35, Igor Pavlov 
>> wrote:
>>
>>> Hi all,
>>>
>>> Is it possible to disable ping for particular entry in set at all?
>>>
>>> I have a set of GWs which has 3-4 entries and some of these entries
>>> (vendors) don't answer to OPTIONS requests (they are like an persistent
>>> active GWs). I know that there is an 'ds_probing_list' setting, but in my
>>> case list can contain GWs that should not be pinged.
>>>
>>> --
>>>
>>> Best regards,
>>> Igor Pavlov
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> --
>
> Best regards,
> Igor Pavlov
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Arsen Semenov
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Dispatcher. Disable ping for particular entry/GW.

2020-06-28 Thread Arsen Semenov
Hi Igor,

Check ds_probing_mode parameter and gw state options.



On Sun, Jun 28, 2020 at 3:34 PM Igor Pavlov 
wrote:

> Hi all,
>
> Is it possible to disable ping for particular entry in set at all?
>
> I have a set of GWs which has 3-4 entries and some of these entries
> (vendors) don't answer to OPTIONS requests (they are like an persistent
> active GWs). I know that there is an 'ds_probing_list' setting, but in my
> case list can contain GWs that should not be pinged.
>
> --
>
> Best regards,
> Igor Pavlov
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Arsen Semenov
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users