OpenSIPS: Rewrite URI

From OnnoWiki
Revision as of 09:36, 20 January 2014 by Onnowpurbo (talk | contribs) (New page: Sumber: http://www.opensips.org/Documentation/Script-CoreFunctions#toc40 ==Contoh perintah== rewriteuri("sip:test@opensips.org"); ==Perlu dicoba== # call ke PABX lain dengan kode are...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sumber: http://www.opensips.org/Documentation/Script-CoreFunctions#toc40

Contoh perintah

rewriteuri("sip:test@opensips.org");

Perlu dicoba

# call ke PABX lain dengan kode area 3
if (uri=~"^sip:3[0-9]*@*") {                         ##  
     rewriteuri( "^sip:[0-9]*@192.168.0.200:5060");  ##  192.168.0.200:5060
     route(1);
     };


Referensi