# extensions.conf: [ Context 'test-messaging' created by 'pbx_config' ] 's' => 1. Verbose(1, Incoming MESSAGE from ${MESSAGE(from)} to ${MESSAGE(to)}) [pbx_config] 2. Set(TO=${CUT(MESSAGE(to),:,3)}) [pbx_config] 3. MessageSend(pjsip:${CUT(TO,@,1)}, ${MESSAGE(from)}) [pbx_config] 4. Hangup() [pbx_config] # pjsip set logger on (Message from auser@example.com to buser@example.com) <--- Received SIP request (814 bytes) from TLS:10.77.79.204:43082 ---> MESSAGE sip:buser@example.com SIP/2.0 v: SIP/2.0/TLS 10.77.79.204:43082;rport;branch=z9hG4bKPjNhCrD0sVQIdSb9jFs4.FJNyjWih.4fJJ;alias Max-Forwards: 70 f: "A User" ;tag=1mbmtGfmv3AbyPGgDzVMR5JLjsClDBGp t: i: jqqlaYVECmKh6NEQDliUZ0pXtE3Aslhh CSeq: 2340 MESSAGE Accept: text/plain, application/im-iscomposing+xml User-Agent: CSipSimple_cdma_spyder-16/r2350 Route: Authorization: Digest username="auser", realm="example.com", nonce="1388481211/66a9b89ac6af7f3bb73020a7b0b1ba2c", uri="sip:buser@example.com", response="b80ab0e59e226bd789f9d83761f6cee4", algorithm=md5, cnonce="v9MAzmqYYPnzxVXbn2Xv.2RU.qDWcpUe", opaque="128e4763294e8834", qop=auth, nc=00000001 c: text/plain l: 9 Try again <--- Transmitting SIP response (396 bytes) to TLS:10.77.79.204:43082 ---> SIP/2.0 202 Accepted Via: SIP/2.0/TLS 10.77.79.204:43082;rport;received=10.77.79.204;branch=z9hG4bKPjNhCrD0sVQIdSb9jFs4.FJNyjWih.4fJJ;alias Call-ID: jqqlaYVECmKh6NEQDliUZ0pXtE3Aslhh From: "A User" ;tag=1mbmtGfmv3AbyPGgDzVMR5JLjsClDBGp To: ;tag=z9hG4bKPjNhCrD0sVQIdSb9jFs4.FJNyjWih.4fJJ CSeq: 2340 MESSAGE Content-Length: 0 -- Executing [buser@test-internal:1] Goto("Message/ast_msg_queue", "2209,1") in new stack -- Goto (test-internal,2209,1) -- Executing [2209@test-internal:1] Gosub("Message/ast_msg_queue", "test-stdexten,s,1(PJSIP/buser/sip:buser@10.77.79.208:54967;transport=TLS;ob,2209)") in new stack -- Executing [s@test-stdexten:1] GotoIf("Message/ast_msg_queue", "1?test-messaging,s,1") in new stack -- Goto (test-messaging,s,1) -- Executing [s@test-messaging:1] Verbose("Message/ast_msg_queue", "1, Incoming MESSAGE from "A User" to pjsip:") in new stack Incoming MESSAGE from "A User" to pjsip: -- Executing [s@test-messaging:2] Set("Message/ast_msg_queue", "TO=buser@example.com>") in new stack -- Executing [s@test-messaging:3] MessageSend("Message/ast_msg_queue", "pjsip:buser, "A User" ") in new stack -- Executing [s@test-messaging:4] Hangup("Message/ast_msg_queue", "") in new stack == Spawn extension (test-messaging, s, 4) exited non-zero on 'Message/ast_msg_queue' <--- Transmitting SIP request (500 bytes) to TLS:10.77.79.208:54967 ---> MESSAGE sip:buser@10.77.79.208:54967;transport=TLS;ob SIP/2.0 Via: SIP/2.0/TLS 10.77.79.3:46751;rport;branch=z9hG4bKPj72fb97bc-a31e-4cec-96ad-93332ebdbed8 From: "A User" ;tag=a262a250-08c5-4422-9b8f-83b86cd29adc To: Contact: Call-ID: c8945c4a-7396-4e8d-bf00-67fb3b05b14f CSeq: 44181 MESSAGE Content-Type: text/plain Content-Length: 9 Try again <--- Received SIP response (382 bytes) from TLS:10.77.79.208:54967 ---> SIP/2.0 200 OK v: SIP/2.0/TLS 10.77.79.3:46751;rport=46751;received=10.77.79.3;branch=z9hG4bKPj72fb97bc-a31e-4cec-96ad-93332ebdbed8 i: c8945c4a-7396-4e8d-bf00-67fb3b05b14f f: "A User" ;tag=a262a250-08c5-4422-9b8f-83b86cd29adc t: ;tag=z9hG4bKPj72fb97bc-a31e-4cec-96ad-93332ebdbed8 CSeq: 44181 MESSAGE l: 0