On Thu, Dec 4, 2008 at 2:14 AM, jonathan augenstine
<[EMAIL PROTECTED]>wrote:
> I am looking for info on modifying a sipp XML scenario that I developed. I
> want to extend the script to generate and detect DTMF. I have been told it
> might be possible using INFO messages. Does anyone have information or an
> example of how I can do this?
You could capture INFO messages from some sip phone and add then to your
scenario. For example, I use eyebeam. If I disable both In-Band DTMF and
RFC2833, if I press key "1" during a call, I can see eyebeam sending this:
11:04:30.9
SENDING TO: 192.168.2.80:5060
INFO sip:[EMAIL PROTECTED]:5060 SIP/2.0
To: <sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>>;tag=5141f232d
From: testuser1<sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
>;tag=e73cea4c
Via: SIP/2.0/UDP 192.168.4.6:5061
;branch=z9hG4bK-d87543-237402195-1--d87543-;rport
Call-ID: 867f313c070c1c25
CSeq: 2 INFO
Contact: <sip:[EMAIL PROTECTED]:5061>
Max-Forwards: 70
Content-Type: application/dtmf-relay
User-Agent: eyeBeam release 3007n stamp 17816
Content-Length: 24
Signal=1
Duration=250
And the other end will reply with this:
11:04:30.9
RECEIVING FROM: 192.168.2.80:5060
SIP/2.0 200 OK
To: <sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>>;tag=5141f232d
From: testuser1<sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
>;tag=e73cea4c
Call-ID: 867f313c070c1c25
CSeq: 2 INFO
Via: SIP/2.0/UDP 192.168.4.6:5061
;branch=z9hG4bK-d87543-237402195-1--d87543-;rport
User-Agent: Excel_CSP/84.10.181
Content-Length: 0
So, to detect DTMF you just have to use a ereg action like this:
<ereg regexp="Signal=([0-9*#])"
search_in="msg"
check_it="true"
assign_to="discarded,digit"/>
regards,
mayama
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users