What the..

I thought "Caller-Destination-Number" was always the cleaned dialed number (i.e. 5551234567) - is this not the case?

Cal

On Fri, Jan 4, 2013 at 5:38 PM, Victor Chukalovskiy <victor.chukalovskiy@gmail.com> wrote:
Hello and Happy New year!

A SIP call comes in that was previously dipped. I'd like to be able to
have "rn" and "npdi" available as channel variables that I can use in
regex expressions. Is there a way to configure FreeSWITCH to put "rn"
and "npdi" into separate channel variable?

So far, info application shows me the following channel variables that
contain LRN:

Caller-Destination-Number: [5551234567;npdi=yes;rn=5555550001]
variable_sip_req_user: [5551234567;npdi=yes;rn=5555550001]
variable_sip_req_uri: [5551234567;npdi=yes;rn=5555550001@1.2.3.4:5060]

I can probably dissect those and put "rn" and "npdi" into separate
variables. But this means extra steps in dial-plan. In case there is a
built-in way to accomplish the same task, it would be great!

Could you please let me know.

Thank you,
Victor

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org