OpenSIPS variables

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSIPS variables

kostenftw
 set(FROM=${CUT(SIP_HEADER(From),:,2)});
set(FROMIP=${CUT(FROM,@,2)});
set(FROM=${CUT(FROM,@,1)});
set(TO=${CUT(SIP_HEADER(To),:,2)});
set(TO=${CUT(TO,@,1)});

noop(RDNIS: ${CALLERID(rdnis)});
noop(NAME=${CALLERID(name)});
set(CALLERID(name)=);

--
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSIPS variables

Bogdan-Andrei Iancu-2
Hello,

What variables are available in OpenSISP, see
    http://www.opensips.org/Documentation/Script-CoreVar-1-10

For various ops over variables, see the script transformations:
    http://www.opensips.org/Documentation/Script-Tran-1-10

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 14.03.2014 09:17, Mike Claudi Pedersen wrote:
 set(FROM=${CUT(SIP_HEADER(From),:,2)});
set(FROMIP=${CUT(FROM,@,2)});
set(FROM=${CUT(FROM,@,1)});
set(TO=${CUT(SIP_HEADER(To),:,2)});
set(TO=${CUT(TO,@,1)});

noop(RDNIS: ${CALLERID(rdnis)});
noop(NAME=${CALLERID(name)});
set(CALLERID(name)=);

--
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users