Re: [asterisk-users] Get phone number from SIP header PAI
On Tue, Mar 29, 2011 at 8:19 AM, Jonas Kellens wrote: > Hello list, > > I'm trying this : > *exten => _XXX.,n,Set(PY4=${CUT(PY2,\:,1-)}) * > but this does not change a thing to the string... > Try the following: *exten => _XXX.,n,Set(PY4=${CUT(PY2,:,2)}) * -- Thanks, --Warren Selby, dCAP http://www.selbytech.com -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Get phone number from SIP header PAI
Hello list, I want to get the phone number out of the following P-Asserted-Identity header : /"BlaBlaBla" "/ I do the following in the dialplan : /exten => _XXX.,n,Set(PY=${SIP_HEADER(P-Asserted-Identity)}) exten => _XXX.,n,Set(PY2=${CUT(PY,@,1)})/ This gives me : /"BlaBlaBla" _XXX.,n,Set(PY4=${CUT(PY2,\:,1-)}) / but this does not change a thing to the string... I just want everything after the comma... Kind regards, Jonas. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users