Daniel-Constantin Mierla writes:
What version are you using? Is it happening to get the right value from time to time?
this is with a few days old trunk:
version: sip-proxy 3.4.0-dev3 (x86_64/linux)
i have seen it sometimes to set attrs pvar correctly, but most times not.
If you set higher debug mode, is it printing the message that a rule was matched?
see below.
-- juha
Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: INFO: Translating <+35892345670> based on dpid 4 Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: DEBUG: dialplan [dialplan.c:240]: integer value Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: DEBUG: dialplan [dialplan.c:261]: searching 15 Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: DEBUG: dialplan [dialplan.c:348]: input is +35892345670 Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: DEBUG: dialplan [dp_repl.c:341]: regex operator testing Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: DEBUG: dialplan [dp_repl.c:341]: regex operator testing Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: DEBUG: dialplan [dp_repl.c:341]: regex operator testing Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: DEBUG: dialplan [dp_repl.c:386]: found a matching rule 0x7f7d72275fa8: pr 10, match_exp ^+358 Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: DEBUG: dialplan [dp_repl.c:393]: the rule's attrs are fi Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: DEBUG: dialplan [dp_repl.c:404]: the copied attributes are: fi Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: DEBUG: dialplan [dp_repl.c:151]: null replacement Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: DEBUG: dialplan [dialplan.c:357]: input +35892345670 with dpid 4 => output Aug 31 20:21:56 wheezy2 /usr/sbin/sip-proxy[7560]: INFO: Found attrs <<null>>