Eric Chamberlain
2008-Sep-13 01:47 UTC
[asterisk-users] Is there a way to get the remote User-Agent info from an outbound leg?
Is there a way to get the remote User-Agent info from an outbound leg? ${SIP_HEADER(User-Agent)} after a Dial returns the inbound leg User- Agent. -- Eric Chamberlain
Eric Chamberlain
2008-Sep-14 21:50 UTC
[asterisk-users] Is there a way to get the remote User-Agent info from an outbound leg?
On Sep 12, 2008, at 6:47 PM, Eric Chamberlain wrote:> Is there a way to get the remote User-Agent info from an outbound leg? > > ${SIP_HEADER(User-Agent)} after a Dial returns the inbound leg User- > Agent. >Still trying to obtain the User-Agent from a remote peer on an outbound leg, we're probably missing something obvious. Using trunk revision 143077. extensions.conf: exten => s,n(call),Dial(SIP/${ARG2}@${ARG1},,M(set-dst-cdr)) ; use it to call out. [macro-set-dst-cdr] exten => s,1,NoOp(Set destination CDR information) exten => s,n,Set(CDR(dst_agent)=${CHANNEL(useragent)}) Logs show: -- Executing [s at macro-set-dst-cdr:4] Set("SIP/skype2-09cd2398", "CDR(dst_agent)=") in new stack -- Eric Chamberlain Founder RF.com http://RF.com/