[Users] ENUM dialing
Daniel-Constantin Mierla
daniel at voice-system.ro
Fri Sep 29 14:30:40 CEST 2006
On 09/28/06 12:06, Ronald Wiplinger wrote:
>
>
> I try to call an ENUM number. I use this settings for it:
>
> mpath="/usr/local/lib64/openser/modules/"
> loadmodule "enum.so"
>
> # -- enum params --
> modparam("enum", "domain_suffix", "e164.arpa.")
>
> route{
>
> #
> -----------------------------------------------------------------
> # initial sanity checks -- messages with
> # max_forwards==0, or excessively long requests
> #
> -----------------------------------------------------------------
> if (!mf_process_maxfwd_header("10")) {
> sl_send_reply("483","Too Many Hops");
> exit;
> };
>
> if (msg:len >= 4096 ) {
> sl_send_reply("513", "Message too big");
> exit;
> };
>
> #
> -----------------------------------------------------------------
> # NAT detection
> #
> -----------------------------------------------------------------
> log("I am checking for NAT now\n");
> route(2);
>
>
> #
> -----------------------------------------------------------------
> # if you want to make ENUM work with numbers starting with "00",
> # use the following to convert "00" it into a "+"
> #
> -----------------------------------------------------------------
>
> log("I am checking for ENUM now\n");
>
> if (uri=~"^sip:00[1-9][0-9]*@") { # tried before:
> taipei\.elmit\.net") {
> # strip leading "00"
> # (change example.net to your domainname or skip the stuff
> after the "@")
> strip(2);
> # (adjust, if your international prefix is something else than
> "00")
> prefix("+");
> };
>
> # check if request uri starts with an international phone
> # number (+X.), if yes, try to ENUM resolve in e164.arpa.
> # if no result, try in nrenum.net
>
> if (uri=~"sip:\+[0-9]+@") { # tried before:
> taipei\.elmit\.net") {
> # (change example.net to your domainname or skip the stuff
> after the "@")
> ####if ( !enum_query("e164.arpa.") ) {
> #### enum_query("nrenum.net.");
> #### };
> if (enum_query()) {
> t_relay();
> exit;
> }
> };
>
>
> I tried to add some log statements, but I never see them in
> /var/log/messages either.
use xlog("L_ERR", "message here ..."); to get the messages in syslot, or
increase the debug= value in your script to 7 (but in this case you will
get lot of messages).
> Below is the ngrep output. It seems that it does not go anywhere in
> route()
>
> Any ideas how to track it down?
Seems that the enum query returned false, and the processing reached
user location lookup. You can check with 'host -t NAPTR
__your_enaum_entry_here__' to see if there is a result for the enum query.
Cheers,
Daniel
>
> bye
>
> Ronald
>
>
>
> Content-Type: application/sdp.
> User-Agent: eyeBeam release 1005g stamp 32576.
> Content-Length: 809.
> .
> v=0.
> o=- 2 2 IN IP4 192.168.250.108.
> s=CounterPath eyeBeam 1.5.
> c=IN IP4 192.168.250.108.
> t=0 0.
> m=audio 48702 RTP/AVP 107 100 106 6 0 105 18 3 5 101.
> a=alt:1 2 : O5/HQNzE iLXVkGqH 5.32.86.166 48702.
> a=alt:2 1 : ok7vH1EF jO6dCAlm 192.168.250.108 48702.
> a=fmtp:18 annexb=yes.
> a=fmtp:101 0-15.
> a=rtpmap:107 BV32/16000.
> a=rtpmap:100 SPEEX/16000.
> a=rtpmap:106 SPEEX-FEC/16000.
> a=rtpmap:105 SPEEX-FEC/8000.
> a=rtpmap:18 G729/8000.
> a=rtpmap:101 telephone-event/8000.
> a=sendrecv.
> a=x-rtp-session-id:E4797B0FC1A140648811BD63523C3B70.
> m=video 40488 RTP/AVP 125.
> a=alt:1 2 : urVBRqXw O9lI2kQp 5.32.86.166 40488.
> a=alt:2 1 : LCXVKz4X nxDzxq4V 192.168.250.108 40488.
> a=fmtp:125 profile-level-id=42e015; max-br=4000; max-mbps=19800.
> a=rtpmap:125 H264/90000.
> a=sendrecv.
> a=x-rtp-session-id:B8E2EE0EA3944D6DA47E5D98AABCD52B.
>
> #
> U 2006/09/28 16:57:11.567171 192.168.250.41:5060 -> 192.168.250.108:40430
> SIP/2.0 404 Not Found.
> Via: SIP/2.0/UDP
> 192.168.250.108:40430;branch=z9hG4bK-d87543-0c396723de34cf5a-1--d87543-;rport=40430.
>
> To:
> "00886228357765"<sip:00886228357765 at 192.168.250.41>;tag=329cfeaa6ded039da25ff8cbb8668bd2.e6c9.
>
> From: "Ronald-taipei @ video "<sip:7311 at 192.168.250.41>;tag=3f7a5072.
> Call-ID: YmQ0YzNiYmU4MDJjMjQ4YzAyZjJjMjZiYzA3ZGYxYTk..
> CSeq: 1 INVITE.
> Server: OpenSer (1.1.0-notls (x86_64/linux)).
> Content-Length: 0.
> Warning: 392 192.168.250.41:5060 "Noisy feedback tells: pid=11197
> req_src_ip=192.168.250.108 req_src_port=40430
> in_uri=sip:00886228357765 at 192.168.250.41
> out_uri=sip:+886228357765 at 192.168.250.41 via_cnt==1".
> .
>
> #
> U 2006/09/28 16:57:11.569258 192.168.250.108:40430 -> 192.168.250.41:5060
> ACK sip:00886228357765 at 192.168.250.41 SIP/2.0.
> Via: SIP/2.0/UDP
> 192.168.250.108:40430;branch=z9hG4bK-d87543-0c396723de34cf5a-1--d87543-;rport.
>
> To:
> "00886228357765"<sip:00886228357765 at 192.168.250.41>;tag=329cfeaa6ded039da25ff8cbb8668bd2.e6c9.
>
> From: "Ronald-taipei @ video "<sip:7311 at 192.168.250.41>;tag=3f7a5072.
> Call-ID: YmQ0YzNiYmU4MDJjMjQ4YzAyZjJjMjZiYzA3ZGYxYTk..
> CSeq: 1 ACK.
> Content-Length: 0.
> .
>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list