[Kamailio-Users-ES] no entran las llamadas desde la pstn

David Villasmil david.villasmil.work at gmail.com
Tue Aug 26 10:31:06 CEST 2008


Porqué tienes el mismo peer 2 veces con contextos distintos? Nunca he visto
eso así, pero bueno...


On Mon, Aug 25, 2008 at 11:37 PM, troxlinux <xserverlinux at gmail.com> wrote:

> Hi  lista tengo unas dudas con mi kamailio y asterisk , estoy tratando
> que mis llamadas entren al asterisk y este las redirija a algún
> cliente sip , el caso es que me creo un usuario en openser llamado
> sipuser con su respectivo pass lo registro en un teléfono sip y lo
> anexo en mi sip.conf  de asterisk
>
> [openser]
> type=friend
> dtmfmode=rfc2833
> context=netsoluciones
> canreinvite=no
> insecure=port,invite
> host=192.168.10.1
> disallow=all
> allow=ulaw
> allow=g729
>
>
> [proxysip]
> type=friend
> username=sipuser
> fromuser=sipuser
> secret=linux12
> insecure=port,invite
> context=in-net
> host=192.168.10.1
> disallow=all
> allow=ulaw
> allow=g729
>
>
>
>
> en el extension.conf
>
> ### Llamadas que entran de la pstn ####
> [in-net]
> exten=s,1,dial(SIP/${EXTEN}@proxysip)
> exten=s,n,Hangup()
>
> con esto debería recibir llamadas a este usuario sip ;) , pero no
> entran en el cli de asterisk veo que se cae , ahora aquí tengo como un
> doble choque , puesto que tengo un usuario llamada openser del tipo
> friend cuando ejecuto las llamadas hacia la pstn  me sale por el
> sipproxy y no por el openser no se porque kamailio los saca por el
> sipproxy, entonces la llamada se cae puesto que para ser llamadas a la
> pstn esta en otro contexto el de "openser"
>
>
> ##### llamada que entra de la pstn  atraves del ZAP #####
> -- Starting simple switch on 'Zap/4-1'
>   -- Executing [s at in-net:1] Answer("Zap/4-1", "") in new stack
>   -- Executing [s at in-net:2] Dial("Zap/4-1", "SIP/s at proxysip") in new stack
>   -- Called s at proxysip
>   -- SIP/proxysip-0a1a1478 is circuit-busy
>
> #### Llamada que hago hacia la pstn####
>
> [Aug 25 15:17:34] NOTICE[3466]: chan_sip.c:13952
> handle_request_invite: Call from 'sipuser' to extension '2667802'
> rejected because extension not found
>
> si agrego al usuario sipproxy como user, para que solo reciba llamadas
> no se registra en asterisk , no se porque , ahora cuando entra la
> llamada de la pstn , como no se registra esto sale en el CLI
>
> 1 sip peers [Monitored: 1 online, 0 offline Unmonitored: 0 online, 0
> offline]
>   -- Starting simple switch on 'Zap/4-1'
>   -- Executing [s at in-net:1] Dial("Zap/4-1", "SIP/s at proxysip") in new stack
> [Aug 25 15:26:54] WARNING[8727]: chan_sip.c:2925 create_addr: No such
> host: proxysip
> [Aug 25 15:26:54] WARNING[8727]: app_dial.c:1183 dial_exec_full:
> Unable to create channel of type 'SIP' (cause 3 - No route to
> destination)
>  == Everyone is busy/congested at this time (1:0/0/1)
>
>
>
> reviso la traza del sip y veo que llega el INVITE del asterisk a
> openser , pero este no responde con 200 OK , ya que el usuario sipuser
> esta registrado en un tel , he anexado la opcion allow_trusted dentro
> del invite pero aun asi no llama, que me recomiendan ?
>
> ######### TRAZA SIP ##############
>
> #
> U +1.874973 192.168.10.1:5070 -> 192.168.10.1:5060
> Via: SIP/2.0/UDP 192.168.10.1:5070;branch=z9hG4bK5bed1bb9;rport
> From: "asterisk" <sip:sipuser at 192.168.10.1:5070>;tag=as47bf2898
> To: <sip:s at 192.168.10.1 <sip%3As at 192.168.10.1>>
> Contact: <sip:sipuser at 192.168.10.1:5070>
> Call-ID: 022c8e960fa59f2a26b3a6b577409efb at 192.168.10.1
> CSeq: 102 INVITE
> User-Agent: Asterisk PBX
> Max-Forwards: 70
> Date: Mon, 25 Aug 2008 21:31:01 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> Content-Type: application/sdp
> Content-Length: 285
>
> v=0
> o=root 3401 3401 IN IP4 192.168.10.1
> s=session
> c=IN IP4 192.168.10.1
> t=0 0
> m=audio 16314 RTP/AVP 0 18 101
> a=rtpmap:0 PCMU/8000
> a=rtpmap:18 G729/8000
> a=fmtp:18 annexb=no
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=silenceSupp:off - - - -
> a=ptime:20
> a=sendrecv
>
> #
> U +0.000242 192.168.10.1:5060 -> 192.168.10.1:5070
> SIP/2.0 404 User Not Found
> Via: SIP/2.0/UDP 192.168.10.1:5070;branch=z9hG4bK5bed1bb9;rport=5070
> From: "asterisk" <sip:sipuser at 192.168.10.1:5070>;tag=as47bf2898
> To: <sip:s at 192.168.10.1 <sip%3As at 192.168.10.1>
> >;tag=36839585464337ac048b06b445c90d99.57ec
> Call-ID: 022c8e960fa59f2a26b3a6b577409efb at 192.168.10.1
> CSeq: 102 INVITE
> Server: Kamailio (1.4.0-notls (i386/linux))
> Content-Length: 0
>
>
> #
> U +0.000138 192.168.10.1:5070 -> 192.168.10.1:5060
> ACK sip:s at 192.168.10.1 <sip%3As at 192.168.10.1> SIP/2.0
> Via: SIP/2.0/UDP 192.168.10.1:5070;branch=z9hG4bK5bed1bb9;rport
> From: "asterisk" <sip:sipuser at 192.168.10.1:5070>;tag=as47bf2898
> To: <sip:s at 192.168.10.1 <sip%3As at 192.168.10.1>
> >;tag=36839585464337ac048b06b445c90d99.57ec
> Contact: <sip:sipuser at 192.168.10.1:5070>
> Call-ID: 022c8e960fa59f2a26b3a6b577409efb at 192.168.10.1
> CSeq: 102 ACK
> User-Agent: Asterisk PBX
> Max-Forwards: 70
> Content-Length: 0
>
>
> #
> U +3.763988 192.168.10.28:5060 -> 192.168.10.1:5060
>
>
>  (&   (    RR,
> #
> U +2.315682 192.168.10.1:5070 -> 192.168.10.1:5060
> INVITE sip:s at 192.168.10.1 <sip%3As at 192.168.10.1> SIP/2.0
> Via: SIP/2.0/UDP 192.168.10.1:5070;branch=z9hG4bK44347e2b;rport
> From: "asterisk" <sip:sipuser at 192.168.10.1:5070>;tag=as2b197a0c
> To: <sip:s at 192.168.10.1 <sip%3As at 192.168.10.1>>
> Contact: <sip:sipuser at 192.168.10.1:5070>
> Call-ID: 633b98a11014b7ac7251052d2e73cab3 at 192.168.10.1
> CSeq: 102 INVITE
> User-Agent: Asterisk PBX
> Max-Forwards: 70
> Date: Mon, 25 Aug 2008 21:31:07 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> Content-Type: application/sdp
> Content-Length: 285
>
> v=0
> o=root 3401 3401 IN IP4 192.168.10.1
> s=session
> c=IN IP4 192.168.10.1
> t=0 0
> m=audio 19058 RTP/AVP 0 18 101
> a=rtpmap:0 PCMU/8000
> a=rtpmap:18 G729/8000
> a=fmtp:18 annexb=no
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=silenceSupp:off - - - -
> a=ptime:20
> a=sendrecv
>
> #
> U +0.000249 192.168.10.1:5060 -> 192.168.10.1:5070
> SIP/2.0 404 User Not Found
> Via: SIP/2.0/UDP 192.168.10.1:5070;branch=z9hG4bK44347e2b;rport=5070
> From: "asterisk" <sip:sipuser at 192.168.10.1:5070>;tag=as2b197a0c
> To: <sip:s at 192.168.10.1 <sip%3As at 192.168.10.1>
> >;tag=36839585464337ac048b06b445c90d99.f00b
> Call-ID: 633b98a11014b7ac7251052d2e73cab3 at 192.168.10.1
> CSeq: 102 INVITE
> Server: Kamailio (1.4.0-notls (i386/linux))
> Content-Length: 0
>
>
> #
> U +0.000795 192.168.10.1:5070 -> 192.168.10.1:5060
> ACK sip:s at 192.168.10.1 <sip%3As at 192.168.10.1> SIP/2.0
> Via: SIP/2.0/UDP 192.168.10.1:5070;branch=z9hG4bK44347e2b;rport
> From: "asterisk" <sip:sipuser at 192.168.10.1:5070>;tag=as2b197a0c
> To: <sip:s at 192.168.10.1 <sip%3As at 192.168.10.1>
> >;tag=36839585464337ac048b06b445c90d99.f00b
> Contact: <sip:sipuser at 192.168.10.1:5070>
> Call-ID: 633b98a11014b7ac7251052d2e73cab3 at 192.168.10.1
> CSeq: 102 ACK
> User-Agent: Asterisk PBX
> Max-Forwards: 70
> Content-Length: 0
>
>
> exit
> 28 received, 0 dropped
>
> saludoss
>
> rickygm
>
> _______________________________________________
> Users-es mailing list
> Users-es at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users-es
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/sr-users-es/attachments/20080826/658cee24/attachment-0002.htm 


More information about the Users-es mailing list