Hi I have in a SIP invite of a incoming call:
INVITE sip:[email protected]:5060;transport=udp SIP/2.0 Allow: UPDATE,REFER,INFO Call-ID: [email protected] Contact: <sip:91.121.xxx.xxx:5060> Content-Type: application/sdp CSeq: 1602837515 INVITE From: "033426aaaaaa" <sip:[email protected];user=phone>;tag=04459-CI-5fa6f8a1-6f03b5b60 Max-Forwards: 30 P-Preferred-Identity: <sip:[email protected];user=phone> To: <sip:[email protected];user=phone> User-Agent: Cirpack/v4.42s (gw_sip) Via: SIP/2.0/UDP 91.121.xxx.xxx:5060;branch=z9hG4bK-4B4B-2D82DB2 Content-Length: 481 The To, "To: <sip:[email protected];user=phone>", can i get it into a variable for sent it at a API ? Sample: in extension.conf: exten => _003318364xxxx,1,AGI(Caller-ID_Phibee.agi,${CALLERID(name)},${VARIABLE}) exten => _003318364xxxx,2,Dial(SIP/185,180,rt) in this sample, ${VARIABLE} = 081169xxxx Thanks for your help Olivier -- _____________________________________________________________________ -- 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
