<HTML><BODY><pre id="tw-target-text" class="tw-data-text vk_txt tw-ta tw-text-small" style="text-align: left; height: 24px;" dir="ltr" data-fulltext="" data-placeholder="Перевод" data-mce-style="text-align: left; height: 24px;"><span>(the text below in the attached file</span> too)</pre>Hi for all!<p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><pre class="western"><a class="mceItemAnchor" name="tw-target-text"></a>Dear friends, please help !</pre><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><div id="tw-target" dir="LTR"><div id="tw-target-text-container" dir="LTR"><pre class="western" style="margin-bottom: 0.5cm; text-align: left;" data-mce-style="margin-bottom: 0.5cm; text-align: left;"><a class="mceItemAnchor" name="tw-target-text1"></a>I'm trying to implement a module MSILO, but he does not want to work . Maybe someone will find time and point out my mistakes .</pre></div></div><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"><a class="mceItemAnchor" name="tw-target-text2"></a><a class="mceItemAnchor" name="tw-target-text-container"></a> 1. I send a message from sip: <a href="mailto:222222@192.168.0.18" data-mce-href="mailto:222222@192.168.0.18">222222@192.168.0.18</a> to sip: 333333@192.168.0.18 with the text "Test msg", when sip: 333333@192.168.0.18 is not registered.</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><pre class="western"><a class="mceItemAnchor" name="tw-target-text3"></a>Watching port 5060 by ngrep</pre><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">[root@localhost opensips-1.11.2-tls]# ngrep -d any port 5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.12:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">MESSAGE sip:333333@192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.12:5060;branch=z9hG4bK80ac38c8e0a6e411a990f03fa51c9899;rport..From: "PhonerLite" &lt;sip:222222@192.168.0.18&gt;;tag=1848417148..To: &lt;sip:333333</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">@192.168.0.18&gt;..Call-ID: 80AC38C8-E0A6-E411-A98F-F03FA51C9899@192.168.0.12..CSeq: 22 MESSAGE..Contact: &lt;sip:222222@192.168.0.12:5060&gt;..Content-Type: text/plain; charset="UTF-8"..Max-Forwards: 70..Date: Fri,</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">30 Jan 2015 11:28:29 GMT..User-Agent: SIPPER for PhonerLite..Content-Length: 10....Test msg..</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.12:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 192.168.0.12:5060;received=192.168.0.12;branch=z9hG4bK80ac38c8e0a6e411a990f03fa51c9899;rport=5060..From: "PhonerLite" &lt;sip:222222@192.168.0.18&gt;;ta</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">g=1848417148..To: &lt;sip:333333@192.168.0.18&gt;;tag=c97b4d1cb1f3d0da549e06a8d482ef63.90a5..Call-ID: 80AC38C8-E0A6-E411-A98F-F03FA51C9899@192.168.0.12..CSeq: 22 MESSAGE..Proxy-Authenticate: Digest realm="192.168</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">.0.18", nonce="54cb6afa00000029ebae04286947e69fdb73986faf7d8fb0"..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.12:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">MESSAGE sip:333333@192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.12:5060;branch=z9hG4bK80ac38c8e0a6e411a991f03fa51c9899;rport..From: "PhonerLite" &lt;sip:222222@192.168.0.18&gt;;tag=1848417148..To: &lt;sip:333333</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">@192.168.0.18&gt;..Call-ID: 80AC38C8-E0A6-E411-A98F-F03FA51C9899@192.168.0.12..CSeq: 23 MESSAGE..Contact: &lt;sip:222222@192.168.0.12:5060&gt;..Proxy-Authorization: Digest username="222222", realm="192.168.0.18", no</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">nce="54cb6afa00000029ebae04286947e69fdb73986faf7d8fb0", uri="sip:333333@192.168.0.18", response="1186c81c8466b138f7dd462d9df3be8d", algorithm=MD5..Content-Type: text/plain; charset="UTF-8"..Max-Forwards: 70</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">..Date: Fri, 30 Jan 2015 11:28:29 GMT..User-Agent: SIPPER for PhonerLite..Content-Length: 10....Test msg..</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">MESSAGE sip:222222@192.168.0.12:5060 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK60b1.dd2a1073.0..To: sip:222222@192.168.0.18..From: &lt;sip:admin@192.168.0.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">ed-0adf..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e52e-19141@192.168.0.18..Max-Forwards: 70..Content-Length: 27..User-Agent: OpenSIPS (1.11.2-notls (x86_64/linux))..Contact: admin@192.168.0.18..Content-Type:</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">text/plain....*** User 333333 is offline!</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.12:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 404 Not Found..Via: SIP/2.0/UDP 192.168.0.12:5060;received=192.168.0.12;branch=z9hG4bK80ac38c8e0a6e411a991f03fa51c9899;rport=5060..From: "PhonerLite" &lt;sip:222222@192.168.0.18&gt;;tag=1848417148..To: &lt;s</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">ip:333333@192.168.0.18&gt;;tag=155c340f586c28d0300cf5a6ccf90d99-4af5..Call-ID: 80AC38C8-E0A6-E411-A98F-F03FA51C9899@192.168.0.12..CSeq: 23 MESSAGE..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Lengt</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">h: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK60b1.dd2a1073.0..To: sip:222222@192.168.0.18;tag=c97b4d1cb1f3d0da549e06a8d482ef63.4256..From: &lt;sip:admin@192.168.0</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-0adf..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e52e-19141@192.168.0.18..Proxy-Authenticate: Digest realm="192.168.0.18", nonce="54cb6afa0000002a76a7eed8df6c878b5f5f94</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">77700201bb"..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><pre class="western"><a class="mceItemAnchor" name="tw-target-text4"></a><a class="mceItemAnchor" name="tw-target-text5"></a>sip:222222@192.168.0.18  does not get the message «*** User 333333 is offline!», but nevertheless
</pre><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">MariaDB [opensips]&gt; select * from silo;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">+----+-------------------------+-------------------------+----------+--------------+------------+------------+----------+------------+-----------------------------------------+</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">| id | src_addr | dst_addr | username | domain | inc_time | exp_time | snd_time | ctype | body |</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">+----+-------------------------+-------------------------+----------+--------------+------------+------------+----------+------------+-----------------------------------------+</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">| 4 | sip:222222@192.168.0.18 | sip:333333@192.168.0.18 | 333333 | 192.168.0.18 | 1422529336 | 1422788536 | 0 | text/plain | aasasasas asasasa asasas</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">|</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">| 3 | sip:111111@192.168.0.18 | sip:333333@192.168.0.18 | 333333 | 192.168.0.18 | 1422436770 | 1422695970 | 0 | text/plain | jfjhgfjhgfjhgfj kuhy07 upiouy</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">|</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">| 5 | sip:111111@192.168.0.18 | sip:333333@192.168.0.18 | 333333 | 192.168.0.18 | 1422614249 | 1422873449 | 0 | text/plain | kjhkjhg kjhgkjhg kjhgkjhg kjhgkjhg l;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">|</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">| 6 | sip:222222@192.168.0.18 | sip:333333@192.168.0.18 | 333333 | 192.168.0.18 | 1422616084 | 1422875284 | 0 | text/plain | zzxzxzxx czccczcz</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">|</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">| 7 | sip:222222@192.168.0.18 | sip:333333@192.168.0.18 | 333333 | 192.168.0.18 | 1422617308 | 1422876508 | 0 | text/plain | Test msg</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">|</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">+----+-------------------------+-------------------------+----------+--------------+------------+------------+----------+------------+-----------------------------------------+</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">5 rows in set (0.00 sec)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"><a class="mceItemAnchor" name="tw-target"></a><br data-mce-bogus="1"></p><div id="Раздел1" dir="LTR"><div id="Раздел2" dir="LTR"><pre class="western" style="margin-bottom: 0.5cm; text-align: left;" data-mce-style="margin-bottom: 0.5cm; text-align: left;"><a class="mceItemAnchor" name="tw-target-text6"></a><a class="mceItemAnchor" name="tw-target-text-container1"></a>After registration  sip:333333@192.168.0.18</pre></div></div><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">[root@localhost opensips-1.11.2-tls]# ngrep -d any port 5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">interface: any</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">filter: (ip or ip6) and ( port 5060 )</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.14:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP 192.168.0.14:5060;received=192.168.0.14;branch=z9hG4bK003c018fe2a6e411bf913af8496c2537;rport=5060..From: "PhonerLite" &lt;sip:Admin@192.168.0.18&gt;;tag=3726656676..To:</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">"PhonerLite" &lt;sip:Admin@192.168.0.18&gt;;tag=c97b4d1cb1f3d0da549e06a8d482ef63.5819..Call-ID: 80F1EFC4-DDA6-E411-BF8A-3AF8496C2537@192.168.0.14..CSeq: 9 REGISTER..WWW-Authenticate: Digest realm="192.168.0.18",</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">nonce="54cb6e060000002d2088cd91e4fcc304ae12a6dc1179f1e3", stale=true..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.14:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">REGISTER sip:192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.14:5060;branch=z9hG4bK003c018fe2a6e411bf933af8496c2537;rport..From: "PhonerLite" &lt;sip:Admin@192.168.0.18&gt;;tag=1228958365..To: "PhonerLite" &lt;sip:</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">Admin@192.168.0.18&gt;..Call-ID: 003C018F-E2A6-E411-BF92-3AF8496C2537@192.168.0.14..CSeq: 10 REGISTER..Contact: &lt;sip:Admin@192.168.0.14:5060&gt;;Expires=0;+sip.instance="&lt;urn:uuid:8079F1F2-EB9F-E411-BAEA-2B6C55B8</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">B03A&gt;"..Authorization: Digest username="Admin", realm="192.168.0.18", nonce="54cb6e060000002d2088cd91e4fcc304ae12a6dc1179f1e3", uri="sip:192.168.0.18", response="24b2adf28de3fc56940e8c701888e7f3", algorithm</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">=MD5..Allow: INVITE, OPTIONS, ACK, BYE, CANCEL, INFO, NOTIFY, MESSAGE, UPDATE..Max-Forwards: 70..User-Agent: SIPPER for PhonerLite..Expires: 0..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.14:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 200 OK..Via: SIP/2.0/UDP 192.168.0.14:5060;received=192.168.0.14;branch=z9hG4bK003c018fe2a6e411bf933af8496c2537;rport=5060..From: "PhonerLite" &lt;sip:Admin@192.168.0.18&gt;;tag=1228958365..To: "PhonerLit</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">e" &lt;sip:Admin@192.168.0.18&gt;;tag=c97b4d1cb1f3d0da549e06a8d482ef63.fda9..Call-ID: 003C018F-E2A6-E411-BF92-3AF8496C2537@192.168.0.14..CSeq: 10 REGISTER..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.14:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">REGISTER sip:192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.14:5060;branch=z9hG4bK80d2998fe2a6e411bce26736c66fd40a;rport..From: "PhonerLite" &lt;sip:333333@192.168.0.18&gt;;tag=4258112931..To: "PhonerLite" &lt;sip</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">:333333@192.168.0.18&gt;..Call-ID: 80D2998F-E2A6-E411-BCE0-6736C66FD40A@192.168.0.14..CSeq: 1 REGISTER..Contact: &lt;sip:333333@192.168.0.14:5060&gt;;+sip.instance="&lt;urn:uuid:8079F1F2-EB9F-E411-BAEA-2B6C55B8B03A&gt;"..</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">Allow: INVITE, OPTIONS, ACK, BYE, CANCEL, INFO, NOTIFY, MESSAGE, UPDATE..Max-Forwards: 70..Allow-Events: org.3gpp.nwinitdereg..User-Agent: SIPPER for PhonerLite..Expires: 900..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.14:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP 192.168.0.14:5060;received=192.168.0.14;branch=z9hG4bK80d2998fe2a6e411bce26736c66fd40a;rport=5060..From: "PhonerLite" &lt;sip:333333@192.168.0.18&gt;;tag=4258112931..To:</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">"PhonerLite" &lt;sip:333333@192.168.0.18&gt;;tag=c97b4d1cb1f3d0da549e06a8d482ef63.764b..Call-ID: 80D2998F-E2A6-E411-BCE0-6736C66FD40A@192.168.0.14..CSeq: 1 REGISTER..WWW-Authenticate: Digest realm="192.168.0.18"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">, nonce="54cb6e070000002e9599bd2abcb766d1a90d0214267a1dbb"..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.14:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">REGISTER sip:192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.14:5060;branch=z9hG4bK80d2998fe2a6e411bce36736c66fd40a;rport..From: "PhonerLite" &lt;sip:333333@192.168.0.18&gt;;tag=4258112931..To: "PhonerLite" &lt;sip</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">:333333@192.168.0.18&gt;..Call-ID: 80D2998F-E2A6-E411-BCE0-6736C66FD40A@192.168.0.14..CSeq: 2 REGISTER..Contact: &lt;sip:333333@192.168.0.14:5060&gt;;+sip.instance="&lt;urn:uuid:8079F1F2-EB9F-E411-BAEA-2B6C55B8B03A&gt;"..</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">Authorization: Digest username="333333", realm="192.168.0.18", nonce="54cb6e070000002e9599bd2abcb766d1a90d0214267a1dbb", uri="sip:192.168.0.18", response="3cf28880659b652be80058e4eb269124", algorithm=MD5..A</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">llow: INVITE, OPTIONS, ACK, BYE, CANCEL, INFO, NOTIFY, MESSAGE, UPDATE..Max-Forwards: 70..Allow-Events: org.3gpp.nwinitdereg..User-Agent: SIPPER for PhonerLite..Expires: 900..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.14:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 200 OK..Via: SIP/2.0/UDP 192.168.0.14:5060;received=192.168.0.14;branch=z9hG4bK80d2998fe2a6e411bce36736c66fd40a;rport=5060..From: "PhonerLite" &lt;sip:333333@192.168.0.18&gt;;tag=4258112931..To: "PhonerLi</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">te" &lt;sip:333333@192.168.0.18&gt;;tag=c97b4d1cb1f3d0da549e06a8d482ef63.ac1b..Call-ID: 80D2998F-E2A6-E411-BCE0-6736C66FD40A@192.168.0.14..CSeq: 2 REGISTER..Contact: &lt;sip:333333@192.168.0.14:5060&gt;;expires=900..Se</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">rver: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">MESSAGE sip:333333@192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK5456.1399b911.0..To: sip:333333@192.168.0.18..From: &lt;sip:111111@192.168.0.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-8</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">b34..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e52d-19138@192.168.0.18..Max-Forwards: 70..Content-Length: 76..User-Agent: OpenSIPS (1.11.2-notls (x86_64/linux))..Date: Wed, 28 Jan 2015 09:19:30 GMT..Content-Ty</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">pe: text/plain..Contact: &lt;sip:111111@192.168.0.18&gt;;msilo=yes....[Offline message - Wed Jan 28 13:19:30 2015] jfjhgfjhgfjhgfj kuhy07 upiouy..</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">MESSAGE sip:333333@192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK6456.e559f714.0..To: sip:333333@192.168.0.18..From: &lt;sip:222222@192.168.0.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-e</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">ec9..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e52e-19138@192.168.0.18..Max-Forwards: 70..Content-Length: 72..User-Agent: OpenSIPS (1.11.2-notls (x86_64/linux))..Date: Thu, 29 Jan 2015 11:02:16 GMT..Content-Ty</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">pe: text/plain..Contact: &lt;sip:222222@192.168.0.18&gt;;msilo=yes....[Offline message - Thu Jan 29 15:02:16 2015] aasasasas asasasa asasas ..</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK5456.1399b911.0..To: sip:333333@192.168.0.18;tag=c97b4d1cb1f3d0da549e06a8d482ef63.b2ae..From: &lt;sip:111111@192.168.</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">0.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-8b34..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e52d-19138@192.168.0.18..Proxy-Authenticate: Digest realm="192.168.0.18", nonce="54cb6e070000002f53486e16b7d88d49bf946</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">70d4787fee3"..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">MESSAGE sip:333333@192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK7456.021a28e7.0..To: sip:333333@192.168.0.18..From: &lt;sip:111111@192.168.0.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-5</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">05f..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e52f-19138@192.168.0.18..Max-Forwards: 70..Content-Length: 84..User-Agent: OpenSIPS (1.11.2-notls (x86_64/linux))..Date: Fri, 30 Jan 2015 10:37:29 GMT..Content-Ty</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">pe: text/plain..Contact: &lt;sip:111111@192.168.0.18&gt;;msilo=yes....[Offline message - Fri Jan 30 14:37:29 2015] kjhkjhg kjhgkjhg kjhgkjhg kjhgkjhg l;..</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK6456.e559f714.0..To: sip:333333@192.168.0.18;tag=c97b4d1cb1f3d0da549e06a8d482ef63.436d..From: &lt;sip:222222@192.168.</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">0.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-eec9..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e52e-19138@192.168.0.18..Proxy-Authenticate: Digest realm="192.168.0.18", nonce="54cb6e0700000030c4998d9cb2bf60b2e80ef</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">4ed64a8ff02"..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">MESSAGE sip:333333@192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK3766.67dcbe14.0..To: sip:333333@192.168.0.18..From: &lt;sip:222222@192.168.0.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-4</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">dae..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e530-19138@192.168.0.18..Max-Forwards: 70..Content-Length: 64..User-Agent: OpenSIPS (1.11.2-notls (x86_64/linux))..Date: Fri, 30 Jan 2015 11:08:04 GMT..Content-Ty</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">pe: text/plain..Contact: &lt;sip:222222@192.168.0.18&gt;;msilo=yes....[Offline message - Fri Jan 30 15:08:04 2015] zzxzxzxx czccczcz..</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK7456.021a28e7.0..To: sip:333333@192.168.0.18;tag=c97b4d1cb1f3d0da549e06a8d482ef63.c30a..From: &lt;sip:111111@192.168.</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">0.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-505f..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e52f-19138@192.168.0.18..Proxy-Authenticate: Digest realm="192.168.0.18", nonce="54cb6e0700000031d16720e32b27b7018406f</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">9fc815aa472"..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK3766.67dcbe14.0..To: sip:333333@192.168.0.18;tag=c97b4d1cb1f3d0da549e06a8d482ef63.c300..From: &lt;sip:222222@192.168.</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">0.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-4dae..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e530-19138@192.168.0.18..Proxy-Authenticate: Digest realm="192.168.0.18", nonce="54cb6e07000000328fb89189bf331b4e938b9</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">c08721d5da6"..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">MESSAGE sip:333333@192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK4766.c5f30293.0..To: sip:333333@192.168.0.18..From: &lt;sip:222222@192.168.0.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-2</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">853..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e531-19138@192.168.0.18..Max-Forwards: 70..Content-Length: 55..User-Agent: OpenSIPS (1.11.2-notls (x86_64/linux))..Date: Fri, 30 Jan 2015 11:28:28 GMT..Content-Ty</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">pe: text/plain..Contact: &lt;sip:222222@192.168.0.18&gt;;msilo=yes....[Offline message - Fri Jan 30 15:28:28 2015] Test msg..</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 192.168.0.18:5060;branch=z9hG4bK4766.c5f30293.0..To: sip:333333@192.168.0.18;tag=c97b4d1cb1f3d0da549e06a8d482ef63.7696..From: &lt;sip:222222@192.168.</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">0.18&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-2853..CSeq: 10 MESSAGE..Call-ID: 6fe37d527532e531-19138@192.168.0.18..Proxy-Authenticate: Digest realm="192.168.0.18", nonce="54cb6e07000000336d8dd3d8dff131408d04c</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">30edc782ca8"..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.14:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SUBSCRIBE sip:333333@192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.14:5060;branch=z9hG4bK80d2998fe2a6e411bce46736c66fd40a;rport..From: "PhonerLite" &lt;sip:333333@192.168.0.18&gt;;tag=3298267247..To: &lt;sip:3333</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">33@192.168.0.18&gt;..Call-ID: 80D2998F-E2A6-E411-BCE1-6736C66FD40A@192.168.0.14..CSeq: 3 SUBSCRIBE..Contact: &lt;sip:333333@192.168.0.14:5060&gt;;+sip.instance="&lt;urn:uuid:8079F1F2-EB9F-E411-BAEA-2B6C55B8B03A&gt;"..Max-</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">Forwards: 70..User-Agent: SIPPER for PhonerLite..Expires: 1800..Event: message-summary..Accept: application/simple-message-summary..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.14:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 192.168.0.14:5060;received=192.168.0.14;branch=z9hG4bK80d2998fe2a6e411bce46736c66fd40a;rport=5060..From: "PhonerLite" &lt;sip:333333@192.168.0.18&gt;;ta</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">g=3298267247..To: &lt;sip:333333@192.168.0.18&gt;;tag=c97b4d1cb1f3d0da549e06a8d482ef63.989a..Call-ID: 80D2998F-E2A6-E411-BCE1-6736C66FD40A@192.168.0.14..CSeq: 3 SUBSCRIBE..Proxy-Authenticate: Digest realm="192.16</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">8.0.18", nonce="54cb6e0700000034f5cb663365779ba2dc87f5bfa41d18cb"..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.14:5060 -&gt; 192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SUBSCRIBE sip:333333@192.168.0.18 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.14:5060;branch=z9hG4bK80d2998fe2a6e411bce56736c66fd40a;rport..From: "PhonerLite" &lt;sip:333333@192.168.0.18&gt;;tag=3298267247..To: &lt;sip:3333</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">33@192.168.0.18&gt;..Call-ID: 80D2998F-E2A6-E411-BCE1-6736C66FD40A@192.168.0.14..CSeq: 4 SUBSCRIBE..Contact: &lt;sip:333333@192.168.0.14:5060&gt;;+sip.instance="&lt;urn:uuid:8079F1F2-EB9F-E411-BAEA-2B6C55B8B03A&gt;"..Prox</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">y-Authorization: Digest username="333333", realm="192.168.0.18", nonce="54cb6e0700000034f5cb663365779ba2dc87f5bfa41d18cb", uri="sip:333333@192.168.0.18", response="5ac6a704ef56c1426c4e20b1327bdc6a", algorit</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">hm=MD5..Max-Forwards: 70..User-Agent: SIPPER for PhonerLite..Expires: 1800..Event: message-summary..Accept: application/simple-message-summary..Content-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">U 192.168.0.18:5060 -&gt; 192.168.0.14:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">SIP/2.0 503 Service Unavailable..Via: SIP/2.0/UDP 192.168.0.14:5060;received=192.168.0.14;branch=z9hG4bK80d2998fe2a6e411bce56736c66fd40a;rport=5060..From: "PhonerLite" &lt;sip:333333@192.168.0.18&gt;;tag=32982672</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">47..To: &lt;sip:333333@192.168.0.18&gt;;tag=c97b4d1cb1f3d0da549e06a8d482ef63.42ca..Call-ID: 80D2998F-E2A6-E411-BCE1-6736C66FD40A@192.168.0.14..CSeq: 4 SUBSCRIBE..Server: OpenSIPS (1.11.2-notls (x86_64/linux))..Co</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">ntent-Length: 0....</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><pre class="western">sip:333333@192.168.0.18 has not received their messages that were stored in the database.


My  opensips.cfg:</pre><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">####### Global Parameters #########</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">log_facility=LOG_LOCAL0</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">fork=yes</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">children=4</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">/* uncomment the following lines to enable debugging */</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">debug=6</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#fork=no</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">log_stderror=yes</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">/* uncomment the next line to enable the auto temporary blacklisting of</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">not available destinations (default disabled) */</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#disable_dns_blacklist=no</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">/* uncomment the next line to enable IPv6 lookup after IPv4 dns</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">lookup failures (default disabled) */</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#dns_try_ipv6=yes</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">/* comment the next line to enable the auto discovery of local aliases</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">based on revers DNS on IPs */</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">auto_aliases=no</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">listen=udp:127.0.0.1:5060 # CUSTOMIZE ME</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">listen=udp:192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#listen=udp:enp2s0:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#disable_tcp=yes</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">listen=tcp:127.0.0.1:5060 # CUSTOMIZE ME</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">listen=tcp:192.168.0.18:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#listen=tcp:enp2s0:5060</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">disable_tls=yes</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">####### Modules Section ########</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#set module path</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">mpath="/usr/local/lib64/opensips/modules/"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### SIGNALING module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "signaling.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### StateLess module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "sl.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### Transaction Module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "tm.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("tm", "fr_timeout", 5)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#modparam("tm", "fr_inv_timeout", 30)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("tm", "restart_fr_on_each_reply", 0)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("tm", "onreply_avp_mode", 1)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("tm", "fr_timer", 10 )</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("tm", "fr_inv_timer", 15 )</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("tm", "wt_timer", 10 )</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### Record Route Module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "rr.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">/* do not append from tag to the RR (no need for this script) */</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("rr", "append_fromtag", 0)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### MAX ForWarD module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "maxfwd.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### SIP MSG OPerationS module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "sipmsgops.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### FIFO Management Interface</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "mi_fifo.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("mi_fifo", "fifo_mode", 0666)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### URI module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "uri.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("uri", "use_uri_table", 0)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam ("uri", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### MYSQL module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "db_mysql.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### HTTPD module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "httpd.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("httpd", "port", 8888)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#loadmodule "mi_http.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#loadmodule "pi_http.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># modparam("pi_http", "framework", "/usr/local/src/opensips/examples/pi_framework.xml")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#loadmodule "mi_xmlrpc_ng.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### USeR LOCation module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "usrloc.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("usrloc", "nat_bflag", "NAT")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("usrloc", "db_mode", 2)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("usrloc", "db_url",</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">"mysql://opensips:opensipsrw@localhost/opensips") # CUSTOMIZE ME</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#modparam("usrloc", "db_mode", 0)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "msilo.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># -- msilo params --</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("msilo","db_url","mysql://opensips:opensipsrw@localhost/opensips")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("msilo","from_address","sip:admin@192.168.0.18")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#modparam("msilo","contact_hdr","Contact: admin@192.168.0.18:5060;msilo=yes\r\n")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("msilo","contact_hdr","Contact: admin@192.168.0.18\r\n")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("msilo","content_type_hdr","Content-Type: text/plain\r\n")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("msilo","offline_message","*** User $rU is offline!")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("msilo", "use_contact", 1)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### REGISTRAR module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "registrar.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("registrar", "tcp_persistent_flag", "TCP_PERSISTENT")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("registrar", "default_expires", 120)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">/* uncomment the next line not to allow more than 10 contacts per AOR */</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#modparam("registrar", "max_contacts", 10)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### ACCounting module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "acc.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">/* what special events should be accounted ? */</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("acc", "early_media", 0)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("acc", "report_cancels", 0)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">/* by default we do not adjust the direct of the sequential requests.</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if you enable this parameter, be sure the enable "append_fromtag"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">in "rr" module */</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("acc", "detect_direction", 0)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("acc", "failed_transaction_flag", "ACC_FAILED")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">/* account triggers (flags) */</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("acc", "db_flag", "ACC_DO")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("acc", "db_missed_flag", "ACC_MISSED")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("acc", "db_url",</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">"mysql://opensips:opensipsrw@localhost/opensips") # CUSTOMIZE ME</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### AUTHentication modules</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "auth.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("auth", "username_spec", "$var(username)")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("auth", "password_spec", "$avp(password)")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "auth_db.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("auth_db", "calculate_ha1", yes)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("auth_db", "password_column", "password")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("auth_db", "db_url",</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">"mysql://opensips:opensipsrw@localhost/opensips") # CUSTOMIZE ME</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("auth_db", "load_credentials", "")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### ALIAS module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "alias_db.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("alias_db", "db_url",</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">"mysql://opensips:opensipsrw@localhost/opensips") # CUSTOMIZE ME</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### DIALOG module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "dialog.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("dialog", "dlg_match_mode", 1)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("dialog", "default_timeout", 21600) # 6 hours timeout</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("dialog", "db_mode", 2)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">modparam("dialog", "db_url",</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">"mysql://opensips:opensipsrw@localhost/opensips") # CUSTOMIZE ME</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#### MI_HTTP module</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">loadmodule "mi_http.so"</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">####### Routing Logic ########</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># main request routing logic</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">route{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!mf_process_maxfwd_header("10")) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">sl_send_reply("483","Too Many Hops");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (has_totag()) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># sequential request withing a dialog should</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># take the path determined by record-routing</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (loose_route()) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># validate the sequential request against dialog</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if ( $DLG_status!=NULL &amp;&amp; !validate_dialog() ) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">xlog("In-Dialog $rm from $si (callid=$ci) is not valid according to dialog\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">## exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (is_method("BYE")) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">setflag(ACC_DO); # do accounting ...</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">setflag(ACC_FAILED); # ... even if the transaction fails</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">} else if (is_method("INVITE")) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># even if in most of the cases is useless, do RR for</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># re-INVITEs alos, as some buggy clients do change route set</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># during the dialog.</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">record_route();</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># route it out to whatever destination was set by loose_route()</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># in $du (destination URI).</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">route(relay);</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">} else {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if ( is_method("ACK") ) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if ( t_check_trans() ) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># non loose-route, but stateful ACK; must be an ACK after</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># a 487 or e.g. 404 from upstream server</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">t_relay();</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">} else {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># ACK without matching transaction -&gt;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># ignore and discard</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">sl_send_reply("404","Not here");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># CANCEL processing</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (is_method("CANCEL"))</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (t_check_trans())</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">t_relay();</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">t_check_trans();</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if ( !(is_method("REGISTER") ) ) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (from_uri==myself)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># authenticate if from local subscriber</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># authenticate all initial non-REGISTER request that pretend to be</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># generated by local subscriber (domain from FROM URI is local)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!proxy_authorize("", "subscriber")) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">proxy_challenge("", "0");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!db_check_from()) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">sl_send_reply("403","Forbidden auth ID");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">consume_credentials();</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># caller authenticated</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">} else {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># if caller is not local, then called number must be local</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!uri==myself) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">send_reply("403","Rely forbidden");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># preloaded route checking</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (loose_route()) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">xlog("L_ERR",</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">"Attempt to route with preloaded Route's [$fu/$tu/$ru/$ci]");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!is_method("ACK"))</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">sl_send_reply("403","Preload Route denied");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># record routing</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!is_method("REGISTER|MESSAGE"))</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">record_route();</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># account only INVITEs</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (is_method("INVITE")) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># create dialog with timeout</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if ( !create_dialog("B") ) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">send_reply("500","Internal Server Error");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">setflag(ACC_DO); # do accounting</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!uri==myself)</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">append_hf("P-hint: outbound\r\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">route(relay);</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># requests for my domain</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (is_method("PUBLISH|SUBSCRIBE"))</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">sl_send_reply("503", "Service Unavailable");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (is_method("REGISTER"))</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># authenticate the REGISTER requests</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!www_authorize("", "subscriber"))</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">www_challenge("", "0");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!db_check_to())</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">sl_send_reply("403","Forbidden auth ID");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if ( proto==TCP || 0 ) setflag(TCP_PERSISTENT);</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!save("location")){</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">sl_reply_error();</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!MSILO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">else{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (uri==myself) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># MSILO - dumping user's offline messages</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (m_dump("$fu")){</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">xlog("MSILO: offline messages dumped - if they were $rU\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}else{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">xlog("MSILO: no offline messages dumped\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!MSILO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if ($rU==NULL) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># request with no Username in RURI</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">sl_send_reply("484","Address Incomplete");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># apply DB based aliases</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">alias_db_lookup("dbaliases");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># do lookup with method filtering</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!lookup("location","m")) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!db_does_uri_exist()) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">send_reply("420","Bad Extension");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!MSILO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (method=="MESSAGE")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">xlog("MESSAGE received -&gt; storing using MSILO\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># MSILO - storing as offline message</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (m_store("$ru"))</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">xlog("MSILO: offline message stored\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}else{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">xlog("MSILO: offline message NOT stored\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!t_reply("503", "Service Unavailable"))</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">sl_reply_error();</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">};</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">};</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!MSILO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">t_newtran();</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">t_reply("404", "Not Found");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># when routing via usrloc, log the missed calls also</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">setflag(ACC_MISSED);</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">route(relay);</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">route[relay] {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># for INVITEs enable some additional helper routes</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (is_method("INVITE")) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">t_on_branch("per_branch_ops");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">t_on_reply("handle_nat");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">t_on_failure("missed_call");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!t_relay()) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">send_reply("500","Internal Error");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">};</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">branch_route[per_branch_ops] {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">xlog("new branch at $ru\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">onreply_route[handle_nat] {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">xlog("incoming reply\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">failure_route[missed_call] {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (t_was_cancelled()) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># uncomment the following lines if you want to block client</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># redirect based on 3xx replies.</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">##if (t_check_status("3[0-9][0-9]")) {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">##t_reply("404","Not found");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">## exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">##}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">local_route {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (is_method("BYE") &amp;&amp; $DLG_dir=="UPSTREAM") {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">acc_db_request("200 Dialog Timeout", "acc");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">failure_route[1] {</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># forwarding failed -- check if the request was a MESSAGE</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (!method=="MESSAGE")</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">exit;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">};</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">log(1,"MSILO:the downstream UA doesn't support MESSAGEs\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"># we have changed the R-URI with the contact address, ignore it now</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">if (m_store("$ou"))</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">log("MSILO: offline message stored\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">t_reply("202", "Accepted");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}else{</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">log("MSILO: offline message NOT stored\n");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">t_reply("503", "Service Unavailable");</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">};</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">}</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;"><a class="mceItemAnchor" name="tw-target1"></a><br data-mce-bogus="1"></p><div id="Раздел3" dir="LTR"><div id="Раздел4" dir="LTR"><pre class="western" style="margin-bottom: 0.5cm; text-align: left;" data-mce-style="margin-bottom: 0.5cm; text-align: left;"><a class="mceItemAnchor" name="tw-target-text8"></a><a class="mceItemAnchor" name="tw-target-text-container2"></a>What am I doing wrong?</pre></div></div><p style="margin-bottom: 0cm;" data-mce-style="margin-bottom: 0cm;">&nbsp;</p><br></BODY></HTML>