HELLO,
As i promised, this is the first scenario : uac call the MOH
First, i declare a sip user in my sip.conf. i affect to it a context that answer the call and play a music (3 seconds)
Remember that, So that this sip user can do calls, he has to be registered.
Now, let’s start with my configuration :
in sip.conf :
[sippuac]
type=friend
username=sippuac
host=dynamic
port=5061
context=from-sipp
dtmfmode=rfc2833
insecure=very
canreinvite=no
in extension.conf :
[from-sipp]
exten => _X.,1,Answer()
exten => _X.,2,Playback(tt-weasels) ; durée : 3 sec
this is how my uac register :
sipp @ server -sf asterisk_register.xml -inf asterisk_register.CSV -r 1 -l 1 -m 1 -mi @ locale –i @local
as you see , i have used scenario and info files
my asterisk_register.xml is :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
< !-- sans trop tarder dans le texte de la License |-) -->
<scenario name="Basic UAS responder REGISTER">
<!-- By adding rrs="true" (Record Route Sets), the route sets -->
<!-- are saved and used for following messages sent. Useful to test -->
<!-- against stateful SIP proxies/B2BUAs. -->
<!-- Register begins -->
<send retrans="500">
<![CDATA[
REGISTER sip:[remote_ip] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port]
To: <sip:[field0]@[remote_ip]:[remote_port]>
From: <sip:[field0]@[remote_ip]:[remote_port]>
Contact: <sip:[field0]@[local_ip]:[local_port];transport=[transport]>
Expires: 360000
Call-ID: [call_id]
CSeq: 1 REGISTER
Content-Length: 0
]]>
</send>
<recv response="100" >
</recv>
<recv response="200" rtd="true">
</recv>
<!-- Register ends -->
<!-- definition of the response time repartition table (unit is ms) -->
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
<!-- definition of the call length repartition table (unit is ms) -->
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
</scenario>
and asterisk_register.CSV is :
SEQUENTIAL
sippuac
now , since uac is registered , i can generate calls with the command :
sipp @ server -sn uac -s 111 -r 1 -d 4000 -rp 1000 -trace_err -mi @ ip locale -i @ ip locale
if you are interessted by the others scenarios , just tell me and i will post them.
please if some one find any anomaly , just tell me also;)
Sara