[Asterisk-Users] Bind port

Carlos Alperin calperin at senecacom.net
Mon Jul 4 16:40:16 MST 2005


I never see that, the only solution that I can think about is that if you
want to run two applications at the same time, based on the info transmited
using port 5060 is to have a second machine as a Sniffer with the interface
in promiscuous mode listening port 5060.

Also, the sip device should be sending the packets to both ports, and I
don't know still any SIP device that do that, just they use 5060 because the
standard recommends his use.

I hope this help a little.

Carlos Alperin
Senior System Engineer
Seneca Communications, LLC
Calperin at senecacom.net

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Isamar Maia
Sent: Monday, July 04, 2005 7:14 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Bind port


Yes. More than 1 port as source and port forward doesn't work.

Isamar


On Mon, 4 Jul 2005, Carlos Alperin wrote:

> Eric,
>
> This is the Sip.conf section where you define the port. Do you want to use
> more than one port as Source?
>
> ;
> ; SIP Configuration for Asterisk
> ;
> [general]
> port = 5060                     ; Port to bind to
> bindaddr = 69.39.69.183         ; Address to bind to
> canreinvite =no
> context = pstn                  ; Default for incoming calls
>
> And this is what I get from the port #2:
>
> SIP1-MI*CLI> sip show peer carlos2
>
>   * Name       : carlos2
>   Secret       : <Set>
>   MD5Secret    : <Not set>
>   Context      : pstn
>   Language     :
>   FromUser     :
>   FromDomain   :
>   Callgroup    :  (0)
>   Pickupgroup  :  (0)
>   Mailbox      :
>   LastMsgsSent : -1
>   Dynamic      : Yes
>   Expire       : 340717
>   Expiry       : 900
>   Insecure     : No
>   Nat          : Always
>   ACL          : No
>   CanReinvite  : No
>   PromiscRedir : No
>   DTMFmode     : rfc2833
>   LastMsg      : 0
>   ToHost       :
>   Addr->IP     : xxx.xxx.xxx.xxx Port 5061 (This is my Real IP address
> outside the NAT, and it receive it on 5061.
>   Defaddr->IP  : 0.0.0.0 Port 5060
>   Username     : carlos2
>   Codecs       : GSM ULAW ALAW G.726 G.729A
>   Status       : UNKNOWN
>   Useragent    : Sipura/SPA2000-2.0.13(g)
>   Full Contact : sip:carlos2 at 192.168.1.8:5061
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Eric Wieling
> aka ManxPower
> Sent: Monday, July 04, 2005 6:12 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] Bind port
>
> Carlos Alperin wrote:
> > Sipura boxes uses 5060 & 5061. I don't see why you cannot use something
> like
> > that. But anyway, that depends on how you 'll going to register them.
>
> They use that for the SOURCE port of packets sent by the SIPura.  It
> still uses 5060 as the destination port.
>
>
> --
> Eric Wieling * BTEL Consulting * 504-210-3699 x2120
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list