Hi List
I have to parse a customer header:
P-CH-Origin: intl=example.com;foo=bar;boo=whatever
I'm interested in the value of the intl parameter.
Unfortunately $(hdr(P-CH-Origin){param.value,intl}) does not seem to work, if this is the first parameter.
Is there a built in function to do this?
Mit freundlichen Grüssen
-Benoît Panizzon-
Unfortunately $(hdr(P-CH-Origin){param.value,intl}) does not seem to work, if this is the first parameter.
Never mind, hat stupid typo in my test set-up. It works!
Mit freundlichen Grüssen
-Benoît Panizzon-
Hi,
Have you verified that $hdr(P-CH-Origin) itself prints correctly?
-- Alex
On Sep 19, 2024, at 10:14 AM, Benoit Panizzon via sr-users sr-users@lists.kamailio.org wrote:
Hi List
I have to parse a customer header:
P-CH-Origin: intl=example.com;foo=bar;boo=whatever
I'm interested in the value of the intl parameter.
Unfortunately $(hdr(P-CH-Origin){param.value,intl}) does not seem to work, if this is the first parameter.
Is there a built in function to do this?
Mit freundlichen Grüssen
-Benoît Panizzon-
I m p r o W a r e A G - Leiter Commerce Kunden ______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00 CH-4133 Pratteln Fax +41 61 826 93 01 Schweiz Web http://www.imp.ch ______________________________________________________ __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: