Re: [OpenSIPS-Users] Dispatcher pvar_hash parsing

2022-11-08 Thread Kevin Kennedy
It looks like the {uri.param,tgrp} transforms do not look at Parameters before the host. I will have to go back to the Regex. sip:1234567890;tgrp=1098765432;trunk-context=mydomain.com@10.10.10.10:5060 The working scenario modparam("dispatcher", "hash_pvar", "$avp(contacthash)") if

Re: [OpenSIPS-Users] Dispatcher pvar_hash parsing

2022-11-08 Thread Kevin Kennedy
Thank you for the response. I did get the other way to work last night with a slight modification to the regex *$var(str2) = "/sip:*.*;tgrp/tgrp/g";* had to add an extra *.** after the first ***, as it wasn't matching the regex expression, causing the issue. However your method looks a lot

Re: [OpenSIPS-Users] - Server Header, on 180 Ringing

2022-11-08 Thread Bogdan-Andrei Iancu
Hi Nitesh, Happy Tuesday ! The Server setting in OpenSIPS impacts only the SIP messages generated by OpenSIPS itself (while acting as Server), it does not impact the SIP messages that are "proxy"ed by OpenSIPS - like the 180 reply you mentioned. Regards, Bogdan-Andrei Iancu OpenSIPS

Re: [OpenSIPS-Users] Dispatcher pvar_hash parsing

2022-11-08 Thread Răzvan Crainea
Hi, Kevin! It would be simpler if you would have used the uri transformations: https://www.opensips.org/Documentation/Script-Tran-3-2#toc32 Simply grab the URI and do something like: if ($(var(contacturi){uri.param,tgrp}) != NULL) { $var(contacthash) = $(var(contacturi){uri.params}); }