[OpenSIPS-Users] issue with my XML script, b2bua
Anca Vamanu
anca at opensips.org
Thu Feb 11 15:46:26 CET 2010
Hi Brian,
Ok, I can write a sample scenario for the topology hiding case. It will
have no rules, because only the default pass through rule is applied. It
will only have an init section:
<?xml version="1.0"?>
<scenario id="tophiding" name="Topology hiding" type="script">
<init>
<bridge>
<server>
<id>server1</id>
</server>
<client>
<id>client1</id>
<type>message</type>
<destination>
<value type="initial">server1</value>
</destination>
</client>
</bridge>
</init>
</scenario>
This scenario specifies that two entities must be created, a server on
to deal with the received INVITE and a client one to start the dialog on
the other side. The destination for this client entity is exactly the
one from the received INVITE, so we have - value type="initial" and to
be taken from entity server1.
Hope this helps.
Regards,
--
Anca Vamanu
www.voice-system.ro
opensipslist at encambio.com wrote:
> Hello Anca,
>
> An ven., févr 05, 2010, Anca Vamanu schrieb:
>
>> On the other hand, I suggest for you to start playing with the
>> simple topology hiding scenario and the go to more complicated
>> scripts.
>>
>>
> ...but the topology hiding scenario has no associated XML file
> which makes learning more difficult.
>
> What I mean is, could you please post an example XML scenario
> file topohide.xml:
>
> <?xml version="1.0"?>
> <scenario id="topohide" name="Example" param="0" type="script">
> <init>
> <...>
>
> ...which if called with:
>
> modparam("b2b_logic", "script_scenario", "/pfx/topohide.xml")
> b2b_init_request("topohide");
>
> ...would have the same effect as b2b_init_request("top hiding")
>
> That would greatly help us learn to write new scenarios.
>
> Regards,
> Brian
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list