[SR-Users] weird dp_translate result

Daniel-Constantin Mierla miconda at gmail.com
Fri Aug 31 20:18:12 CEST 2012


I checked the commit log and there was no change in the module. Failure 
to set the attrs variable is printing a error message, so looks like the 
variable is set.

Can you set $var(plan) to a static string value before dp_translate() 
just to see if the value is updated in the function?

Cheers,
Daniel

On 8/31/12 7:25 PM, Juha Heinanen wrote:
> 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>>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat




More information about the sr-users mailing list